-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
49 lines (43 loc) · 1.55 KB
/
Copy pathCargo.toml
File metadata and controls
49 lines (43 loc) · 1.55 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
[package]
name = "rust-hdf5"
description = "Pure Rust HDF5 library with full read/write and SWMR support"
version = "0.4.3"
edition = "2021"
rust-version = "1.89"
license = "MIT"
authors = ["Sang Woo Kim"]
repository = "https://github.com/physwkim/rust-hdf5"
[lints.rust]
# `loom` is a custom cfg set only via `RUSTFLAGS="--cfg loom"` to run the
# concurrency models in tests/loom_concurrency.rs. Declare it so the
# `unexpected_cfgs` lint does not fire on `#[cfg(loom)]` in normal builds.
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[dependencies]
flate2 = { version = "1", optional = true }
lz4_flex = { version = "0.11", optional = true }
bzip2 = { version = "0.5", optional = true }
rust-zstd = { version = "0.1", default-features = false, optional = true }
snap = { version = "1", optional = true }
rayon = { version = "1", optional = true }
memmap2 = { version = "0.9", optional = true }
[features]
default = ["deflate"]
deflate = ["flate2"]
lz4 = ["lz4_flex"]
bzip2 = ["dep:bzip2"]
blosc = ["lz4_flex", "dep:snap"]
zstd = ["rust-zstd"]
all_filters = ["deflate", "lz4", "bzip2", "blosc", "zstd"]
parallel = ["rayon", "deflate"]
mmap = ["memmap2"]
threadsafe = []
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
# loom is only pulled in when building with `--cfg loom`, so it never enters
# the normal build, the published crate, or `cargo install`. Run the models
# with: RUSTFLAGS="--cfg loom" cargo test --test loom_concurrency
[target.'cfg(loom)'.dev-dependencies]
loom = "0.7"
[[bench]]
name = "io_bench"
harness = false