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

replacing u32 -> string in adder tutorial example #151

Open
dmk978 opened this issue Sep 5, 2024 · 0 comments
Open

replacing u32 -> string in adder tutorial example #151

dmk978 opened this issue Sep 5, 2024 · 0 comments

Comments

@dmk978
Copy link

dmk978 commented Sep 5, 2024

Let's try mentioned example for use with string, that's absolute straightforward. Component compiles well, but issuing

wasm-tools component wit target/wasm32-wasip1/release/adder.wasm

command produce really big file filled with a lot of imports and references to standard WASI worlds:

package root:component;

world root {
  import wasi:cli/environment@0.2.0;
  import wasi:cli/exit@0.2.0;
  import wasi:io/error@0.2.0;
  import wasi:io/streams@0.2.0;
  import wasi:cli/stdin@0.2.0;
  import wasi:cli/stdout@0.2.0;
  import wasi:cli/stderr@0.2.0;
  import wasi:clocks/wall-clock@0.2.0;
  import wasi:filesystem/types@0.2.0;
  import wasi:filesystem/preopens@0.2.0;

  export docs:adder/add@0.1.0;
}

and that continues for several screens. Why?

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

No branches or pull requests

1 participant