[package]
name = "martian"
version = "0.3.0"
edition = "2021"
authors = ["Jan Piotrzkowski <piotrzkowski.dev@gmail.com>"]
license = "Apache-2.0"
description = "A Rust library providing Mars centric utility modules like: time, date, calendar etc."
repository = "https://github.com/babilonczyk/martian"
homepage = "https://github.com/babilonczyk/martian"
readme = "README.md"
keywords = ["astronomy", "utility", "date-time", "mars", "darian"]
categories = ["aerospace", "date-and-time", "science", "internationalization"]

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

[dependencies]
hifitime = { version = "4.0.0", optional = true }
thiserror = { version = "2.0.0", optional = true }
regex = { version = "1.11.1", optional = true }
serde_json = { version = "1.0", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }

[features]
default = ["time", "date", "calendar"]
time = ["hifitime", "thiserror", "regex"]
date = ["time", "hifitime", "thiserror"]
calendar = ["date", "time", "serde_json", "serde", "thiserror"]