Skip to content

Porting boringssl bindings over to use bssl-sys with bindgen instead of hardcoding them - #2585

Draft
emarteca wants to merge 1 commit into
cloudflare:masterfrom
emarteca:bssl-sys-bindgen-bindings
Draft

Porting boringssl bindings over to use bssl-sys with bindgen instead of hardcoding them#2585
emarteca wants to merge 1 commit into
cloudflare:masterfrom
emarteca:bssl-sys-bindgen-bindings

Conversation

@emarteca

Copy link
Copy Markdown
  1. Install bindgen: ```bash cargo install bindgen-cli

  2. Build BoringSSL with Rust bindings: cmake -B /path/to/boringssl/build -S /path/to/boringssl \ -DRUST_BINDINGS=$(rustc -vV | sed -n 's/host: //p') cmake --build /path/to/boringssl/build -j$(nproc)
    Note: you can use the path to boringssl that is included through cargo

  3. Build / test quiche with --no-default-features --features boringssl-bssl-sys: BORINGSSL_BUILD_DIR="/path/to/boringssl/build" \ cargo test --no-default-features --features boringssl-bssl-sys -p quiche

…of hardcoding them

1. Install `bindgen`:
       ```bash
       cargo install bindgen-cli

  2. Build BoringSSL with Rust bindings:
    cmake -B /path/to/boringssl/build -S /path/to/boringssl \
          -DRUST_BINDINGS=$(rustc -vV | sed -n 's/host: //p')
    cmake --build /path/to/boringssl/build -j$(nproc)

  3. Build / test quiche with --no-default-features --features boringssl-bssl-sys:
    BORINGSSL_BUILD_DIR="/path/to/boringssl/build" \
    cargo test --no-default-features --features boringssl-bssl-sys -p quiche
Comment thread quiche/src/ffi_slice.rs
}

/// See [`FfiSlice`].
pub(crate) trait FfiMutSlice {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I suppose this trait is published from bssl-crypto crate now. We could import it eventually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants