Skip to content

Commit 7feb6b0

Browse files
authored
Merge pull request #1961 from Kobzol/dependency-update
Update dependencies
2 parents 206c6b3 + 92c0ba3 commit 7feb6b0

File tree

10 files changed

+193
-119
lines changed

10 files changed

+193
-119
lines changed

Cargo.lock

Lines changed: 113 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@ members = ["collector", "collector/benchlib", "site", "database", "intern"]
33
exclude = ["rust/src"]
44
resolver = "2"
55

6+
[workspace.dependencies]
7+
anyhow = "1"
8+
chrono = "0.4"
9+
clap = "4.1"
10+
env_logger = "0.10"
11+
hashbrown = "0.14"
12+
lazy_static = "1"
13+
log = "0.4"
14+
reqwest = "0.11"
15+
serde = "1"
16+
serde_json = "1"
17+
tokio = "1.36"
18+
619
[profile.release.package.site]
720
debug = 1
821

collector/Cargo.toml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,33 @@ name = "collector"
44
version = "0.1.0"
55
edition = "2021"
66
description = "Collects Rust performance data"
7+
rust-version = "1.75.0"
78

89
[dependencies]
9-
clap = { version = "4.1", features = ["derive"] }
10-
env_logger = "0.10"
11-
anyhow = "1"
10+
anyhow = { workspace = true }
11+
chrono = { workspace = true, features = ["serde"] }
12+
clap = { workspace = true, features = ["derive"] }
13+
env_logger = { workspace = true }
14+
lazy_static = { workspace = true }
15+
log = { workspace = true }
16+
reqwest = { workspace = true, features = ["blocking", "json"] }
17+
serde = { workspace = true, features = ["derive"] }
18+
serde_json = { workspace = true }
19+
tokio = { workspace = true, features = ["rt", "process"] }
20+
1221
thiserror = "1"
13-
log = "0.4"
14-
serde = { version = "1", features = ["derive"] }
15-
serde_json = "1"
1622
tempfile = "3"
1723
libc = "0.2"
18-
chrono = { version = "0.4", features = ["serde"] }
19-
lazy_static = "1"
2024
semver = "1.0"
21-
reqwest = { version = "0.11", features = ["json", "blocking"] }
2225
xz2 = "0.1.3"
2326
tar = "0.4"
24-
tokio = { version = "1.6", features = ["rt", "process"] }
25-
database = { path = "../database" }
26-
intern = { path = "../intern" }
2727
futures = "0.3.5"
28-
num_cpus = "1.13"
2928
jobserver = "0.1.21"
3029
snap = "1"
31-
filetime = "0.2.14"
3230
walkdir = "2"
3331
flate2 = { version = "1.0.22", features = ["rust_backend"] }
34-
rayon = "1.5.2"
35-
cargo_metadata = "0.15.0"
32+
rayon = "1"
33+
cargo_metadata = "0.18"
3634
thousands = "0.2.0"
3735
rustc-demangle = { version = "0.1", features = ["std"] }
3836
similar = "2.2"
@@ -41,10 +39,12 @@ object = "0.36.0"
4139
tabled = { version = "0.14.0", features = ["ansi-str"] }
4240
humansize = "2.1.3"
4341
regex = "1.7.1"
42+
4443
analyzeme = "12.0.0"
4544
inquire = "0.7.5"
4645

4746
benchlib = { path = "benchlib" }
47+
database = { path = "../database" }
4848

4949
[target.'cfg(windows)'.dependencies]
5050
miow = "0.3"

collector/benchlib/Cargo.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ description = "Library for defining and measuring benchmarks of Rust code"
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]
10-
anyhow = "1.0.61"
11-
serde = { version = "1.0.143", features = ["derive"] }
12-
serde_json = "1.0.83"
13-
log = "0.4.17"
14-
env_logger = "0.10.0"
15-
clap = { version = "4.1", features = ["derive", "string"] }
10+
anyhow = { workspace = true }
11+
clap = { workspace = true, features = ["derive", "string"] }
12+
env_logger = { workspace = true }
13+
log = { workspace = true }
14+
serde = { workspace = true, features = ["derive"] }
15+
serde_json = { workspace = true }
16+
1617
libc = "0.2"
1718
flate2 = { version = "1", optional = true }
1819
crabgrind = { version = "0.1.10", optional = true }

