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/[email protected];
  import wasi:cli/[email protected];
  import wasi:io/[email protected];
  import wasi:io/[email protected];
  import wasi:cli/[email protected];
  import wasi:cli/[email protected];
  import wasi:cli/[email protected];
  import wasi:clocks/[email protected];
  import wasi:filesystem/[email protected];
  import wasi:filesystem/[email protected];

  export docs:adder/[email protected];
}

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