Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doubt] Astrodon deno ts rust relation ? #12

Closed
elycheikhsmail opened this issue Jan 21, 2022 · 8 comments
Closed

[doubt] Astrodon deno ts rust relation ? #12

elycheikhsmail opened this issue Jan 21, 2022 · 8 comments
Assignees

Comments

@elycheikhsmail
Copy link

I hope to see more explanation for relation between ( deno, ts ) and ( Astrodon/tauri , rust )
for Astrodon consumer and Astrodon developer.
for example is rust for Astrodon consumer in certain situation ? what skils needed for me or any dev to be able to contribue to Astrodon ?

@marc2332 marc2332 self-assigned this Jan 21, 2022
@marc2332
Copy link
Member

marc2332 commented Jan 21, 2022

Hello,

Astrodon contains a deno module that uses a shared library made in rust, through FFI, this acts as a bridge between Deno and Tauri.

Astrodon also contains a builder to compile your app correctly (deno compile is not enough).

And it also contains a WIP cli (useless for now).

Anyway, your app is still running in Deno, so you can write the code you want, as you would do in any other Deno app.

Does that answer your question?

@marc2332 marc2332 changed the title Astrodon deno ts rust relation ? [doubt] Astrodon deno ts rust relation ? Jan 21, 2022
@elycheikhsmail
Copy link
Author

Hello,

Astrodon contains a deno module that uses a shared library made in rust, through FFI, this acts as a bridge between Deno and Tauri.

Astrodon also contains a builder to compile your app correctly (deno compile is not enough).

And it also contains a WIP cli (useless for now).

Anyway, your app is still running in Deno, so you can write the code you want, as you would do in any other Deno app.

Does that answer your question?

thank you for now it is suffisant. I hope add this explantion to read me.

@elycheikhsmail
Copy link
Author

all deno api is accessible with Astrodon ? like deno.write ?

@elycheikhsmail
Copy link
Author

can you give me more details about WIP cli ?

@marc2332
Copy link
Member

all deno api is accessible with Astrodon ? like deno.write ?

You can only use Deno in the backend. But, it is possible to create global functions on the shared library side, and call them from the webview process. That's something we want to add once the callbacks can be passed to through FFI.

@marc2332
Copy link
Member

can you give me more details about WIP cli ?

There is nothing to see now, but we want to it be able to create projects (like templates) or to easily create an executable, etc. We still to need to plan it.

@denyncrawford
Copy link
Member

@elycheikhsmail No, at this moment Astrodon is in alpha phase, which means that only the core is being built. With astrodon you can (by now):

  • Open a window with a url (locally and remote) or with the asset packager, some how like in this example
  • Comunicate from deno to render process (but not: render to deno, WIP)
  • Make some configurations with our config file standard (wip)
  • Build self contained apps with our builder package.

So, where you can use Denos API's? In backend only at the moment.

Also we don't have plans to make an integration of deno core apis or x modules support in render process at least in a while.

If you have any other doubts with astrodon, please use the official communication channel on our discord server. Issues will be opened for bugs, contributions and reports only, thank you so much for your interest in astrodon!

@elycheikhsmail
Copy link
Author

thank you @denyncrawford and @marc2332

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants