[package]
edition = "2024"
name = "libcronet-sys"
version = "0.2.0"
build = "build.rs"
links = "cronet"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Low-level FFI bindings to Chromium Cronet (libcronet), with optional prebuilt-binary download."
readme = "README.md"
license = "MIT"
repository = "https://github.com/rust-proxy/cronet-rs"
resolver = "2"
[features]
default = []
download = [
"dep:ureq",
"dep:sha2",
]
download-static = [
"dep:ureq",
"dep:sha2",
]
dynamic = []
static-link = ["dep:object"]
[lib]
name = "libcronet_sys"
path = "src/lib.rs"
[[test]]
name = "build_target"
path = "tests/build_target.rs"
[[test]]
name = "dynamic_version"
path = "tests/dynamic_version.rs"
[dependencies.libloading]
version = "0.8"
[dependencies.same-file]
version = "1"
[build-dependencies.object]
version = "0.41.0"
features = [
"read_core",
"archive",
]
optional = true
default-features = false
[build-dependencies.sha2]
version = "0.10"
optional = true
[build-dependencies.ureq]
version = "2"
features = ["socks-proxy"]
optional = true
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.52"
features = [
"Win32_Foundation",
"Win32_System_LibraryLoader",
]