• Home
Name Date Size #Lines LOC

..--

src/03-May-2024-2518

CMakeLists.txtD03-May-20242.7 KiB5953

Cargo.tomlD03-May-2024144 87

README.mdD03-May-2024826 148

build.rsD03-May-20242 KiB5327

rust_wrapper.cD03-May-20241 KiB2910

rust_wrapper.hD03-May-20241.3 KiB3813

wrapper.hD03-May-20242.1 KiB8078

README.md

1bssl-sys
2============
3
4A low-level binding crate for Rust that moves in lockstop with BoringSSL. BoringSSL explicitly does not have a stable ABI, `bssl-sys` is the solution for preventing subtle-memory corruption bugs due to version skew.
5
6### How it works
7`bssl-sys` uses `bindgen` as part of the cmake build process to generate Rust compatibility shims for the targeted platform. It is important to generate it for the correct platform because `bindgen` uses LLVM information for alignment which varies depending on architecture. These files are then packaged into a Rust crate.
8
9### To Use
10Build `boringssl` with `-DRUST_BINDINGS=<rust-triple>` and ensure that you have `bindgen` installed.
11
12The `rust-triple` option should be one of the supported targets at https://doc.rust-lang.org/nightly/rustc/platform-support.html.
13
14