# 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 = "bma-ts"
version = "0.2.6"
authors = ["Serhij S. <div@altertech.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bohemia Automation time library"
readme = "README.md"
keywords = [
    "time",
    "date",
]
license = "MIT"
repository = "https://github.com/alttch/bma-ts"

[package.metadata.docs.rs]
features = ["full"]

[package.metadata.playground]
features = ["full"]

[features]
as-float-secs = []
chrono = [
    "dep:chrono",
    "dateparser",
]
full = [
    "chrono",
    "serde",
    "sqlx",
]
serde = ["dep:serde"]

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

[dependencies.chrono]
version = "0.4"
optional = true

[dependencies.dateparser]
version = "0.2"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.sqlx]
version = "0.8"
features = [
    "postgres",
    "sqlite",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "1.0"

[dev-dependencies.serde_json]
version = "1"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-time]
version = "1.1"

[target."cfg(unix)".dependencies.nix]
version = "0.27"
features = ["time"]
