8 releases (5 breaking)

0.6.0+e46383f Jul 2, 2023
0.5.2+6195bf8 Feb 16, 2023
0.5.1+b9232f9 Mar 2, 2022
0.5.0+b9232f9 Feb 25, 2022
0.1.0 Oct 23, 2020

#522 in Build Utils

Download history 2809/week @ 2026-01-16 2887/week @ 2026-01-23 2342/week @ 2026-01-30 4366/week @ 2026-02-06 3367/week @ 2026-02-13 3748/week @ 2026-02-20 2735/week @ 2026-02-27 4297/week @ 2026-03-06 3355/week @ 2026-03-13 3803/week @ 2026-03-20 3168/week @ 2026-03-27 3887/week @ 2026-04-03 3972/week @ 2026-04-10 4930/week @ 2026-04-17 4201/week @ 2026-04-24 3354/week @ 2026-05-01

17,065 downloads per month
Used in 14 crates (via grpcio-sys)

MIT/Apache

16MB
496K SLoC

GNU Style Assembly 207K SLoC // 0.0% comments C 78K SLoC // 0.2% comments C++ 69K SLoC // 0.1% comments Assembly 63K SLoC // 0.0% comments Perl 56K SLoC // 0.1% comments Go 21K SLoC // 0.1% comments Bazel 1K SLoC // 0.0% comments Python 1K SLoC // 0.3% comments Shell 187 SLoC // 0.2% comments Rust 140 SLoC // 0.0% comments

Contains (static library, 6KB) sample.lib, (ELF exe/lib, 2KB) bar.cc.o, (ELF exe/lib, 2KB) foo.c.o, (static library, 4KB) libsample.a, (Mach-o exe, 1KB) bar.cc.o, (Mach-o exe, 1KB) foo.c.o and 1 more.

boringssl-src

A crate for building boringssl.

This crate is intended to integrate with other build script to build boringssl.

  1. To use the crate, just include it as build-dependency:
[build-dependencies]
boringssl-src = "0.6"
  1. And then build it in build script:
let artifact = boringssl_src::Build::new().build();
  1. If you just need to link it to your library, then let it setup directly:
artifacts.print_cargo_metadata();

If you want to make it available to existing build system, take CMake as an example, you can setup by using OPENSSL_ROOT_PATH:

let config = cmake::Config::new("native project");
config.define("OPENSSL_ROOT_DIR", format!("{}", boringssl_artifact.root_dir().display()));

Then cmake should be able to find the library by find_package(OpenSSL).

How and When is boringssl updated?

It's updated periodically. It for now serves as a build dependency for tikv/grpc-rs, so whenever grpc updates boringssl, this crate also updates the native dependency.

Dependencies