#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

#1385 in Hardware support

Download history 661/week @ 2023-12-06 531/week @ 2023-12-13 350/week @ 2023-12-20 292/week @ 2023-12-27 425/week @ 2024-01-03 288/week @ 2024-01-10 638/week @ 2024-01-17 315/week @ 2024-01-24 337/week @ 2024-01-31 167/week @ 2024-02-07 145/week @ 2024-02-14 315/week @ 2024-02-21 160/week @ 2024-02-28 157/week @ 2024-03-06 492/week @ 2024-03-13 162/week @ 2024-03-20

998 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