mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 12:55:23 +01:00
47 lines
1.6 KiB
TOML
47 lines
1.6 KiB
TOML
[package]
|
|
name = "rtic-sync"
|
|
version = "1.4.0"
|
|
|
|
edition = "2021"
|
|
authors = [
|
|
"The Real-Time Interrupt-driven Concurrency developers",
|
|
"Emil Fresk <emil.fresk@gmail.com>",
|
|
"Henrik Tjäder <henrik@tjaders.com>",
|
|
"Jorge Aparicio <jorge@japaric.io>",
|
|
"Per Lindgren <per.lindgren@ltu.se>",
|
|
]
|
|
categories = ["concurrency", "embedded", "no-std", "asynchronous"]
|
|
description = "Synchronization primitives for asynchronous contexts"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/rtic-rs/rtic"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
heapless = "0.8"
|
|
critical-section = "1"
|
|
rtic-common = { version = "1.0.0", path = "../rtic-common" }
|
|
portable-atomic = { version = "1", default-features = false }
|
|
embedded-hal = { version = "1.0.0" }
|
|
embedded-hal-async = { version = "1.0.0" }
|
|
embedded-hal-bus = { version = "0.3.0", features = ["async"] }
|
|
defmt-03 = { package = "defmt", version = "0.3", optional = true }
|
|
|
|
[dev-dependencies]
|
|
cassette = "0.3.0"
|
|
static_cell = "2.1.0"
|
|
|
|
[target.'cfg(not(loom))'.dev-dependencies]
|
|
tokio = { version = "1", features = ["rt", "macros", "time"], default-features = false }
|
|
|
|
[features]
|
|
default = []
|
|
testing = ["critical-section/std", "rtic-common/testing"]
|
|
defmt-03 = ["dep:defmt-03", "embedded-hal/defmt-03", "embedded-hal-async/defmt-03", "embedded-hal-bus/defmt-03"]
|
|
|
|
[lints.rust]
|
|
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(loom)'] }
|
|
|
|
[target.'cfg(loom)'.dependencies]
|
|
loom = { version = "0.7.2", features = [ "futures" ] }
|
|
critical-section = { version = "1", features = [ "restore-state-bool" ] }
|