-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support Deno.dlopen
for bundling libraries
#21
Comments
Testing the CLI Deno --unstable
> Deno.dlopen
[Function: dlopen] Leaf uses Can you provide a typescript example opening and serving out from a Deno.readFileSync + (magic?) + Deno.dlopen using a public DLL? |
Consensus in discord is that this request isn't possible because dlopen is provided by the OS, so it can't be overridden in leaf. |
Where did that discussion took place? Do you have a link to Discord discussion? I spend some time writing so useful feedback would help :-) |
Thanks for your answer ... lol ... discussed a long time ago :-p I just clicked the ellipsis then Copy Message Link https://discord.com/channels/684898665143206084/769285344809451572/935575448254054461 I myself was wondering as Leaf stores files you could extract it to real FS then load it with dlopen, but have no experience with dlopen yet. |
Ah, I was on my phone and the copy link feature must not be possible on discord mobile. What you suggest should work, it's just kind of a pain and introduces new error cases that have to be handled, like fs permission errors, no tmp dir available, no disk space, etc. It's what I was getting at with this comment in the thread: |
This is somewhat related to #19, but I opened a separate issue because
dlopen
seems uniquely different from other filesystem reads. This would be make it possible to use leaf to bundle, a Rust library, for example, in a single executable.The text was updated successfully, but these errors were encountered: