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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] pass strings between host and wasm #39

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lum1n0us
Copy link
Collaborator

No description provided.

lum1n0us added 2 commits June 9, 2024 02:53
TBD:
- [ ] pass `test_func_pass_rust_string()`
- [ ] create a wasm_string to pack all concept related to string.
      like wasm string index, host string addr, and so on
- [ ] re-consider the different between wasm from c and wasm from rust
@lum1n0us lum1n0us requested a review from wenyongh as a code owner June 10, 2024 10:44
@lum1n0us lum1n0us marked this pull request as draft June 10, 2024 10:44
Comment on lines +10 to +19
#
# wasm-tools
ARG WASM_TOOLS_VER=1.205.0

WORKDIR /opt
RUN wget https://github.com/bytecodealliance/wasm-tools/releases/download/v${WASM_TOOLS_VER}/wasm-tools-${WASM_TOOLS_VER}-x86_64-linux.tar.gz
RUN tar -xvf wasm-tools-${WASM_TOOLS_VER}-x86_64-linux.tar.gz \
&& mv wasm-tools-${WASM_TOOLS_VER}-x86_64-linux wasm-tools \
&& rm wasm-tools-${WASM_TOOLS_VER}-x86_64-linux.tar.gz \
&& ln -s /opt/wasm-tools/wasm-tools /usr/local/bin/wasm-tools
Copy link

Choose a reason for hiding this comment

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

Simple way

RUN cargo install cargo-binstall && cargo binstall wasm-tools

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.

2 participants