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

riscv: disabling all default features in Cargo.toml #66

Closed
marcomaas1990 opened this issue Jun 4, 2024 · 3 comments
Closed

riscv: disabling all default features in Cargo.toml #66

marcomaas1990 opened this issue Jun 4, 2024 · 3 comments

Comments

@marcomaas1990
Copy link

marcomaas1990 commented Jun 4, 2024

Can you help me how to disable the default features in the Cargo.toml in the template project?
So that the build works without virtio support on riscv.

@mkroening
Copy link
Member

Ah, sorry, I forgot to answer your last comment in hermit-os/loader#345. Thanks for opening a new issue! :)

[target.'cfg(target_os = "hermit")'.dependencies]
hermit = { version = "0.9", default-features = false }

should work. See The Cargo Book — Specifying Dependencies for details.

@marcomaas1990
Copy link
Author

Seems to work, thanks. I'm new to rust :-)

@mkroening
Copy link
Member

Awesome! No worries!

If you want to chat with us about any other issues you encounter, you can also do so on https://hermit.zulipchat.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

2 participants