Stream: cargo-component

Topic: How to create library component for now?


view this post on Zulip 林子篆 (Jul 17 2024 at 09:51):

I'm using cargo-component-component 0.6.0 (wasi:6613acd), the example[1] indicates the command below

cargo component new add --lib && cd add

and I get

error: unexpected argument '--lib' found

Do I use the older cargo component, or there has newer command to do so?

[1]: https://component-model.bytecodealliance.org/language-support/rust.html


Last updated: Nov 25 2024 at 19:03 UTC