Mirror of BoringSSL (grpc依赖) https://boringssl.googlesource.com/boringssl
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
David Benjamin 6f4159567d Start maintaining an AUTHORS file 5 months ago
..
src Copy bindings to OUT_DIR in bssl-sys build.rs 7 months ago
CMakeLists.txt Switch to bindgen's static inline support 1 year ago
Cargo.toml Update Cargo.toml after the cfg rename 7 months ago
README.md Switch to bindgen's static inline support 1 year ago
build.rs Start maintaining an AUTHORS file 5 months ago
rust_wrapper.c Start maintaining an AUTHORS file 5 months ago
rust_wrapper.h Start maintaining an AUTHORS file 5 months ago
wrapper.h rust: add SLH-DSA support. 7 months ago

README.md

bssl-sys

A low-level binding crate for Rust that moves in lockstop with BoringSSL.

How it works

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.

To Use

  1. Build boringssl with -DRUST_BINDINGS=<rust-triple>, which should match the Rust target triple when building bssl-sys,
  2. install bindgen, and
  3. install cargo-deny.

After 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.