[package] name = "synchronized" version = "1.0.4" authors = ["Denis Kotlyarov (Денис Котляров) "] repository = "https://github.com/clucompany/synchronized.git" edition = "2021" build = "build.rs" license = "Apache-2.0" readme = "README.md" description = "Convenient and simple macro for code synchronization in multithreading." keywords = ["easy_sync_code", "synchronized", "no_std", "clucompany"] categories = ["concurrency", "no-std"] # docs.rs-specific configuration [package.metadata.docs.rs] # document all features all-features = true # defines the configuration attribute `docsrs` rustdoc-args = ["--cfg", "docsrs"] [features] default = ["std", "point", "get_point_name"] # Ability to get the name of the synchronization point. get_point_name = [] # Adds or removes support for the `synchronized_point` macro. point = [] # Use synchronization primitives from `std`. Note that is_lock is not supported in it. # # Note that you can just use `parking_lot` instead of `std`. std = [] # The synchronization primitive is implemented using the `tokio`+`parking_lot` # library for an asynchronous environment. async = ["tokio", "async-trait"] [dependencies] # The synchronization primitive is implemented using the `parking_lot` library. parking_lot = { version = "0.12.1", optional = true } # The synchronization primitive is implemented using the `tokio`+`parking_lot` library. tokio = { version = "1.21.2", optional = true, default-features = false, features = ["parking_lot", "sync"]} async-trait = { version = "0.1.58", optional = true }