[package]
edition = "2021"
name = "npyz"
version = "0.9.0"
authors = [
"Michael Lamparski <diagonaldevice@gmail.com>",
"Pavel Potocek <pavelpotocek@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "NumPy file format (de-)serialization. Fork of outdated npy-rs."
homepage = "https://github.com/ExpHP/npyz"
documentation = "https://docs.rs/npyz/"
readme = "README.md"
keywords = [
"numpy",
"npy",
"ndarray",
]
categories = ["encoding"]
license = "MIT"
repository = "https://github.com/ExpHP/npyz"
[package.metadata.docs.rs]
all-features = true
[features]
arrayvec = ["dep:arrayvec"]
complex = ["dep:num-complex"]
default = []
derive = ["dep:npyz-derive"]
half = ["dep:half"]
npz = ["dep:zip"]
[lib]
name = "npyz"
path = "src/lib.rs"
[[example]]
name = "ndarray"
path = "examples/ndarray.rs"
[[example]]
name = "npz-without-feature"
path = "examples/npz-without-feature.rs"
[[example]]
name = "pickle"
path = "examples/pickle.rs"
[[example]]
name = "plain"
path = "examples/plain.rs"
[[example]]
name = "roundtrip"
path = "examples/roundtrip.rs"
required-features = ["derive"]
[[example]]
name = "sparse-sprs"
path = "examples/sparse-sprs.rs"
required-features = ["npz"]
[[example]]
name = "structured"
path = "examples/structured.rs"
required-features = ["derive"]
[[test]]
name = "derive_hygiene"
path = "tests/derive_hygiene.rs"
required-features = ["derive"]
[[test]]
name = "nd"
path = "tests/nd.rs"
[[test]]
name = "npz"
path = "tests/npz.rs"
required-features = ["npz"]
[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
required-features = [
"derive",
"half",
]
[[test]]
name = "serialize_array"
path = "tests/serialize_array.rs"
required-features = ["derive"]
[[test]]
name = "sparse"
path = "tests/sparse.rs"
required-features = ["npz"]
[[test]]
name = "strings"
path = "tests/strings.rs"
[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false
[dependencies.arrayvec]
version = "0.7.2"
optional = true
[dependencies.byteorder]
version = "1"
[dependencies.half]
version = "2.1.0"
optional = true
[dependencies.npyz-derive]
version = "0.9.0"
optional = true
default-features = false
[dependencies.num-bigint]
version = "0.4"
[dependencies.num-complex]
version = "0.4"
optional = true
[dependencies.py_literal]
version = "0.4"
[dev-dependencies.bencher]
version = "0.1"
[dev-dependencies.ndarray]
version = "0.15"
[dev-dependencies.serde-pickle]
version = "1.2.0"
[dev-dependencies.sprs]
version = "0.11"
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.zip]
version = "0.6"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.zip]
version = "0.6"
default-features = true
[target.'cfg(target_arch = "wasm32")'.dependencies.zip]
version = "0.6"
features = ["deflate"]
optional = true
default-features = false
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen]
version = "0.2"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.zip]
version = "0.6"
features = ["deflate"]
default-features = false