• Home
Name Date Size #Lines LOC

..--

src/04-Jul-2025-6344

CMakeLists.txtD04-Jul-20252.7 KiB5652

Cargo.tomlD04-Jul-2025336 1411

README.mdD04-Jul-20251 KiB1510

build.rsD04-Jul-20254.3 KiB140107

rust_wrapper.cD04-Jul-20251.2 KiB3716

rust_wrapper.hD04-Jul-20251.6 KiB4216

wrapper.hD04-Jul-20252.2 KiB8381

README.md

1bssl-sys
2============
3
4A low-level binding crate for Rust that moves in lockstop with BoringSSL.
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.
8
9### To Use
101. Build `boringssl` with `-DRUST_BINDINGS=<rust-triple>`, which should match the [Rust target triple](https://doc.rust-lang.org/nightly/rustc/platform-support.html) when building `bssl-sys`,
112. install `bindgen`, and
123. install [`cargo-deny`](https://github.com/EmbarkStudios/cargo-deny).
13
14After that, the `bssl-sys` crate can be built. By default, it looks for `bindgen` output and BoringSSL static libraries in the `build` directory. This can be reconfigured with `BORINGSSL_BUILD_DIR` environment variable. Note the environment variable is evaluated relative to `rust/bssl-sys/src`, so using an absolute path may be more convenient.
15