[package]
edition = "2024"
rust-version = "1.87"
name = "xraydb"
version = "0.4.0"
authors = ["Ameyanagi <contact@ameyanagi.com>"]
build = false
exclude = ["/benches/**"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "X-ray reference data for the elements: absorption edges, emission lines, and Elam/Chantler cross-sections"
documentation = "https://docs.rs/xraydb"
readme = "README.md"
keywords = [
"xray",
"physics",
"spectroscopy",
"crystallography",
"science",
]
categories = [
"science",
"data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Ameyanagi/xraydb-rs"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["embedded-data"]
embedded-data = ["zstd"]
optics = ["dep:num-complex"]
zstd = ["dep:ruzstd"]
[lib]
name = "xraydb"
path = "src/lib.rs"
[[test]]
name = "coverage_gap_tests"
path = "tests/coverage_gap_tests.rs"
[[test]]
name = "cross_section_tests"
path = "tests/cross_section_tests.rs"
[[test]]
name = "data_loading_tests"
path = "tests/data_loading_tests.rs"
[[test]]
name = "element_tests"
path = "tests/element_tests.rs"
[[test]]
name = "f1_reference_tests"
path = "tests/f1_reference_tests.rs"
[[test]]
name = "material_tests"
path = "tests/material_tests.rs"
[[test]]
name = "optics_tests"
path = "tests/optics_tests.rs"
[[test]]
name = "phase3_tests"
path = "tests/phase3_tests.rs"
[[test]]
name = "regression_tests"
path = "tests/regression_tests.rs"
[dependencies.num-complex]
version = "0.4"
optional = true
[dependencies.postcard]
version = "1"
features = ["alloc"]
default-features = false
[dependencies.ruzstd]
version = "0.8"
optional = true
[dependencies.serde]
version = "1"
features = [
"derive",
"alloc",
]
default-features = false
[dependencies.thiserror]
version = "2"
[dependencies.xraydb-data]
version = "0.4.0"
[dev-dependencies.approx]
version = "0.5"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.num-complex]
version = "0.4"