Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (64 loc) · 2.43 KB
/
Copy pathCargo.toml
File metadata and controls
72 lines (64 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[package]
name = "httpunk"
version = "0.6.0"
description = "The Rust HTTP library for Python"
authors = [
"Giovanni Barillari <g@baro.dev>",
]
license = "BSD-3-Clause"
edition = "2024"
keywords = ["http", "h10", "h11", "h2"]
readme = "README.md"
homepage = "https://github.com/gi0baro/httpunk"
repository = "https://github.com/gi0baro/httpunk"
include = [
"/Cargo.toml",
"/pyproject.toml",
"/LICENSE",
"/README.md",
"/src",
"/crates",
"/httpunk",
"/tests",
"!__pycache__",
"!tests/.pytest_cache",
"!*.so",
]
# The vendored third-party crates live in their own workspace members so each
# owns its crate root (upstream `crate::` paths resolve with no rewrite → truly
# byte-identical) and is excluded from the main crate's fmt/clippy.
[workspace]
members = ["crates/vendor-h2", "crates/vendor-hyper", "crates/vendor-hyper-util"]
[lib]
name = "_httpunk"
crate-type = ["cdylib"]
[features]
mimalloc = ["dep:mimalloc"]
# Never enabled. Exists only so the optional crates.io `h2`/`hyper`/`hyper-util`
# deps are referenced (no "unused optional dependency"), keeping them in Cargo.lock
# for advisory scanning while they stay uncompiled. See the dependency comments.
_audit = ["dep:h2", "dep:hyper", "dep:hyper-util"]
[dependencies]
bytes = "1"
http = "1.1"
mimalloc = { version = "0.1.49", default-features = false, features = ["local_dynamic_tls"], optional = true }
pyo3 = { version = "=0.30", features = ["extension-module", "generate-import-lib"] }
vendor-h2 = { path = "crates/vendor-h2" }
vendor-hyper = { path = "crates/vendor-hyper", features = ["client", "server", "http1"] }
vendor-hyper-util = { path = "crates/vendor-hyper-util" }
# NOT compiled: the crates.io `h2`/`hyper`/`hyper-util`; their sans-IO code is
# vendored into crates/vendor-*/ by scripts/vendor-*.sh. Optional + gated behind
# the never-enabled `_audit` feature so the pinned versions land in Cargo.lock
# for `cargo audit` / Dependabot advisory coverage without pulling them (and
# tokio) into the build. hyper-util's client-proxy mirrors the vendored surface.
h2 = { version = "=0.4.21", optional = true }
hyper = { version = "=1.13.0", optional = true, default-features = false, features = ["http1", "client", "server"] }
hyper-util = { version = "=0.1.21", optional = true, default-features = false, features = ["client-proxy"] }
[profile.release]
codegen-units = 1
debug = false
incremental = false
lto = "fat"
opt-level = 3
panic = "abort"
strip = true