embassy-time 0.3.2

Instant and Duration for embedded no-std systems, with async timer support
Documentation
[dependencies.cfg-if]
version = "1.0.0"

[dependencies.critical-section]
version = "1.1"

[dependencies.defmt]
optional = true
version = "0.3"

[dependencies.document-features]
version = "0.2.7"

[dependencies.embassy-time-driver]
version = "0.1.0"

[dependencies.embassy-time-queue-driver]
version = "0.1.0"

[dependencies.embedded-hal-02]
package = "embedded-hal"
version = "0.2.6"

[dependencies.embedded-hal-1]
package = "embedded-hal"
version = "1.0"

[dependencies.embedded-hal-async]
version = "1.0"

[dependencies.futures-util]
default-features = false
version = "0.3.17"

[dependencies.heapless]
version = "0.8"

[dependencies.js-sys]
optional = true
version = "0.3"

[dependencies.log]
optional = true
version = "0.4.14"

[dependencies.wasm-bindgen]
optional = true
version = "0.2.81"

[dependencies.wasm-timer]
optional = true
version = "0.2.5"

[dev-dependencies.critical-section]
features = ["std"]
version = "1.1"

[dev-dependencies.embassy-executor]
version = "0.6.0"

[dev-dependencies.serial_test]
version = "0.9"