collector/src/compile/benchmark/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,12 @@ impl Benchmark {
297297
// different codegen backends are stored in separate directories.
298298
let preparation_start = std::time::Instant::now();
299299
std::thread::scope::<_, anyhow::Result<()>>(|s| {
300-
let server = jobserver::Client::new(num_cpus::get()).context("jobserver::new")?;
300+
let server = jobserver::Client::new(
301+
std::thread::available_parallelism()
302+
.expect("Cannot get core count")
303+
.get(),
304+
)
305+
.context("jobserver::new")?;
301306
let mut threads = Vec::with_capacity(target_dirs.len());
302307
for ((backend, profile), prep_dir) in &target_dirs {
303308
let server = server.clone();

collector/src/utils/fs.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ use anyhow::Context;
22
use std::collections::hash_map::DefaultHasher;
33
use std::ffi::OsStr;
44
use std::fs;
5+
use std::fs::File;
56
use std::hash::{Hash, Hasher};
67
use std::path::{Component, Path, PathBuf};
78
use std::process::Command;
9+
use std::time::SystemTime;
810

911
#[cfg(windows)]
1012
pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> anyhow::Result<()> {
@@ -43,7 +45,8 @@ pub fn rename<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> anyhow::Result<
4345

4446
/// Touch a file, resetting its modification time.
4547
pub fn touch(path: &Path) -> anyhow::Result<()> {
46-
filetime::set_file_mtime(path, filetime::FileTime::now())
48+
let file = File::options().read(true).open(path)?;
49+
file.set_modified(SystemTime::now())
4750
.with_context(|| format!("touching file {:?}", path))?;
4851

4952
Ok(())

database/Cargo.toml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,25 @@ authors = ["Mark Rousskov <[email protected]>"]
55
edition = "2021"
66

77
[dependencies]
8-
hashbrown = { version = "0.14", features = ["serde"] }
9-
serde = { version = "1", features = ["derive"] }
8+
anyhow = { workspace = true }
9+
chrono = { workspace = true, features = ["serde"] }
10+
clap = { workspace = true, features = ["cargo"] }
11+
env_logger = { workspace = true }
12+
hashbrown = { workspace = true, features = ["serde"] }
13+
lazy_static = { workspace = true }
14+
log = { workspace = true }
15+
reqwest = { workspace = true }
16+
serde = { workspace = true, features = ["derive"] }
17+
tokio = { workspace = true, features = ["sync", "macros"] }
18+
1019
rusqlite = { version = "0.28", features = ["bundled"] }
1120
tokio-postgres = { version = "0.7", features = ["with-chrono-0_4", "runtime"] }
12-
anyhow = "1"
1321
async-trait = "0.1"
14-
tokio = { version = "1.6", features = ["sync", "macros", "parking_lot"] }
15-
intern = { path = "../intern" }
16-
chrono = { version = "0.4.38", features = ["serde"] }
17-
reqwest = { version = "0.11" }
1822
postgres-native-tls = "0.5"
1923
native-tls = "0.2"
20-
env_logger = "0.10"
2124
futures-util = "0.3.5"
22-
log = "0.4"
2325
bytes = "1"
2426
csv = "1"
25-
clap = { version = "4.1", features = ["cargo"] }
2627
x509-cert = { version = "0.2.5", features = ["pem"] }
28+
29+
intern = { path = "../intern" }

intern/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ authors = ["Mark Rousskov <[email protected]>"]
55
edition = "2021"
66

77
[dependencies]
8+
hashbrown = { workspace = true }
9+
lazy_static = { workspace = true }
10+
serde = { workspace = true, features = ["derive"] }
11+
812
bumpalo = "3.2"
913
parking_lot = "0.12"
1014
arc-swap = "1.3"
11-
hashbrown = "0.14"
12-
lazy_static = "1"
13-
serde = "1"
14-
serde_derive = "1"

intern/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ pub fn intern<T: InternString>(value: &str) -> T {
187187
})
188188
}
189189

190-
#[derive(serde_derive::Serialize, Copy, Clone, PartialEq, Eq)]
190+
#[derive(serde::Serialize, Copy, Clone, PartialEq, Eq)]
191191
#[serde(into = "&'static str")]
192192
pub struct ArenaStr(NonNull<u8>);
193193

site/Cargo.toml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,33 @@ version = "0.1.0"
55
edition = "2021"
66

77
[dependencies]
8-
env_logger = "0.10"
9-
anyhow = "1"
8+
anyhow = { workspace = true }
9+
chrono = { workspace = true }
10+
env_logger = { workspace = true }
11+
hashbrown = { workspace = true, features = ["serde"] }
12+
lazy_static = { workspace = true }
13+
log = { workspace = true }
14+
reqwest = { workspace = true, features = ["blocking", "json"] }
15+
serde = { workspace = true, features = ["rc"] }
16+
serde_json = { workspace = true }
17+
tokio = { workspace = true, features = ["macros", "time"] }
18+
1019
futures = "0.3"
11-
tokio = { version = "1.26", features = ["macros", "time"] }
12-
log = "0.4"
13-
serde = { version = "1", features = ["rc"] }
14-
serde_derive = "1"
15-
serde_json = "1"
1620
hyper = { version = "0.14", features = ["server", "stream"] }
1721
headers = "0.3"
1822
http = "0.2"
19-
chrono = "0.4"
2023
rmp-serde = "1.1"
2124
brotli = "3.3.3"
2225
semver = "1.0"
2326
ring = "0.16.10"
2427
hex = "0.4.2"
2528
regex = "1"
26-
lazy_static = "1"
27-
reqwest = { version = "0.11", features = ["json", "blocking"] }
2829
toml = "0.7"
2930
rust_team_data = { git = "https://github.com/rust-lang/team" }
3031
parking_lot = "0.12"
3132
snap = "1"
3233
itertools = "0.10"
33-
hashbrown = { version = "0.14", features = ["serde"] }
3434
arc-swap = "1.3"
35-
database = { path = "../database" }
3635
bytes = "1.0"
3736
url = "2"
3837
analyzeme = "12.0.0"
@@ -47,14 +46,14 @@ humansize = "2"
4746
lru = "0.12.0"
4847
ruzstd = "0.7.0"
4948

49+
collector = { path = "../collector" }
50+
database = { path = "../database" }
51+
5052
[target.'cfg(unix)'.dependencies]
5153
jemallocator = "0.5"
5254
jemalloc-ctl = "0.5"
5355

54-
[dependencies.collector]
55-
path = "../collector"
56-
5756
[build-dependencies]
58-
serde = { version = "1", features = ["derive"] }
59-
serde_json = "1"
57+
serde = { workspace = true, features = ["derive"] }
58+
serde_json = { workspace = true }
6059
toml = "0.7"

0 commit comments

Comments
 (0)