An open API service indexing awesome lists of open source software.

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

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`