Skip to content

Commit d54e43f

Browse files
fix(lang/rust): remove more references to cargo-component
1 parent 3b6760f commit d54e43f

File tree

2 files changed

+0
-5
lines changed
  • component-model/src

2 files changed

+0
-5
lines changed

component-model/src/composing-and-distributing/composing.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ Here are some tips to avoid or diagnose errors:
6262
because `regex` doesn't have any dependencies, let alone ones that `validator` can satisfy.
6363
* Composition cares about interface versions, and current tools are inconsistent about
6464
when they infer or inject versions.
65-
For example, if a Rust component exports `test:mypackage`,
66-
`cargo component build` will decorate this with the crate version, e.g. `test:mypackage@0.1.0`.
6765
If another Rust component _imports_ an interface from `test:mypackage`, that won't match `test:mypackage@0.1.0`.
6866
You can use [`wasm-tools component wit`](https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-component)
6967
to view the imports and exports embedded in the `.wasm` files and check whether they match up.

component-model/src/language-support/importing-and-reusing-components/rust.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ If your component consumes other components, you can edit the `world.wit` file t
77

88
> [!NOTE]
99
> This section is about importing custom WIT interfaces from library components.
10-
> By default, `cargo-component` imports any required [WASI interfaces](https://wasi.dev/interfaces)
11-
> for us without needing to explicitly declare them.
12-
1310
1411
For example, suppose you have created and built an adder component as explained in the [exporting an interface section](#exporting-an-interface-with-cargo-component) and want to use that component in a calculator component. Here is a partial example world for a calculator that imports the add interface:
1512

0 commit comments

Comments
 (0)