[package] name = "wgpu-sync" version.workspace = true edition.workspace = true description = "Synchronization primitives for wgpu. Not meant for general use." homepage.workspace = true repository.workspace = true keywords.workspace = true license.workspace = true # Override the workspace's `rust-version` key. `wgpu-core` and its dependencies # have a less strict MSRV, to allow firefox more leeway in updating their Rust toolchain. # # See the repo README for more information on MSRV policy. rust-version = "1.87" [package.metadata.docs.rs] all-features = true [lints.rust] missing_debug_implementations = "warn" [lints.clippy] std_instead_of_core = "warn" std_instead_of_alloc = "warn" alloc_instead_of_core = "warn" [lib] [features] default = ["std"] std = ["dep:parking_lot", "once_cell/std"] portable-atomic = ["dep:portable-atomic", "dep:portable-atomic-util"] [dependencies] cfg-if.workspace = true lock_api = { workspace = true, default-features = false } parking_lot = { workspace = true, optional = true } once_cell = { workspace = true, default-features = false, features = ["alloc", "race"] } [target.'cfg(any(not(target_has_atomic = "ptr"), not(target_has_atomic = "64"), not(target_has_atomic = "32"), not(target_has_atomic = "16"), not(target_has_atomic = "8")))'.dependencies] portable-atomic = { workspace = true, optional = true } [target.'cfg(not(target_has_atomic = "ptr"))'.dependencies] portable-atomic-util = { workspace = true, optional = true, features = ["alloc"] }