Skip to content

Commit 1dde441

Browse files
committed
Remove a few unused dependencies and features
1 parent f6ff7c3 commit 1dde441

File tree

3 files changed

+6
-33
lines changed

3 files changed

+6
-33
lines changed

Cargo.lock

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

pineappl/Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,23 @@ arrayvec = "0.7.2"
2121
bincode = "1.3.3"
2222
bitflags = { features = ["serde"], version = "2.4.2" }
2323
enum_dispatch = "0.3.7"
24-
float-cmp = "0.9.0"
24+
float-cmp = { default-features = false, version = "0.9.0" }
2525
git-version = "0.3.5"
2626
itertools = "0.10.1"
2727
lz4_flex = "0.9.2"
2828
ndarray = { features = ["serde"], version = "0.15.4" }
29+
# TODO: opt out of default features in this crate to match line above
2930
pineappl-v0 = { package = "pineappl", version = "0.8.2" }
3031
rayon = "1.5.1"
3132
rustc-hash = "1.1.0"
3233
serde = { features = ["derive"], version = "1.0.130" }
3334
thiserror = "1.0.30"
3435

3536
[dev-dependencies]
36-
anyhow = "1.0.48"
3737
lhapdf = { package = "managed-lhapdf", version = "0.3.4" }
3838
num-complex = "0.4.4"
3939
rand = { default-features = false, version = "0.8.4" }
4040
rand_pcg = { default-features = false, version = "0.3.1" }
41-
serde_yaml = "0.9.13"
42-
ndarray-npy = "0.8.1"
4341

4442
[features]
4543
static = ["lhapdf/static"]

pineappl_cli/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,26 @@ cxx = { optional = true, version = "1.0.65" }
2323
either = { features = ["serde"], optional = true, version = "1.8.0" }
2424
enum_dispatch = "0.3.7"
2525
flate2 = { optional = true, version = "1.0.22" }
26-
float-cmp = "0.9.0"
26+
float-cmp = { default-features = false, version = "0.9.0" }
2727
git-version = "0.3.5"
2828
itertools = "0.10.1"
2929
lhapdf = { package = "managed-lhapdf", version = "0.3.4" }
3030
lz4_flex = { optional = true, version = "0.9.2" }
3131
ndarray = "0.15.4"
32-
ndarray-npy = { optional = true, version = "0.8.1" }
32+
ndarray-npy = { default-features = false, features = ["npz"], optional = true, version = "0.8.1" }
3333
pineappl = { path = "../pineappl", version = "=1.2.0" }
3434
pineappl_applgrid = { optional = true, path = "../pineappl_applgrid", version = "=1.2.0" }
3535
pineappl_fastnlo = { optional = true, path = "../pineappl_fastnlo", version = "=1.2.0" }
3636
prettytable-rs = { default-features = false, features = ["win_crlf"], version = "0.10.0" }
3737
rayon = "1.5.1"
3838
serde = { features = ["derive"], optional = true, version = "1.0.130" }
3939
serde_yaml = { optional = true, version = "0.9.13" }
40-
tar = { optional = true, version = "0.4.38" }
40+
tar = { default-features = false, optional = true, version = "0.4.38" }
4141

4242
[dev-dependencies]
4343
assert_cmd = "2.0.2"
4444
assert_fs = "1.0.6"
45-
predicates = "3.1.0"
45+
predicates = { default-features = false, version = "3.1.0" }
4646

4747
[[bin]]
4848
name = "pineappl"

0 commit comments

Comments
 (0)