254 lines
4.7 KiB
TOML
254 lines
4.7 KiB
TOML
# 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 = "2021"
|
|
rust-version = "1.70"
|
|
name = "jiff"
|
|
version = "0.2.35"
|
|
authors = ["Andrew Gallant <jamslam@gmail.com>"]
|
|
build = false
|
|
include = [
|
|
"/src/**/*.rs",
|
|
"/tests/lib.rs",
|
|
"/*.md",
|
|
"COPYING",
|
|
"LICENSE-MIT",
|
|
"UNLICENSE",
|
|
]
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = """
|
|
A date-time library that encourages you to jump into the pit of success.
|
|
|
|
This library is heavily inspired by the Temporal project.
|
|
"""
|
|
documentation = "https://docs.rs/jiff"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"date",
|
|
"time",
|
|
"calendar",
|
|
"zone",
|
|
"duration",
|
|
]
|
|
categories = [
|
|
"date-and-time",
|
|
"no-std",
|
|
]
|
|
license = "Unlicense OR MIT"
|
|
repository = "https://github.com/BurntSushi/jiff"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = [
|
|
"--cfg",
|
|
"docsrs_jiff",
|
|
]
|
|
|
|
[package.metadata.playground]
|
|
default-features = true
|
|
features = [
|
|
"logging",
|
|
"serde",
|
|
"static",
|
|
"tzdb-bundle-always",
|
|
]
|
|
|
|
[features]
|
|
alloc = [
|
|
"jcore/alloc",
|
|
"serde_core?/alloc",
|
|
"portable-atomic-util/alloc",
|
|
"defmt?/alloc",
|
|
]
|
|
default = [
|
|
"std",
|
|
"tz-system",
|
|
"tz-fat",
|
|
"tzdb-bundle-platform",
|
|
"tzdb-zoneinfo",
|
|
"tzdb-concatenated",
|
|
"perf-inline",
|
|
]
|
|
defmt = [
|
|
"dep:defmt",
|
|
"jcore/defmt",
|
|
]
|
|
js = [
|
|
"dep:wasm-bindgen",
|
|
"dep:js-sys",
|
|
]
|
|
logging = [
|
|
"dep:log",
|
|
"jcore/logging",
|
|
]
|
|
perf-inline = []
|
|
serde = ["dep:serde_core"]
|
|
static = [
|
|
"static-tz",
|
|
"jiff-static?/tzdb",
|
|
]
|
|
static-tz = ["dep:jiff-static"]
|
|
std = [
|
|
"alloc",
|
|
"jcore/std",
|
|
"log?/std",
|
|
"serde_core?/std",
|
|
]
|
|
tz-fat = [
|
|
"jcore/tz-fat",
|
|
"jiff-static?/tz-fat",
|
|
]
|
|
tz-system = [
|
|
"std",
|
|
"dep:windows-link",
|
|
]
|
|
tzdb-bundle-always = [
|
|
"dep:jiff-tzdb",
|
|
"alloc",
|
|
]
|
|
tzdb-bundle-platform = [
|
|
"dep:jiff-tzdb-platform",
|
|
"alloc",
|
|
]
|
|
tzdb-concatenated = ["std"]
|
|
tzdb-zoneinfo = ["std"]
|
|
|
|
[lib]
|
|
name = "jiff"
|
|
path = "src/lib.rs"
|
|
|
|
[[test]]
|
|
name = "integration"
|
|
path = "tests/lib.rs"
|
|
|
|
[dependencies.defmt]
|
|
version = "1.0.0"
|
|
optional = true
|
|
|
|
[dependencies.jcore]
|
|
version = "0.1.0"
|
|
default-features = false
|
|
package = "jiff-core"
|
|
|
|
[dependencies.jiff-static]
|
|
version = "0.2"
|
|
optional = true
|
|
|
|
[dependencies.jiff-tzdb]
|
|
version = "0.1.8"
|
|
optional = true
|
|
|
|
[dependencies.log]
|
|
version = "0.4.21"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.serde_core]
|
|
version = "1.0.221"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dev-dependencies.anyhow]
|
|
version = "1.0.81"
|
|
|
|
[dev-dependencies.chrono]
|
|
version = "0.4.38"
|
|
features = ["serde"]
|
|
|
|
[dev-dependencies.chrono-tz]
|
|
version = "0.10.0"
|
|
|
|
[dev-dependencies.humantime]
|
|
version = "2.1.0"
|
|
|
|
[dev-dependencies.insta]
|
|
version = "1.39.0"
|
|
|
|
[dev-dependencies.log]
|
|
version = "0.4.21"
|
|
|
|
[dev-dependencies.quickcheck]
|
|
version = "1.0.3"
|
|
default-features = false
|
|
|
|
[dev-dependencies.serde]
|
|
version = "1.0.203"
|
|
features = ["derive"]
|
|
|
|
[dev-dependencies.serde_json]
|
|
version = "1.0.117"
|
|
|
|
[dev-dependencies.serde_yaml]
|
|
version = "0.9.34"
|
|
|
|
[dev-dependencies.tabwriter]
|
|
version = "1.4.0"
|
|
|
|
[dev-dependencies.tempfile]
|
|
version = "3.27.0"
|
|
|
|
[dev-dependencies.time]
|
|
version = "0.3.36"
|
|
features = [
|
|
"local-offset",
|
|
"macros",
|
|
"parsing",
|
|
]
|
|
|
|
[dev-dependencies.time-tz]
|
|
version = "2.0.0"
|
|
|
|
[dev-dependencies.tzfile]
|
|
version = "0.1.3"
|
|
|
|
[dev-dependencies.walkdir]
|
|
version = "2.5.0"
|
|
|
|
[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dependencies.js-sys]
|
|
version = "0.3.50"
|
|
optional = true
|
|
|
|
[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dependencies.wasm-bindgen]
|
|
version = "0.2.70"
|
|
optional = true
|
|
|
|
[target."cfg(any())".dependencies.jiff-static]
|
|
version = "=0.2.35"
|
|
|
|
[target.'cfg(any(windows, target_family = "wasm"))'.dependencies.jiff-tzdb-platform]
|
|
version = "0.1.3"
|
|
optional = true
|
|
|
|
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.hifitime]
|
|
version = "4.3.0"
|
|
|
|
[target.'cfg(not(target_has_atomic = "ptr"))'.dependencies.portable-atomic]
|
|
version = "1.10.0"
|
|
default-features = false
|
|
|
|
[target.'cfg(not(target_has_atomic = "ptr"))'.dependencies.portable-atomic-util]
|
|
version = "0.2.4"
|
|
default-features = false
|
|
|
|
[target."cfg(windows)".dependencies.windows-link]
|
|
version = "0.2.1"
|
|
optional = true
|
|
|
|
[lints.rust.unexpected_cfgs]
|
|
level = "allow"
|
|
priority = 0
|
|
check-cfg = ["cfg(docsrs_jiff)"]
|