[package]
name = "mwalib"
version = "0.6.2"
homepage = "https://github.com/MWATelescope/mwalib"
repository = "https://github.com/MWATelescope/mwalib"
readme = "README.md"
authors = ["Greg Sleap <greg.sleap@curtin.edu.au>",
           "Christopher H. Jordan <christopherjordan87@gmail.com>"]
edition = "2018"
description = "A library to simplify reading Murchison Widefield Array (MWA) raw visibilities, voltages and metadata."
license = "MPL-2.0"
keywords = ["radioastronomy", "mwa", "astronomy"]
categories = ["science","parsing"]
exclude = ["test_files/*", "tools/*",".github/*"]

[profile.release]
lto = true
# Allow for maximum size reduction optimizations
codegen-units = 1

# Make a rust library, as well as static and C-compatible dynamic libraries
# available as "libmwalib.a" and "libmwalib.so".
[lib]
crate-type = ["rlib", "staticlib", "cdylib"]

[features]
# Compile cfitsio from source and link it statically.
cfitsio-static = ["fitsio-sys/fitsio-src"]

[dependencies]
chrono = "0.4.*"
fitsio = "0.17.*"
fitsio-sys = "^0"  # fitsio also uses fitsio-sys so ensure we both use the same
lazy_static = "1.4.*"
libc = "0.2.*"
# Allow downstream users to select the rayon version to use.
rayon = ">=1.3,<1.6"
regex = "1.4.*"
thiserror = "1.0.*"

[dev-dependencies]
anyhow = "1.0.*"
csv = "1.1.*"
float-cmp = "0.8.*"
structopt = "0.3.*"
tempdir = "0.3.*"
cbindgen = "0.*"

[build-dependencies]
cbindgen = "0.*"
