mirror of
https://github.com/stoatchat/iso8601-timestamp.git
synced 2026-06-30 21:47:58 -04:00
79 lines
2.9 KiB
TOML
79 lines
2.9 KiB
TOML
[package]
|
|
name = "iso8601-timestamp"
|
|
version = "0.4.0"
|
|
authors = ["novacrazy <novacrazy@gmail.com>"]
|
|
edition = "2018"
|
|
description = "High-performance ISO8601 Timestamp formatting and parsing"
|
|
keywords = ["date", "time", "iso8601", "formatting", "parsing"]
|
|
readme = "README.md"
|
|
categories = ["date-and-time", "no-std", "parser-implementations", "value-formatting"]
|
|
license = "MIT OR Apache-2.0"
|
|
include = ["src/**/*", "LICENSE-*", "README.md"]
|
|
documentation = "https://docs.rs/iso8601-timestamp"
|
|
repository = "https://github.com/Lantern-chat/iso8601-timestamp"
|
|
|
|
[package.metadata.docs.rs]
|
|
features = ["serde", "pg", "schema", "rusqlite", "rand", "quickcheck", "borsh"]
|
|
|
|
[features]
|
|
std = ["time/std"]
|
|
serde = ["dep:serde_core"]
|
|
bson = ["serde"]
|
|
diesel-pg = ["diesel", "diesel/postgres_backend"]
|
|
js = ["js-sys"]
|
|
pg = ["postgres-types", "bytes", "std", "postgres-protocol"]
|
|
rkyv_08 = ["dep:rkyv_08"]
|
|
rusqlite = ["dep:rusqlite"]
|
|
rand = ["dep:rand", "time/rand"]
|
|
quickcheck = ["dep:quickcheck", "time/quickcheck"]
|
|
schema = ["dep:schemars"]
|
|
verify = [] # Verify numeric input during parsing
|
|
default = ["std", "serde"]
|
|
|
|
[dependencies]
|
|
generic-array = "1"
|
|
serde_core = { optional = true, version = "1", default-features = false }
|
|
time = { version = "0.3", default-features = false, features = ["macros"] }
|
|
bytes = { optional = true, version = "1.1.0" }
|
|
schemars = { optional = true, version = "1" }
|
|
rusqlite = { optional = true, version = "0.37", default-features = false }
|
|
postgres-types = { optional = true, version = "0.2.2", features = ["with-time-0_3"], default-features = false }
|
|
postgres-protocol = { optional = true, version = "0.6", default-features = false }
|
|
diesel = { optional = true, version = "2", default-features = false, features = ["time", "with-deprecated"] }
|
|
rand = { optional = true, version = "0.9", default-features = false }
|
|
quickcheck = { optional = true, version = "1.0", default-features = false }
|
|
worker = { optional = true, version = "0.6" }
|
|
js-sys = { optional = true, version = "0.3" }
|
|
ramhorns = { optional = true, version = "1.0" }
|
|
fred = { optional = true, version = "10.0", default-features = false }
|
|
borsh = { optional = true, version = "1", default-features = false }
|
|
|
|
rkyv_08 = { package = "rkyv", optional = true, version = "0.8", default-features = false, features = ["bytecheck"] }
|
|
|
|
[dev-dependencies]
|
|
time = { version = "0.3", features = ["macros", "parsing", "formatting"] }
|
|
criterion = { version = "0.7", features = ["html_reports"] }
|
|
chrono = "0.4"
|
|
iso8601 = "0.6"
|
|
ciborium = "0.2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
rkyv_08 = { package = "rkyv", version = "0.8", default-features = true }
|
|
serde_json = "1"
|
|
|
|
rusqlite = { version = "0.37", default-features = false, features = ["bundled"] }
|
|
|
|
[[bench]]
|
|
name = "timestamp"
|
|
path = "benches/timestamp.rs"
|
|
harness = false
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = 'fat'
|
|
codegen-units = 1
|
|
|
|
[profile.bench]
|
|
opt-level = 3
|
|
lto = 'fat'
|
|
codegen-units = 1
|