Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions quiche/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ readme = "README.md"
keywords = ["quic", "http3"]
categories = ["network-programming"]
license = "BSD-2-Clause"
links = "quiche"
include = [
"/*.md",
"/*.toml",
Expand Down
12 changes: 12 additions & 0 deletions quiche/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,18 @@ Cflags: -I${{includedir}}
}

fn main() {
let manifest_dir =
std::path::PathBuf::from(std::env::var_os("CARGO_MANIFEST_DIR").unwrap());
let out_dir = std::path::PathBuf::from(std::env::var_os("OUT_DIR").unwrap());
let include_dir = out_dir.join("include");
std::fs::create_dir_all(&include_dir).unwrap();
std::fs::copy(
manifest_dir.join("include/quiche.h"),
include_dir.join("quiche.h"),
)
.unwrap();
println!("cargo:include={}", include_dir.display());

if cfg!(feature = "boringssl-vendored") && !cfg!(feature = "boring-sys") {
let bssl_dir = std::env::var("QUICHE_BSSL_PATH").unwrap_or_else(|_| {
let mut cfg = get_boringssl_cmake_config();
Expand Down