Skip to content

feat: impl of zarr2 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: ps/blosc-and-fixes
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .config/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[net]
git-fetch-with-cli = true

[target.'cfg(target_os="linux")']
rustflags = [
"-Cforce-frame-pointers=yes",
"-Ctarget-feature=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt",
]

[target.'cfg(target_os="macos")']
rustflags = ["-Clink-arg=-undefined", "-Clink-arg=dynamic_lookup"]

[target.'cfg(unix)']
rustflags = [
# --- lint deny ---
# rustc lints
"-Dfuture_incompatible",
"-Dnonstandard_style",
"-Drust_2018_idioms",
"-Dunused",
# clippy categorical
"-Dclippy::complexity",
"-Dclippy::perf",
"-Dclippy::style",
"-Dclippy::suspicious",
# clippy pedantic
"-Dclippy::cloned_instead_of_copied",
"-Dclippy::enum_glob_use",
"-Dclippy::explicit_deref_methods",
"-Dclippy::explicit_into_iter_loop",
"-Dclippy::explicit_iter_loop",
"-Dclippy::filter_map_next",
"-Dclippy::flat_map_option",
"-Dclippy::from_iter_instead_of_collect",
"-Dclippy::implicit_clone",
"-Dclippy::inefficient_to_string",
"-Dclippy::manual_assert",
"-Dclippy::manual_let_else",
"-Dclippy::manual_string_new",
"-Dclippy::map_unwrap_or",
"-Dclippy::match_wildcard_for_single_variants",
"-Dclippy::mut_mut",
"-Dclippy::needless_bitwise_bool",
"-Dclippy::needless_continue",
"-Dclippy::needless_for_each",
"-Dclippy::redundant_closure_for_method_calls",
"-Dclippy::redundant_else",
"-Dclippy::semicolon_if_nothing_returned",
"-Dclippy::uninlined_format_args",
"-Dclippy::unused_self",
"-Dclippy::used_underscore_binding",
"-Dclippy::wildcard_imports",
# clippy nursery
"-Dclippy::needless_collect",
"-Dclippy::or_fun_call",
# --- lint allow ---
"-Aclippy::comparison_chain",
]
62 changes: 30 additions & 32 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version = "0.0.1"
edition = "2018"
license = "MIT/Apache-2.0"
authors = [
"Andrew Champion <[email protected]>",
"Chris L. Barnes <[email protected]>",
"Andrew Champion <[email protected]>",
"Chris L. Barnes <[email protected]>",
]
description = "Rust implementation of the Zarr core protocol for storage and retrieval of N-dimensional typed arrays"
readme = "README.md"
Expand All @@ -14,51 +14,49 @@ keywords = ["tensor"]
categories = ["encoding", "filesystem", "science"]

[features]
default = ["bzip", "filesystem", "gzip", "lz", "use_ndarray", "xz"]
default = ["bzip", "gzip", "lz", "use_ndarray", "xz", "blosc"]

blosc = ["blosc-src"]
bzip = ["bzip2"]
filesystem = ["fs2", "walkdir"]
blosc = ["dep:blosc-src"]
bzip = ["dep:bzip2"]
gzip = ["flate2/zlib"]
gzip_pure = ["flate2"]
lz = ["lz4"]
lz_pure = ["lz-fear"]
use_ndarray = ["itertools", "ndarray"]
xz = ["xz2"]
gzip_pure = ["dep:flate2"]
lz = ["dep:lz4", "blosc-src/lz4"]
use_ndarray = ["dep:itertools", "dep:ndarray"]
xz = ["dep:xz2"]

[dependencies]
anyhow = "1.0"
byteorder = "1.3.4"
semver = "^1.0"
serde_json = "1.0.39"
thiserror = "1"
camino = "1.1"
half = { version = "2.5", features = ["serde", "std", "rand_distr"] }
semver = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
smallvec = { version = "1", features = ["serde"] }
thiserror = "2"

blosc-src = { version = "0.1.1", optional = true }
bzip2 = { version = "0.4", optional = true }
blosc-src = { version = "0.3.0", optional = true, features = ["zstd"] }
bzip2 = { version = "0.5", optional = true }
flate2 = { version = "1.0.22", optional = true }
fs2 = { version = "0.4", optional = true }
half = { version = "1.6", features = ["serde", "std"] }
itertools = { version = "^0.10", optional = true }
itertools = { version = "^0.11", optional = true }
lz4 = { version = "1.23", optional = true }
lz-fear = { version = "0.1.1", optional = true }
ndarray = { version = "^0.15", optional = true }
serde = { version = "1.0", features = ["derive"] }
smallvec = { version = "1", features = ["serde"] }
walkdir = { version = "2", optional = true }
ndarray = { version = "=0.15.6", optional = true }
xz2 = { version = "0.1", optional = true }

[dev-dependencies]
criterion = "0.5"
bencher = "0.1.5"
doc-comment = "0.3"
futures = "0.1"
futures-cpupool = "0.1.8"
lazy_static = "1.4"
rand = "0.7"
rayon = "1"
tempdir = "0.3"
tiff = "0.3"
rand = "0.9"
rand_distr = "0.5"
tempfile = "3"


[profile.release]
lto = true

[profile.bench]
lto = true

[[bench]]
harness = false
name = "simple"
199 changes: 0 additions & 199 deletions benches/parallel_write.rs

This file was deleted.

Loading