php-dates 0.2.1

PHP date() patterns for Rust: strict createFromFormat-style parsing, a pattern resolution contract and a Day.js export, with no framework dependency
Documentation
[package]
name = "php-dates"
version = "0.2.1"
edition = "2024"
rust-version = "1.85"
license = "MIT"
description = "PHP date() patterns for Rust: strict createFromFormat-style parsing, a pattern resolution contract and a Day.js export, with no framework dependency"
authors = ["ReynoTECH"]
keywords = ["php", "date", "format", "datetime", "dayjs"]
categories = ["date-and-time"]
repository = "https://github.com/reynotech/php-dates-rust"
readme = "README.md"
exclude = [".github/", ".gitignore", "AUDIT.md", "deny.toml", "fuzz/", "rust-toolchain.toml", "tests/"]

[lib]
name = "php_dates"

[features]
# Builds the IANA time zone database into the binary, for systems that have none (distroless, `scratch`).
tzdb-bundle = ["jiff/tzdb-bundle-always"]

[dependencies]
jiff = "1"
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order"] }
thiserror = "2"

[dev-dependencies]
criterion = { version = "0.7", default-features = false, features = ["cargo_bench_support"] }
proptest = { version = "1", default-features = false, features = ["std"] }

[[bench]]
name = "patterns"
harness = false

[package.metadata.docs.rs]
all-features = true

[lints.rust]
unsafe_code = "forbid"