You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.
In my attempts to get a basic Rust wasm filter running, I found it difficult to see how the C++ examples translated to what the WIP Rust sdk would look like - at the very least to know what are some VM functions I can hook into from Rust. Aside from the functions defined in api/wasm/rust/src/lib.rs, I was able to find the following (and a few more from module env imports) by disassembling both my Rust wasm and the example C++ wasm output.
Is there any reference material where I can get more specific information about how to translate the i32 params into some data I can work with in Rust? I have been able to start the compiled wasm in envoy, and see the logs from these Rust stubs below, but the proxy_on_request_headers call seems to hang with the return value I'm sending back. This is where I've hit a wall.. I'm not sure what the next hook / VM is expecting to get back.
I've made a bit of progress on the Rust side of things, though admittedly only through hacking around. If there is a chance to get a bit of a review or a quick check if this is useful to continue on, I'd appreciate it.
In my attempts to get a basic Rust wasm filter running, I found it difficult to see how the C++ examples translated to what the WIP Rust sdk would look like - at the very least to know what are some VM functions I can hook into from Rust. Aside from the functions defined in
api/wasm/rust/src/lib.rs
, I was able to find the following (and a few more from module env imports) by disassembling both my Rust wasm and the example C++ wasm output.Is there any reference material where I can get more specific information about how to translate the
i32
params into some data I can work with in Rust? I have been able to start the compiled wasm in envoy, and see the logs from these Rust stubs below, but theproxy_on_request_headers
call seems to hang with the return value I'm sending back. This is where I've hit a wall.. I'm not sure what the next hook / VM is expecting to get back.The stubs I've got in Rust:
Any tips/pointers to discovering what the
i32
mean would be greatly appreciated!Btw, if there hasn't yet been a design set for the Rust SDK, i'd be happy to share some ideas. Thanks again for the work thus far.
Edit:
Ok, I see
proxy_wasm_api.h
&proxy_wasm_externs.h
and can make some assumptions... still, any pointers appreciated 👍The text was updated successfully, but these errors were encountered: