How to use Rust crates in applications? #400
-
With the initial support for Rust thanks to #241, I played around with it a bit and implemented a small driver for virtio-rng. As the no-std ecosystem is growing steadily, it would be nice to integrate existing crates. Is there a recommended way to do so? I got it working by compiling an external crate with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, Yes, @TrueDoctor has been doing some work on this and actually got it working. There is a pull request[1] that will be soon updated along with the PoC from @TrueDoctor[2]. We are planning to upstream his work ASAP. We're planning on having an external library called lib-cargo that would enable cargo support. [1] #291 |
Beta Was this translation helpful? Give feedback.
-
@george-hopkins, since we are already (viciously) using the Unikraft Discord server for discussions, meetings, brainstorming and jokes (mostly bad, we do what we can), we will close the Discussions tab. We will do this on Friday, March 31, 2023. Please move any discussions or questions on the Unikraft Discord server. See you all there! 🤝 |
Beta Was this translation helpful? Give feedback.
Hi,
Yes, @TrueDoctor has been doing some work on this and actually got it working. There is a pull request[1] that will be soon updated along with the PoC from @TrueDoctor[2]. We are planning to upstream his work ASAP. We're planning on having an external library called lib-cargo that would enable cargo support.
[1] #291
[2] https://github.com/unikraft/unikraft/pulls?q=is%3Apr+rust+is%3Aclosed