https://github.com/pietgeursen/rust-cross-lib
A Rust cross-compiled static library for C projects
https://github.com/pietgeursen/rust-cross-lib
cross-device rust static-library
Last synced: 8 months ago
JSON representation
A Rust cross-compiled static library for C projects
- Host: GitHub
- URL: https://github.com/pietgeursen/rust-cross-lib
- Owner: pietgeursen
- Created: 2018-08-27T03:31:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-27T03:31:30.000Z (almost 8 years ago)
- Last Synced: 2025-02-12T18:57:20.777Z (over 1 year ago)
- Topics: cross-device, rust, static-library
- Language: Rust
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust lib for embedded projects
> Cross compile a library in Rust that can be linked into a C project (that's also cross compiled).
## Dev setup
- Rustup to get rust
- Follow the instructions for [cross](https://github.com/japaric/cross)
- You need a very recent version on the rust nightly. Otherwise you might get an error about panic_fmt or panic implementation.
## Build
For nrf52:
`$ cross build --target thumbv7em-none-eabihf --release`
## Test
`$ cargo test`