Some libraries are required to build a Rust app:
libc.ato build the app for the RISC-V targetlibcrypto.ato pass tests on the x64 target
These libraries can be retrieved from Docker images thanks to the script lib/create-lib.sh:
./lib/create-lib.shThey are also generated as artifacts by the GitHub CI.
cargo build --releasecargo test --target x86_64-unknown-linux-gnu -- --test-threads=1Tests are ran on x64 thanks to libspeculos.so.
--test-threads=1 is required because libspeculos.so isn't thread safe.
- Find which functions take the most of space with
cargo install bloat && cargo bloat --release -n 10