8 个版本 (5 个破坏性更新)

0.6.0+e46383f2023年7月2日
0.5.2+6195bf82023年2月16日
0.5.1+b9232f92022年3月2日
0.5.0+b9232f92022年2月25日
0.1.0 2020年10月23日

#209 in 构建工具

Download history · Rust 包仓库 1751/week @ 2024-03-14 · Rust 包仓库 1684/week @ 2024-03-21 · Rust 包仓库 1886/week @ 2024-03-28 · Rust 包仓库 1512/week @ 2024-04-04 · Rust 包仓库 1749/week @ 2024-04-11 · Rust 包仓库 1803/week @ 2024-04-18 · Rust 包仓库 1439/week @ 2024-04-25 · Rust 包仓库 1478/week @ 2024-05-02 · Rust 包仓库 1848/week @ 2024-05-09 · Rust 包仓库 1672/week @ 2024-05-16 · Rust 包仓库 1328/week @ 2024-05-23 · Rust 包仓库 1595/week @ 2024-05-30 · Rust 包仓库 1339/week @ 2024-06-06 · Rust 包仓库 1366/week @ 2024-06-13 · Rust 包仓库 1341/week @ 2024-06-20 · Rust 包仓库 865/week @ 2024-06-27 · Rust 包仓库

5,220 每月下载量
用于 14 个 crate(通过 grpcio-sys

MIT/Apache

16MB
496K SLoC

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

包含(静态库,6KB)sample.lib,(ELF 可执行/库,2KB)bar.cc.o,(ELF 可执行/库,2KB)foo.c.o,(静态库,4KB)libsample.a,(Mach-o 可执行,1KB)bar.cc.o,(Mach-o 可执行,1KB)foo.c.o 等。

boringssl-src

用于构建 boringssl 的 crate。

此 crate 旨在与其他构建脚本来构建 boringssl 集成。

  1. 要使用此 crate,只需将其作为构建依赖项包含即可
[build-dependencies]
boringssl-src = "0.6"
  1. 然后在构建脚本中构建它
let artifact = boringssl_src::Build::new().build();
  1. 如果您只需将其链接到您的库,则直接设置即可
artifacts.print_cargo_metadata();

如果您想将其集成到现有的构建系统中,以 CMake 为例,您可以使用 OPENSSL_ROOT_PATH 进行设置

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

然后 cmake 应该能够通过 find_package(OpenSSL) 找到库。

boringssl 如何和何时更新?

它定期更新。目前它作为 tikv/grpc-rs 的构建依赖项,所以每当 grpc 更新 boringssl 时,此 crate 也会更新原生依赖项。

依赖项