[dependencies.arbitrary]
default-features = false
optional = true
version = "1"
[dependencies.castaway]
default-features = false
optional = true
version = "0.2"
[dependencies.const_fn]
version = "0.4.9"
[dependencies.proptest]
default-features = false
features = ["std"]
optional = true
version = "1"
[dependencies.quickcheck]
default-features = false
optional = true
version = "1"
[dependencies.rkyv]
optional = true
version = "0.7.27"
[dependencies.rustversion]
version = "1.0.0"
[dependencies.serde]
default-features = false
optional = true
version = "1"
[dev-dependencies.quickcheck_macros]
default-features = false
version = "1"
[dev-dependencies.rand]
default-features = false
version = "0.8.3"
[dev-dependencies.serde_json]
default-features = false
features = ["alloc"]
version = "1.0.47"
[[example]]
name = "minimal"
path = "examples/minimal.rs"
[features]
default = ["std", "fallback"]
fallback = []
std = []
[lib]
name = "utcnow"
path = "src/lib.rs"
[lints.clippy]
collapsible_match = "warn"
expect_used = "warn"
match_bool = "warn"
match_ref_pats = "warn"
match_same_arms = "warn"
match_single_binding = "warn"
needless_bool = "deny"
needless_late_init = "warn"
needless_match = "warn"
redundant_guards = "warn"
redundant_pattern = "warn"
redundant_pattern_matching = "warn"
single_match = "warn"
single_match_else = "warn"
[lints.rust]
absolute_paths_not_starting_with_crate = "warn"
elided_lifetimes_in_paths = "warn"
explicit_outlives_requirements = "warn"
meta_variable_misuse = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
non_ascii_idents = "warn"
noop_method_call = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
unreachable_pub = "warn"
unused_lifetimes = "warn"
unused_results = "warn"
warnings = "warn"
[package]
authors = ["René Kijewski <crates.io@k6i.de>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["date-and-time", "no-std"]
description = "Get the current unixtime in a no-std context"
edition = "2018"
keywords = ["time", "unixtime", "utc", "no_std", "cross-platform"]
license = "Apache-2.0"
name = "utcnow"
readme = "README.md"
repository = "https://github.com/Kijewski/utcnow"
version = "0.2.7"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--generate-link-to-definition", "--cfg=docsrs"]
[profile.dev]
panic = "abort"
[profile.release]
panic = "abort"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.js-sys]
version = "0.3.0"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.wasm-bindgen]
version = "0.2.0"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dev-dependencies.wasm-bindgen-test]
version = "0.3.13"
[target.'cfg(any(target_os = "android", target_os = "emscripten", target_os = "fuchsia", target_os = "haiku", target_os = "illumos", target_os = "netbsd", target_os = "solaris"))'.dependencies.errno]
default-features = false
version = "0.3.0"
[target.'cfg(any(target_os = "android", target_os = "emscripten", target_os = "fuchsia", target_os = "haiku", target_os = "illumos", target_os = "netbsd", target_os = "solaris"))'.dependencies.libc]
default-features = false
version = "0.2.126"
[target.'cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "ios", target_os = "linux", target_os = "macos", target_os = "openbsd", target_os = "redox"))'.dependencies.rustix]
features = ["time"]
version = ">= 0.37, < 0.39"
[target.'cfg(target_os = "wasi")'.dependencies.wasi]
default-features = false
version = "0.11.0"
[target.'cfg(target_os = "windows")'.dependencies.winapi]
default-features = false
features = ["sysinfoapi"]
version = "0.3.9"