-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Document native plugin development process in Deno #4964
Comments
install deno install \
--allow-env \
--allow-read \
--allow-write \
--name=create-deno-plugin \
https://denopkg.com/chiefbiiko/create-deno-plugin@v0.3.0/main.ts usage create-deno-plugin --async ./my-plugin
cd ./my-plugin
cargo build
deno test --allow-plugin --unstable fs:
|
Wow, it seems like I'd really make use of some docs or even some more examples for guidance. cc @ry @piscisaureus |
@undefinedbuddy |
@chiefbiiko Thanks! This really helped a lot. |
I updated to v1.0.0-rc and it seems like |
@undefinedbuddy use |
@ry Great! Does that mean in my type definitions I can just use |
@undefinedbuddy I've also faced same issues, spent whole weekend trying to figure out how native plugin system works, I think I can also provide a hand for making docs for this beast. Although the feature is in its earliest stage, even minimal documentation can help improving plugin support in general. Unfortunately https://doc.deno.land/https/raw.githubusercontent.com/denoland/deno/master/cli/js/lib.deno.unstable.d.ts refers only to |
@lu4 I created declare namespace Deno {
export const core: {
ops(): { [key: string]: number };
dispatch(opId: number, control: Uint8Array, zeroCopy?: Uint8Array): ArrayBufferView | ArrayBuffer | undefined;
setAsyncHandler(opId: number, cb: (response: ArrayBufferView | ArrayBuffer | undefined) => void): void;
}
} And in the beginning of the |
@shaunxu Thank you for provided |
For whom this might be useful: https://deno.land/manual/getting_started/typescript |
@chiefbiiko Is your project @ry Is there any info you give me, if you guys plan any kind of doc how to implement a deno native plugin? Or is there already something I didn't find, yet? Thanks for your help, guys! |
@mknet i haven#t used |
released |
With native plugins removal in #11152 this is no longer relevant |
I am currently trying to make use of Deno's native plugin API, and I've been having a hard time trying to gather the basic resources for plugin development. For the record, I've taken a look at a few implementations alongside the associated files with
lib.rs
found inlibdeno
.Is there any documentation for plugin development in Deno? If not, can we look into making one? If there does exist a solution, I'd be willing to migrate from the horrors of Node Addons. What I'm primary looking for is a:
Cf.
deno-plugin-prepare
,deno-webview
.The text was updated successfully, but these errors were encountered: