generated from emo-crab/rust-template
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
54 lines (49 loc) · 1.68 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
[package]
name = "slinger" #改这个
version = "0.1.14"
edition = "2021"
description = "An HTTP Client for Rust designed for hackers."
homepage = "https://github.com/emo-crab/slinger"
repository = "https://github.com/emo-crab/slinger"
authors = ["Kali-Team <root@kali-team.cn>"]
readme = "README.md"
license = "GPL-3.0-only"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
#https://github.com/johnthagen/min-sized-rust
[profile.release]
opt-level = "z" # Optimize for size.
lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
panic = "abort" # Abort on panic
strip = true # Automatically strip symbols from the binary.
[profile.dev.package."*"]
opt-level = 3
[profile.test]
opt-level = 3
lto = "thin"
[profile.bench]
lto = true
codegen-units = 1
opt-level = 3
[dependencies]
thiserror = "1"
http = { version = "1.1.0" }
percent-encoding = "2.1"
socket2 = "0.5.5"
bytes = "1.6.1"
base64 = "0.22"
flate2 = { version = "1.0", optional = true }
serde = { version = "1", features = ["derive"], optional = true }
http-serde = { version = "2.1.0", optional = true }
encoding_rs = { version = "0.8", optional = true }
mime = { version = "0.3.17", optional = true }
cookie = { version = "0.18.1", optional = true }
native-tls = { version = "0.2.11", features = ["vendored"], optional = true }
openssl = { version = "0.10", features = ["vendored"], optional = true }
[features]
default = []
tls = ["native-tls", "openssl"]
cookie = ["dep:cookie"]
charset = ["dep:encoding_rs", "dep:mime"]
serde = ["dep:serde", "http-serde"]
gzip = ["flate2"]