#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

#1747 in Hardware support

Download history 182/week @ 2024-07-23 233/week @ 2024-07-30 215/week @ 2024-08-06 215/week @ 2024-08-13 202/week @ 2024-08-20 307/week @ 2024-08-27 237/week @ 2024-09-03 202/week @ 2024-09-10 146/week @ 2024-09-17 225/week @ 2024-09-24 258/week @ 2024-10-01 228/week @ 2024-10-08 227/week @ 2024-10-15 250/week @ 2024-10-22 249/week @ 2024-10-29 244/week @ 2024-11-05

1,006 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 Snakemake 10 SLoC // 0.4% comments

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