Replies: 1 comment
-
No. plugins will go away in favour of FFI. See #8490/#10908. There is currently no ETA, but ideally 1.12 for FFI, as that's when plugins get removed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know the extension API is unstable and that there are currently issues about problems with it
#10671 #10534
This issue is more of a question: is there any way for Deno 1.11.2 to actually create a working native extension? The example code in https://github.com/denoland/deno/tree/main/test_plugin causes a segfault (at least on linux), the only way that I was able to have a plugin that does not crash is to not use any args struct and any zero copy struct, and to return a primitive like
i32
, like this:But anything more, like returning a
String
, adding zerocopy or args other than a unit struct causes either a segmentation fault or an assertion error.Is there ANY way to have a working extension in the current state of Deno? If not, is there any estimation (even a rough one without any promises) when writing extensions will be again possible?
Beta Was this translation helpful? Give feedback.
All reactions