# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "ambers"
version = "0.3.7"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust reader for SPSS .sav and .zsav files"
readme = "README.md"
license = "MIT"
repository = "https://github.com/albertxli/ambers"

[features]
default = []
python = [
    "dep:pyo3",
    "dep:mimalloc",
]

[lib]
name = "ambers"
crate-type = ["rlib"]
path = "src/lib.rs"

[[test]]
name = "test_medium_write"
path = "tests/test_medium_write.rs"

[[test]]
name = "test_temporal"
path = "tests/test_temporal.rs"

[dependencies.arrow]
version = "57"
features = ["ffi"]
default-features = false

[dependencies.encoding_rs]
version = "0.8"

[dependencies.flate2]
version = "1"
features = ["zlib-rs"]
default-features = false

[dependencies.indexmap]
version = "2"

[dependencies.mimalloc]
version = "0.1"
optional = true

[dependencies.pyo3]
version = "0.26"
features = [
    "extension-module",
    "indexmap",
]
optional = true

[dependencies.rayon]
version = "1"

[dependencies.thiserror]
version = "2"

[dev-dependencies.tempfile]
version = "3"

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
