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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasm: Rust support #3061

Merged
merged 2 commits into from
May 24, 2024
Merged

wasm: Rust support #3061

merged 2 commits into from
May 24, 2024

Conversation

dranikpg
Copy link
Contributor

馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃 馃v

@@ -23,6 +23,7 @@ bool RegisterApiFunction(std::string_view name, Fn f, wasmtime::Linker* linker)
auto args_signature = wasmtime::FuncType({wasmtime::ValKind::I32}, {});

auto res = linker->func_new(module_name, name, args_signature, f);
linker->func_new("env", name, args_signature, f);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I need to find out how to tell wasi to look in a different namespace... I just couldn't! There is wasm-bindgen, but I don't wanna use it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kostasrim
Copy link
Contributor

馃 馃

Your FAVORITE!

@kostasrim kostasrim marked this pull request as ready for review May 24, 2024 07:50
@kostasrim kostasrim merged commit 1380986 into dragonflydb:wasm May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants