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

Unable to compile with Network support #118

Closed
alessio-proietti opened this issue Mar 25, 2021 · 0 comments
Closed

Unable to compile with Network support #118

alessio-proietti opened this issue Mar 25, 2021 · 0 comments

Comments

@alessio-proietti
Copy link
Contributor

alessio-proietti commented Mar 25, 2021

I'm working with this env:

rustup --version
rustup 1.23.1 (3df2264a9 2020-11-30)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active rustc version is rustc 1.50.0-nightly (11c94a197 2020-12-21)

I added to Cargo.toml these lines:

[target.'cfg(target_os = "hermit")'.dependencies]
hermit-sys = "0.1.*"
default-features = false
features = ["smoltcp"]

First the IDE complains but that's ok for me, the fact is also the compiler doens't build, that's the error:

$ HERMIT_IP="10.0.5.100" cargo build -Z build-std=std,core,alloc,panic_abort --target x86_64-unknown-hermit

error: failed to parse manifest at /home/me/hello_world/Cargo.toml

Caused by:
invalid type: boolean false, expected a version string like "0.9.8" or a detailed dependency like { version = "0.9.8" } for key

target.cfg(target_os = "hermit").dependencies.default-features

I dind't expect this at this basic level.

++EDIT++
This works, consider to review the doc. I can do it anyway.

[target.'cfg(target_os = "hermit")'.dependencies.hermit-sys]
version = "0.1.*"
default-features = false
features = ["smoltcp"]

bors bot added a commit that referenced this issue Mar 30, 2021
119: General Documentation corrected to select smoltcp feature during build selection for Network Support r=stlankes a=alessio-proietti

I think General documentation should be updated as proposed, that's why #118.


Co-authored-by: Alessio Proietti <alessio.proietti@protonmail.com>
bors bot added a commit that referenced this issue Mar 30, 2021
119: General Documentation corrected to select smoltcp feature during build selection for Network Support r=stlankes a=alessio-proietti

I think General documentation should be updated as proposed, that's why #118.


Co-authored-by: Alessio Proietti <alessio.proietti@protonmail.com>
bors bot added a commit that referenced this issue Mar 31, 2021
119: General Documentation corrected to select smoltcp feature during build selection for Network Support r=stlankes a=alessio-proietti

I think General documentation should be updated as proposed, that's why #118.


Co-authored-by: Alessio Proietti <alessio.proietti@protonmail.com>
bors bot added a commit that referenced this issue Apr 7, 2021
119: General Documentation corrected to select smoltcp feature during build selection for Network Support r=stlankes a=alessio-proietti

I think General documentation should be updated as proposed, that's why #118.


Co-authored-by: Alessio Proietti <alessio.proietti@protonmail.com>
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