-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCargo.toml
83 lines (73 loc) · 2.05 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[package]
name = "ttfb"
description = """
Library + CLI utility to measure the TTFB (time to first byte) of HTTP(S)
requests. This includes data of intermediate steps, such as the relative and
absolute timings of DNS lookup, TCP connect, and TLS handshake.
"""
version = "1.14.0"
edition = "2021"
rust-version = "1.75" # MSRV of the library (= min(lib,bin))
keywords = ["ttfb", "http", "timings", "web"]
categories = ["network-programming", "command-line-utilities"]
readme = "README.md"
license = "MIT"
homepage = "https://github.com/phip1611/ttfb"
repository = "https://github.com/phip1611/ttfb"
documentation = "https://docs.rs/ttfb"
authors = [
"Philipp Schuster <[email protected]>"
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.release]
codegen-units = 1
lto = true
strip = true
[[bin]]
name = "ttfb"
required-features = ["bin"]
# Feature for all additional dependencies of the binary.
[features]
bin = ["dep:clap", "dep:crossterm"]
[dependencies]
# +++ LIBRARY +++
# DNS over systems default DNS resolver
hickory-resolver = { version = "0.24.0", default-features = false, features = ["dns-over-rustls", "system-config"] }
# TLS handshake
rustls = { version = "0.23.19", default-features = false, features = [ "tls12", "logging", "ring"] }
rustls-connector = { version = "0.21.4", default-features = false, features = [
"rustls--ring",
"native-certs",
"webpki-roots-certs",
] }
# automatic Display impl for enums
derive_more = { version = "1.0.0", default-features = false, features = [
"display",
] }
# nice abstraction of URL
url = "2.5.4"
# +++ BINARY +++
# used for the binary, not the lib
[dependencies.crossterm]
optional = true
version = "0.28.1"
# CLI args parsing
[dependencies.clap]
optional = true
version = "~4.5.22"
features = [
"color",
"derive",
"error-context",
"help",
"std",
"suggestions",
"unicode",
"usage",
"wrap_help",
]
[dev-dependencies]
tokio = "1.42"
[lints.rust]
# level is probably irrelevant
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(network_tests)'] }