Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unikraft/lib-rust
Rust Language Runtime on Unikraft
https://github.com/unikraft/lib-rust
cargo library rust toml unikraft unikraft-library
Last synced: 15 days ago
JSON representation
Rust Language Runtime on Unikraft
- Host: GitHub
- URL: https://github.com/unikraft/lib-rust
- Owner: unikraft
- Created: 2021-09-29T16:04:42.000Z (over 3 years ago)
- Default Branch: staging
- Last Pushed: 2024-01-02T20:56:17.000Z (about 1 year ago)
- Last Synced: 2024-04-17T21:16:52.838Z (10 months ago)
- Topics: cargo, library, rust, toml, unikraft, unikraft-library
- Homepage:
- Size: 4.88 KB
- Stars: 4
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
Cargo support for Unikraft
===================
This library provides the necessary build rules to integrate Cargo projects into unikraft.To add a cargo project simply add the `toml` file in the `Makefile.uk` of the library/application.
`APP_SRCS-y += $(APP_BASE)/cargo_project/Cargo.toml`
The crate should be set to `staticlib` in the `toml` file:
```
[lib]
crate-type = ["staticlib"]
```And you should add the unikrat internal rust library as a dependency:
```
[dependencies]
ukrust = { path = "../../../unikraft/lib/ukrust/" }
```Finally, include the unikraft crate (for the panic handler and basic rust functionalities)
```
use ukrust;
```