#generated-bindings #bindings #ffi-bindings #cryptoauthlib

sys cryptoauthlib-sys

Automatically generated Rust bindings for CryptoAuthentication Library calls

4 releases

0.2.2 Jan 21, 2022
0.2.1 Jul 22, 2021
0.2.0 Mar 3, 2021
0.1.0 Jan 20, 2021

#1565 in Hardware support

Download history 243/week @ 2024-04-08 171/week @ 2024-04-15 177/week @ 2024-04-22 229/week @ 2024-04-29 831/week @ 2024-05-06 298/week @ 2024-05-13 131/week @ 2024-05-20 157/week @ 2024-05-27 207/week @ 2024-06-03 230/week @ 2024-06-10 199/week @ 2024-06-17 255/week @ 2024-06-24 210/week @ 2024-07-01 185/week @ 2024-07-08 171/week @ 2024-07-15 182/week @ 2024-07-22

766 downloads per month
Used in 2 crates (via rust-cryptoauthlib)

Apache-2.0

6.5MB
51K SLoC

C 42K SLoC // 0.2% comments Python 5K SLoC // 0.4% comments Rust 3.5K SLoC // 0.0% comments FreeMarker 400 SLoC INI 19 SLoC

rust-cryptoauthlib/cryptoauthlib-sys


The Rust bindings for the Microchip CryptoAuthentication Library version 3.1.0.


This workspace member provides a "raw" Rust bindings, generated automatically.

About

The underlying C library was cloned as a submodule using below command:

git submodule add -b Release/v3.1.x https://github.com/MicrochipTech/cryptoauthlib.git

The library was locally compiled to investigate what cmake arguments are needed.
After the above succeeded, the bindings were generated automatically from the build output using following command:

bindgen cryptoauthlib/lib/cryptoauthlib.h -o src/bindings.rs --
    -I ./cryptoauthlib/lib/
    -I ./target/release/build/cryptoauthlib-sys-****************/out/build/lib/

No runtime deps