Skip to content

Latest commit

 

History

History
39 lines (35 loc) · 1.02 KB

README.md

File metadata and controls

39 lines (35 loc) · 1.02 KB

rust-cryptoauthlib


The Rust wrapper for the Microchip CryptoAuthentication Library.


Repository cloning

The wrapper carries own cryptoauthentication library (3.1.0) as a git submodule, hence its cloning requires caution.
For the snippets below, double check the GITREPO URI; this one works for now:

GITREPO = https://github.com/PelionIoT/rust-cryptoauthlib.git

Cloning the whole repository in one step

git clone --recurse-submodules $GITREPO

Cloning the wrapper first then subsequently the cryptoauthlib submodule

git clone $GITREPO
cd rust-cryptoauthlib
git submodule update --init --recursive

The above fixes also below compilation error:
CMake Error: The source directory "/home/user/rust-cryptoauthlib/cryptoauthlib-sys/cryptoauthlib" does not appear to contain CMakeLists.txt.

Compilation instructions.

A release build

cargo build --release

A debug build

cargo build

Running tests

cargo test