# 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"
rust-version = "1.85"
name = "fits-well"
version = "0.1.3"
build = false
exclude = [
    "docs/",
    "tests/",
    ".claude/",
    "CLAUDE.md",
    "todo.txt",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A blazing-fast reader and writer for FITS (Flexible Image Transport System) files, targeting the full FITS 4.0 standard."
readme = "README.md"
keywords = [
    "fits",
    "astronomy",
    "image",
    "fileformat",
]
categories = [
    "science",
    "parser-implementations",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/xorza/fits"
resolver = "2"

[package.metadata.docs.rs]
features = [
    "compression",
    "parallel",
    "mmap",
    "ndarray",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
compression = ["dep:flate2"]
default = [
    "parallel",
    "compression",
]
internals = []
mmap = ["dep:memmap2"]
ndarray = ["dep:ndarray"]
parallel = [
    "compression",
    "dep:rayon",
]

[lib]
name = "fits_well"
path = "src/lib.rs"

[[example]]
name = "compression"
path = "examples/compression.rs"
required-features = ["compression"]

[[example]]
name = "image"
path = "examples/image.rs"

[[example]]
name = "inspect"
path = "examples/inspect.rs"

[[example]]
name = "ndarray"
path = "examples/ndarray.rs"
required-features = ["ndarray"]

[[example]]
name = "table"
path = "examples/table.rs"

[[example]]
name = "time"
path = "examples/time.rs"

[[example]]
name = "wcs"
path = "examples/wcs.rs"

[[bench]]
name = "compress"
path = "benches/compress.rs"
harness = false
required-features = ["compression"]

[[bench]]
name = "decode"
path = "benches/decode.rs"
harness = false
required-features = ["internals"]

[[bench]]
name = "read"
path = "benches/read.rs"
harness = false

[dependencies.bitvec]
version = "1"

[dependencies.flate2]
version = "1.1"
optional = true

[dependencies.memmap2]
version = "0.9"
optional = true

[dependencies.ndarray]
version = "0.17"
optional = true

[dependencies.num-complex]
version = "0.4"

[dependencies.rayon]
version = "1"
optional = true

[dev-dependencies.criterion]
version = "0.8"
