-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Feat: Adds rust config options to detect threading support in oxide #18292
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
base: main
Are you sure you want to change the base?
Conversation
|
I'm planning on taking a look at this soon btw. One thing I definitely want to figure out is a way to unify the Node + WASM APIs (so like no separate |
|
Reminder for me to investigate soon: NAPI-RS v3 is out now. There's a chance things can be simplified with that re: WASM |
|
Really good point it seems like that would make everything a lot simpler https://napi.rs/blog/announce-v3
|
|
@thecrypticace @jlukic it would be nice to have beside NAPI-RS a C FFI interface (if it's not there yet) for .NET C# (and other) consumption as well. |
|
@attilah what would be your use case in the .NET C# world? Tailwind CSS is a TypeScript project it is not entirely written in Rust. |
|
@RobinMalfait I am aware, the use case is make tailwind compiler available for Blazor WASM, Blazor Server and "regular" .NET server side as well. After that you can build anything on it, developer tooling, WYSIWYG editor similarly what @jlukic posted as an example, but with Blazor. I actually created the C FFI interface Yesterday and will try to create a PR for it during the weekend. |
|
@thecrypticace I tried to have a stab at unifying the types between node and wasm as you requested, please check it here it is based on top of this PR, so @jlukic please chime in. The reason for this is that if I create a C FFI binding you'd probably expect the same to share types as much as possible. |
This modifies Oxide to use helpers for parallel processing that allow Oxide to compile to
unknown-unknown.This lets Oxide work in the browser without dealing with the rabbit hole of permissions around using
SharedArrayBufferwhich include custom HTTP header requirements likeCross-Origin-Embedder-PolicyandCross-Origin-Opener-PolicyThis is used in tailwindcss-iso and you can see the wasm in use in Semantic Playground here
#11610