Giter VIP home page Giter VIP logo

boringssl-src-rs's Introduction

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.

boringssl-src-rs's People

Contributors

busyjay avatar

Stargazers

 avatar

Watchers

 avatar  avatar

boringssl-src-rs's Issues

Source code does not match crates.io release

Hello ๐Ÿ‘‹!

I had a weird bug in my code:

   Compiling boringssl-src v0.3.0+688fc5c
error[E0599]: no method named `get_profile` found for struct `Config` in the current scope
  --> /home/hugdev01/.cargo/registry/src/github.com-1ecc6299db9ec823/boringssl-src-0.3.0+688fc5c/src/lib.rs:99:31
   |
99 |             let profile = cfg.get_profile();
   |                               ^^^^^^^^^^^ method not found in `Config`

error: aborting due to previous error

I am not yet sure why this is happening but it went away with a lot of cargo clean and cargo update.
However I realised two things while working on it:

  • the source code in this repo does not seem to watch the release 0.3.0+688fc5c on crates.io
  • the code calls the method get_profile() on Config which has only been available since cmake version 0.1.45 so I think the cmake version field in Cargo.toml should be 0.1.45 insted of 0.1. I am thinking the error above is because a wrong version of cmake was chosen in my dependency tree but not 100% sure.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.