We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cargo component build
mod bindings
main.rs
When I walked through the tutorial in https://component-model.bytecodealliance.org/language-support/rust.html#importing-an-interface-into-a-command-component with my own adder example, after Step 3 adding package.metadata.component.target.dependencies and running cargo build component, I found bindings.rs was generated under src folder, but mod bindings was not added to main.rs.
package.metadata.component.target.dependencies
cargo build component
bindings.rs
src
main.rs was initially created by cargo component new my-command-component with the content
cargo component new my-command-component
fn main() { println!("Hello World"); }
I think after generating bindings.rs, cargo-component should automatically attach it to main.rs.
cargo-component
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I walked through the tutorial in https://component-model.bytecodealliance.org/language-support/rust.html#importing-an-interface-into-a-command-component with my own adder example, after Step 3 adding
package.metadata.component.target.dependencies
and runningcargo build component
, I foundbindings.rs
was generated undersrc
folder, butmod bindings
was not added tomain.rs
.main.rs
was initially created bycargo component new my-command-component
with the contentI think after generating
bindings.rs
,cargo-component
should automatically attach it tomain.rs
.The text was updated successfully, but these errors were encountered: