Skip to content

PelionIoT/rust-cryptoauthlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The rust wrapper around Microchiptech CryptoAuthentication Library for ATECCx08a cryptochip.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages