Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
172 lines (158 loc) · 5.39 KB
/
Copy pathCargo.toml
File metadata and controls
172 lines (158 loc) · 5.39 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
[package]
name = "codspeed-runner"
version = "5.8.0"
edition = "2024"
repository = "https://github.com/CodSpeedHQ/codspeed"
publish = false
default-run = "codspeed"
[[bin]]
name = "codspeed"
path = "src/main.rs"
[[test]]
name = "executors"
required-features = ["executor-tests"]
[features]
# Builds tests/executors.rs, which needs privileges: see tests/docker/run.sh.
executor-tests = []
[dependencies]
anyhow = { workspace = true }
clap = { workspace = true, features = ["env", "color"] }
itertools = { workspace = true }
log = { workspace = true }
rand = "0.10"
rayon = "1.12"
regex = "1.12.3"
semver = "1.0"
reqwest = { version = "0.13", default-features = false, features = ["json", "stream", "rustls", "charset", "http2", "system-proxy"] }
reqwest-middleware = { version = "0.5", features = ["json"] }
reqwest-retry = "0.9"
serde = { workspace = true }
serde_json = { workspace = true, features = ["preserve_order"] }
url = "2.5.8"
hyper = { version = "1.9", features = ["server", "http1"] }
hyper-util = { version = "0.1.20", features = ["tokio"] }
http-body-util = "0.1.3"
sha256 = "1.6"
tokio = { version = "1", features = ["fs", "macros", "net", "rt", "sync", "process"] }
tokio-tar = { package = "astral-tokio-tar", version = "0.6.2" }
tokio-util = "0.7.18"
crc-fast = { version = "1.9.0", default-features = false, features = ["std"] }
base64 = "0.22.1"
async-compression = { version = "0.4.42", features = ["tokio", "gzip"] }
schemars = "1.2.1"
simplelog = { version = "0.12.2", default-features = false, features = ["termcolor"] }
tempfile = { workspace = true }
git2 = "0.21"
nestify = "0.3.3"
gql_client = { git = "https://github.com/CodSpeedHQ/gql-client-rs", rev = "c269153c495b9e4eded1b17c351d499ce43ee516" }
serde_yaml = "0.9.34"
sysinfo = { version = "0.37", features = ["serde"] }
indicatif = "0.18"
console = "0.16"
async-trait = "0.1.89"
libc = { workspace = true }
xattr = "1.6"
bincode = "1.3.3" # Pinned to 1.x: 2.0 changes the wire format and serde integration
object = "0.39"
linux-perf-data = { git = "https://github.com/mstange/linux-perf-data.git", rev = "da5bce4b9fb724e84b1eea0cb6ab9c8a291bc676", features = [
"zstd",
] } # unreleased main as of 2026-03-19
debugid = "0.8.0"
memmap2 = "0.9.10"
mimalloc = { workspace = true }
nix = { version = "0.31.3", features = ["fs", "time", "user"] }
futures = "0.3.32"
runner-shared = { path = "crates/runner-shared" }
exec-harness = { path = "crates/exec-harness" }
instrument-hooks-bindings = { path = "crates/instrument-hooks-bindings" }
shellexpand = { version = "3.1.2", features = ["tilde"] }
addr2line = "0.26"
gimli = "0.33"
open = "5.3.5"
axoupdater = { version = "0.10.0", features = ["github_releases"] }
tabled = { version = "0.20.0", features = ["ansi"] }
shell-words = "1.1.1"
rmp-serde = "1.3.1"
uuid = { version = "1.23.1", features = ["v4"] }
crc32fast = "1.5.0"
samply = { path = "crates/samply-codspeed/samply" }
bytes = "1"
opentelemetry-proto = { version = "0.33", default-features = false, features = [
"gen-tonic-messages",
"trace",
"logs",
"with-serde",
] }
prost = "0.14"
# Memory profiling (memtrack) and the capability handling around it are Linux-only.
[target.'cfg(target_os = "linux")'.dependencies]
procfs = "0.18"
caps = "0.5"
memtrack = { path = "crates/memtrack" }
ipc-channel = { workspace = true }
[dev-dependencies]
temp-env = { version = "0.3.6", features = ["async_closure"] }
insta = { workspace = true, features = ["json", "redactions"] }
test-with = { workspace = true }
rstest = { workspace = true }
shell-quote = "0.7.2"
assert_cmd = "2.2"
predicates = "3.1.4"
strum = { version = "0.28.0", features = ["derive"] }
[workspace]
members = [
"crates/runner-shared",
"crates/memtrack",
"crates/exec-harness",
"crates/instrument-hooks-bindings",
]
exclude = ["crates/samply-codspeed"]
[workspace.dependencies]
anyhow = "1.0"
clap = { version = "4.6", features = ["derive", "env"] }
crossbeam-channel = "0.5.15"
libc = "0.2"
log = "0.4.28"
serde_json = "1.0"
serde = { version = "1.0.228", features = ["derive"] }
mimalloc = "0.1"
ipc-channel = "0.20"
itertools = "0.14.0"
rayon = "1.12"
linux-perf-event-reader = "0.10.2" # matches the version linux-perf-data resolves to
env_logger = "0.11.10"
tempfile = "3.27.0"
object = { version = "0.39", default-features = false, features = ["read_core", "elf"] }
insta = { version = "1.47", default-features = false }
rstest = { version = "0.26", default-features = false }
test-log = "0.2.20"
test-with = { version = "0.16", default-features = false, features = [] }
[workspace.metadata.release]
sign-tag = true
sign-commit = true
shared-version = false
consolidate-commits = false
pre-release-commit-message = "chore: Release {{crate_name}} version {{version}} 🎉"
[package.metadata.release]
pre-release-hook = ["./scripts/pre-release.sh", "v{{version}}"]
[profile.dist]
inherits = "release"
lto = "thin"
strip = true
[package.metadata.dist]
targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-musl", "x86_64-unknown-linux-musl"]
binaries.aarch64-apple-darwin = ["codspeed"]
binaries.aarch64-unknown-linux-musl = ["codspeed"]
binaries.x86_64-unknown-linux-musl = ["codspeed"]
# memtrack's vendored libbpf/elfutils build runs as part of this package.
[package.metadata.dist.dependencies.apt]
build-essential = "*"
pkgconf = "*"
zlib1g-dev = "*"
libbpf-dev = "*"
musl-tools = "*"
linux-libc-dev = "*"
# Required for the vendored feature
autopoint = "*"
bison = "*"
flex = "*"