[features]
defmt-timestamp-uptime = ["defmt"]
defmt-timestamp-uptime-ms = ["defmt"]
defmt-timestamp-uptime-s = ["defmt"]
defmt-timestamp-uptime-tms = ["defmt"]
defmt-timestamp-uptime-ts = ["defmt"]
defmt-timestamp-uptime-tus = ["defmt"]
defmt-timestamp-uptime-us = ["defmt"]
generic-queue = []
generic-queue-128 = ["generic-queue"]
generic-queue-16 = ["generic-queue"]
generic-queue-32 = ["generic-queue"]
generic-queue-64 = ["generic-queue"]
generic-queue-8 = ["generic-queue"]
mock-driver = ["tick-hz-1_000_000"]
std = ["tick-hz-1_000_000", "critical-section/std"]
tick-hz-1 = ["embassy-time-driver/tick-hz-1"]
tick-hz-10 = ["embassy-time-driver/tick-hz-10"]
tick-hz-100 = ["embassy-time-driver/tick-hz-100"]
tick-hz-100_000 = ["embassy-time-driver/tick-hz-100_000"]
tick-hz-100_000_000 = ["embassy-time-driver/tick-hz-100_000_000"]
tick-hz-10_000 = ["embassy-time-driver/tick-hz-10_000"]
tick-hz-10_000_000 = ["embassy-time-driver/tick-hz-10_000_000"]
tick-hz-10_240_000 = ["embassy-time-driver/tick-hz-10_240_000"]
tick-hz-110_000_000 = ["embassy-time-driver/tick-hz-110_000_000"]
tick-hz-120_000_000 = ["embassy-time-driver/tick-hz-120_000_000"]
tick-hz-128 = ["embassy-time-driver/tick-hz-128"]
tick-hz-128_000 = ["embassy-time-driver/tick-hz-128_000"]
tick-hz-128_000_000 = ["embassy-time-driver/tick-hz-128_000_000"]
tick-hz-12_000_000 = ["embassy-time-driver/tick-hz-12_000_000"]
tick-hz-130_000_000 = ["embassy-time-driver/tick-hz-130_000_000"]
tick-hz-131_072 = ["embassy-time-driver/tick-hz-131_072"]
tick-hz-131_072_000 = ["embassy-time-driver/tick-hz-131_072_000"]
tick-hz-140_000_000 = ["embassy-time-driver/tick-hz-140_000_000"]
tick-hz-144_000_000 = ["embassy-time-driver/tick-hz-144_000_000"]
tick-hz-150_000_000 = ["embassy-time-driver/tick-hz-150_000_000"]
tick-hz-16 = ["embassy-time-driver/tick-hz-16"]
tick-hz-160_000 = ["embassy-time-driver/tick-hz-160_000"]
tick-hz-160_000_000 = ["embassy-time-driver/tick-hz-160_000_000"]
tick-hz-163_840_000 = ["embassy-time-driver/tick-hz-163_840_000"]
tick-hz-16_000 = ["embassy-time-driver/tick-hz-16_000"]
tick-hz-16_000_000 = ["embassy-time-driver/tick-hz-16_000_000"]
tick-hz-16_384 = ["embassy-time-driver/tick-hz-16_384"]
tick-hz-16_384_000 = ["embassy-time-driver/tick-hz-16_384_000"]
tick-hz-16_777_216 = ["embassy-time-driver/tick-hz-16_777_216"]
tick-hz-170_000_000 = ["embassy-time-driver/tick-hz-170_000_000"]
tick-hz-180_000_000 = ["embassy-time-driver/tick-hz-180_000_000"]
tick-hz-18_000_000 = ["embassy-time-driver/tick-hz-18_000_000"]
tick-hz-190_000_000 = ["embassy-time-driver/tick-hz-190_000_000"]
tick-hz-192_000_000 = ["embassy-time-driver/tick-hz-192_000_000"]
tick-hz-1_000 = ["embassy-time-driver/tick-hz-1_000"]
tick-hz-1_000_000 = ["embassy-time-driver/tick-hz-1_000_000"]
tick-hz-1_000_000_000 = ["embassy-time-driver/tick-hz-1_000_000_000"]
tick-hz-1_024 = ["embassy-time-driver/tick-hz-1_024"]
tick-hz-1_024_000 = ["embassy-time-driver/tick-hz-1_024_000"]
tick-hz-1_048_576 = ["embassy-time-driver/tick-hz-1_048_576"]
tick-hz-1_280_000 = ["embassy-time-driver/tick-hz-1_280_000"]
tick-hz-1_310_720_000 = ["embassy-time-driver/tick-hz-1_310_720_000"]
tick-hz-2 = ["embassy-time-driver/tick-hz-2"]
tick-hz-200_000_000 = ["embassy-time-driver/tick-hz-200_000_000"]
tick-hz-20_000 = ["embassy-time-driver/tick-hz-20_000"]
tick-hz-20_000_000 = ["embassy-time-driver/tick-hz-20_000_000"]
tick-hz-20_480_000 = ["embassy-time-driver/tick-hz-20_480_000"]
tick-hz-210_000_000 = ["embassy-time-driver/tick-hz-210_000_000"]
tick-hz-220_000_000 = ["embassy-time-driver/tick-hz-220_000_000"]
tick-hz-230_000_000 = ["embassy-time-driver/tick-hz-230_000_000"]
tick-hz-240_000_000 = ["embassy-time-driver/tick-hz-240_000_000"]
tick-hz-24_000_000 = ["embassy-time-driver/tick-hz-24_000_000"]
tick-hz-250_000_000 = ["embassy-time-driver/tick-hz-250_000_000"]
tick-hz-256 = ["embassy-time-driver/tick-hz-256"]
tick-hz-256_000 = ["embassy-time-driver/tick-hz-256_000"]
tick-hz-256_000_000 = ["embassy-time-driver/tick-hz-256_000_000"]
tick-hz-260_000_000 = ["embassy-time-driver/tick-hz-260_000_000"]
tick-hz-262_144 = ["embassy-time-driver/tick-hz-262_144"]
tick-hz-262_144_000 = ["embassy-time-driver/tick-hz-262_144_000"]
tick-hz-270_000_000 = ["embassy-time-driver/tick-hz-270_000_000"]
tick-hz-280_000_000 = ["embassy-time-driver/tick-hz-280_000_000"]
tick-hz-288_000_000 = ["embassy-time-driver/tick-hz-288_000_000"]
tick-hz-290_000_000 = ["embassy-time-driver/tick-hz-290_000_000"]
tick-hz-2_000 = ["embassy-time-driver/tick-hz-2_000"]
tick-hz-2_000_000 = ["embassy-time-driver/tick-hz-2_000_000"]
tick-hz-2_048 = ["embassy-time-driver/tick-hz-2_048"]
tick-hz-2_048_000 = ["embassy-time-driver/tick-hz-2_048_000"]
tick-hz-2_097_152 = ["embassy-time-driver/tick-hz-2_097_152"]
tick-hz-2_560_000 = ["embassy-time-driver/tick-hz-2_560_000"]
tick-hz-2_621_440_000 = ["embassy-time-driver/tick-hz-2_621_440_000"]
tick-hz-300_000_000 = ["embassy-time-driver/tick-hz-300_000_000"]
tick-hz-30_000_000 = ["embassy-time-driver/tick-hz-30_000_000"]
tick-hz-32 = ["embassy-time-driver/tick-hz-32"]
tick-hz-320_000 = ["embassy-time-driver/tick-hz-320_000"]
tick-hz-320_000_000 = ["embassy-time-driver/tick-hz-320_000_000"]
tick-hz-327_680_000 = ["embassy-time-driver/tick-hz-327_680_000"]
tick-hz-32_000 = ["embassy-time-driver/tick-hz-32_000"]
tick-hz-32_000_000 = ["embassy-time-driver/tick-hz-32_000_000"]
tick-hz-32_768 = ["embassy-time-driver/tick-hz-32_768"]
tick-hz-32_768_000 = ["embassy-time-driver/tick-hz-32_768_000"]
tick-hz-340_000_000 = ["embassy-time-driver/tick-hz-340_000_000"]
tick-hz-360_000_000 = ["embassy-time-driver/tick-hz-360_000_000"]
tick-hz-36_000_000 = ["embassy-time-driver/tick-hz-36_000_000"]
tick-hz-380_000_000 = ["embassy-time-driver/tick-hz-380_000_000"]
tick-hz-384_000_000 = ["embassy-time-driver/tick-hz-384_000_000"]
tick-hz-3_000_000 = ["embassy-time-driver/tick-hz-3_000_000"]
tick-hz-4 = ["embassy-time-driver/tick-hz-4"]
tick-hz-400_000_000 = ["embassy-time-driver/tick-hz-400_000_000"]
tick-hz-40_000 = ["embassy-time-driver/tick-hz-40_000"]
tick-hz-40_000_000 = ["embassy-time-driver/tick-hz-40_000_000"]
tick-hz-40_960_000 = ["embassy-time-driver/tick-hz-40_960_000"]
tick-hz-420_000_000 = ["embassy-time-driver/tick-hz-420_000_000"]
tick-hz-440_000_000 = ["embassy-time-driver/tick-hz-440_000_000"]
tick-hz-460_000_000 = ["embassy-time-driver/tick-hz-460_000_000"]
tick-hz-480_000_000 = ["embassy-time-driver/tick-hz-480_000_000"]
tick-hz-48_000_000 = ["embassy-time-driver/tick-hz-48_000_000"]
tick-hz-4_000 = ["embassy-time-driver/tick-hz-4_000"]
tick-hz-4_000_000 = ["embassy-time-driver/tick-hz-4_000_000"]
tick-hz-4_096 = ["embassy-time-driver/tick-hz-4_096"]
tick-hz-4_096_000 = ["embassy-time-driver/tick-hz-4_096_000"]
tick-hz-4_194_304 = ["embassy-time-driver/tick-hz-4_194_304"]
tick-hz-500_000_000 = ["embassy-time-driver/tick-hz-500_000_000"]
tick-hz-50_000_000 = ["embassy-time-driver/tick-hz-50_000_000"]
tick-hz-512 = ["embassy-time-driver/tick-hz-512"]
tick-hz-512_000 = ["embassy-time-driver/tick-hz-512_000"]
tick-hz-512_000_000 = ["embassy-time-driver/tick-hz-512_000_000"]
tick-hz-520_000_000 = ["embassy-time-driver/tick-hz-520_000_000"]
tick-hz-524_288 = ["embassy-time-driver/tick-hz-524_288"]
tick-hz-524_288_000 = ["embassy-time-driver/tick-hz-524_288_000"]
tick-hz-540_000_000 = ["embassy-time-driver/tick-hz-540_000_000"]
tick-hz-560_000_000 = ["embassy-time-driver/tick-hz-560_000_000"]
tick-hz-576_000_000 = ["embassy-time-driver/tick-hz-576_000_000"]
tick-hz-580_000_000 = ["embassy-time-driver/tick-hz-580_000_000"]
tick-hz-5_120_000 = ["embassy-time-driver/tick-hz-5_120_000"]
tick-hz-5_242_880_000 = ["embassy-time-driver/tick-hz-5_242_880_000"]
tick-hz-600_000_000 = ["embassy-time-driver/tick-hz-600_000_000"]
tick-hz-60_000_000 = ["embassy-time-driver/tick-hz-60_000_000"]
tick-hz-620_000_000 = ["embassy-time-driver/tick-hz-620_000_000"]
tick-hz-64 = ["embassy-time-driver/tick-hz-64"]
tick-hz-640_000 = ["embassy-time-driver/tick-hz-640_000"]
tick-hz-640_000_000 = ["embassy-time-driver/tick-hz-640_000_000"]
tick-hz-64_000 = ["embassy-time-driver/tick-hz-64_000"]
tick-hz-64_000_000 = ["embassy-time-driver/tick-hz-64_000_000"]
tick-hz-655_360_000 = ["embassy-time-driver/tick-hz-655_360_000"]
tick-hz-65_536 = ["embassy-time-driver/tick-hz-65_536"]
tick-hz-65_536_000 = ["embassy-time-driver/tick-hz-65_536_000"]
tick-hz-660_000_000 = ["embassy-time-driver/tick-hz-660_000_000"]
tick-hz-680_000_000 = ["embassy-time-driver/tick-hz-680_000_000"]
tick-hz-6_000_000 = ["embassy-time-driver/tick-hz-6_000_000"]
tick-hz-700_000_000 = ["embassy-time-driver/tick-hz-700_000_000"]
tick-hz-70_000_000 = ["embassy-time-driver/tick-hz-70_000_000"]
tick-hz-720_000_000 = ["embassy-time-driver/tick-hz-720_000_000"]
tick-hz-72_000_000 = ["embassy-time-driver/tick-hz-72_000_000"]
tick-hz-740_000_000 = ["embassy-time-driver/tick-hz-740_000_000"]
tick-hz-760_000_000 = ["embassy-time-driver/tick-hz-760_000_000"]
tick-hz-768_000_000 = ["embassy-time-driver/tick-hz-768_000_000"]
tick-hz-780_000_000 = ["embassy-time-driver/tick-hz-780_000_000"]
tick-hz-8 = ["embassy-time-driver/tick-hz-8"]
tick-hz-800_000_000 = ["embassy-time-driver/tick-hz-800_000_000"]
tick-hz-80_000 = ["embassy-time-driver/tick-hz-80_000"]
tick-hz-80_000_000 = ["embassy-time-driver/tick-hz-80_000_000"]
tick-hz-81_920_000 = ["embassy-time-driver/tick-hz-81_920_000"]
tick-hz-820_000_000 = ["embassy-time-driver/tick-hz-820_000_000"]
tick-hz-840_000_000 = ["embassy-time-driver/tick-hz-840_000_000"]
tick-hz-860_000_000 = ["embassy-time-driver/tick-hz-860_000_000"]
tick-hz-880_000_000 = ["embassy-time-driver/tick-hz-880_000_000"]
tick-hz-8_000 = ["embassy-time-driver/tick-hz-8_000"]
tick-hz-8_000_000 = ["embassy-time-driver/tick-hz-8_000_000"]
tick-hz-8_192 = ["embassy-time-driver/tick-hz-8_192"]
tick-hz-8_192_000 = ["embassy-time-driver/tick-hz-8_192_000"]
tick-hz-8_388_608 = ["embassy-time-driver/tick-hz-8_388_608"]
tick-hz-900_000_000 = ["embassy-time-driver/tick-hz-900_000_000"]
tick-hz-90_000_000 = ["embassy-time-driver/tick-hz-90_000_000"]
tick-hz-920_000_000 = ["embassy-time-driver/tick-hz-920_000_000"]
tick-hz-940_000_000 = ["embassy-time-driver/tick-hz-940_000_000"]
tick-hz-960_000_000 = ["embassy-time-driver/tick-hz-960_000_000"]
tick-hz-96_000_000 = ["embassy-time-driver/tick-hz-96_000_000"]
tick-hz-980_000_000 = ["embassy-time-driver/tick-hz-980_000_000"]
tick-hz-9_000_000 = ["embassy-time-driver/tick-hz-9_000_000"]
wasm = ["dep:wasm-bindgen", "dep:js-sys", "dep:wasm-timer", "tick-hz-1_000_000"]

[lib]
name = "embassy_time"
path = "src/lib.rs"

[package]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["embedded", "no-std", "concurrency", "asynchronous"]
description = "Instant and Duration for embedded no-std systems, with async timer support"
documentation = "https://docs.embassy.dev/embassy-time"
edition = "2021"
license = "MIT OR Apache-2.0"
name = "embassy-time"
readme = "README.md"
repository = "https://github.com/embassy-rs/embassy"
version = "0.3.2"

[package.metadata.docs.rs]
features = ["defmt", "std"]

[package.metadata.embassy_docs]
features = ["defmt", "std"]
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-time-v$VERSION/embassy-time/src/"
src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-time/src/"
target = "x86_64-unknown-linux-gnu"