forked from 0x676e67/rnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
64 lines (58 loc) · 1.57 KB
/
Cargo.toml
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
[package]
name = "rnet"
version = "2.1.5"
description = "A blazing-fast Python HTTP client with TLS fingerprint"
edition = "2024"
rust-version = "1.85.0"
license = "GPL-3.0"
repository = "https://github.com/0x676e67/rnet"
authors = ["0x676e67 <[email protected]>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "rnet"
crate-type = ["cdylib", "rlib"]
doctest = false
[[bin]]
name = "stubgen"
path = "src/stubgen.rs"
[features]
default = []
docs = ["dep:pyo3-stub-gen"]
[dependencies]
tokio = { version = "1.44.1", features = ["sync"] }
pyo3 = { version = "0.24.0", features = [
"indexmap",
"multiple-pymethods",
"generate-import-lib",
] }
pyo3-async-runtimes = { version = "0.24.0", features = [
"tokio-runtime",
"unstable-streams",
] }
pyo3-stub-gen = { version = "0.7.0", optional = true }
serde = { version = "1.0.219", features = ["derive"] }
mime = "0.3.17"
indexmap = { version = "2.8.0", features = ["serde"] }
arc-swap = "1.7.1"
url = "2.5"
bytes = "1.10.1"
futures-util = { version = "0.3.31", default-features = false }
rquest = { version = "5.0.0", features = [
"full",
"multipart",
"websocket",
"hickory-dns",
"apple-network-device-binding",
] }
rquest-util = { version = "2.1.0" }
[target.'cfg(not(target_env = "msvc"))'.dependencies]
jemallocator = { package = "tikv-jemallocator", version = "0.6", features = [
"disable_initial_exec_tls",
"unprefixed_malloc_on_supported_platforms",
] }
[profile.release]
lto = true
opt-level = 3
codegen-units = 1
strip = true
panic = "abort"