[package]
edition = "2024"
rust-version = "1.94"
name = "ppoppo-clock"
version = "0.1.0"
authors = ["ppoppo Team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Universal Clock + Timer port for ppoppo workspace — chat-as-infrastructure primitive"
homepage = "https://github.com/hakchin/ppoppo/tree/main/crates/shared/ppoppo-clock"
readme = false
license = "MIT"
repository = "https://github.com/hakchin/ppoppo"
resolver = "2"
[features]
default = []
mock = []
native = [
"dep:tokio",
"dep:time-tz",
]
testing = ["mock"]
wasm = [
"dep:js-sys",
"dep:wasm-bindgen",
"dep:wasm-bindgen-futures",
"dep:web-sys",
]
[lib]
name = "ppoppo_clock"
path = "src/lib.rs"
[dependencies.futures]
version = "0.3"
[dependencies.js-sys]
version = "0.3"
optional = true
[dependencies.thiserror]
version = "2.0"
[dependencies.time]
version = "0.3.47"
features = [
"serde",
"formatting",
"parsing",
"macros",
]
[dependencies.time-tz]
version = "2"
optional = true
[dependencies.tokio]
version = "1.51"
features = [
"full",
"time",
"rt",
]
optional = true
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true
[dependencies.web-sys]
version = "0.3"
features = ["Window"]
optional = true
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.tokio]
version = "1.51"
features = [
"full",
"macros",
"rt",
"time",
"test-util",
]
[lints.clippy]
expect_used = "deny"
panic = "deny"
unwrap_used = "deny"
[lints.rust]
unsafe_code = "forbid"