Comments (3)
Hi @Iceber. Thanks for reporting this issue!
You will need to specify the entry in the package.metadata.component.target.dependencies
table with the namespace qualifier, as you have it in your last example.
Which version of cargo-component
are you using? If it is what is currently in main
, then the parsing of the dependency should be working.
There's also another PR (#86) that further fixes target dependency parsing so that it behaves identically to what you would get with a deps
dir, except you just need to explicitly list what the dependencies are in Cargo.toml
rather than relying on what's present on disk.
from cargo-component.
@Iceber with #86 now merged, can you try with the latest out of main
and see if that helps you?
from cargo-component.
@peterhuene Thansk, it is working
The syntax of import has changed.
package component:hello-world
world command-adapter {
import component:test/types
export run: func() -> result
}
from cargo-component.
Related Issues (20)
- Conventions for namespaces generated by macros HOT 3
- How to use cargo-component for subprojects? HOT 2
- Generate better cargo check command for vscode HOT 1
- Consider using `cargo add` in the `new` command HOT 1
- Explain why the code is not generated in the `generate!()` macro HOT 5
- Use release artifacts for `wasmtime` in CI
- adapter module does not have export `sock_getaddrinfo` HOT 1
- support customizing WIT interface mapping
- Cannot build component using `no_std` after v0.7.0 HOT 6
- Error message for not selecting a component should be more actionable
- Preserve comments from wit file in the binary HOT 2
- error: module requires an import interface named `env`
- "hello world" example with the `wasi` crate doesn't work HOT 5
- Confusion around component dependencies and target dependencies HOT 4
- Confusing error if versions of local dependencies don't align HOT 2
- `cargo component new` in Workspace no longer works (`wit-bindgen` v`0.19.1`) HOT 6
- Support WASI Preview 2 HOT 3
- Use `prettyplease` instead of `rustfmt` for the source code generated by `cargo component new --target` HOT 6
- Issues with `-` vs `_` translation HOT 4
- Build fails with "no entry found for key" panic from `wit-bindgen` HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-component.