Debian Codegraph @

/

debian rust-portable-atomic-util 0.2.6-1debian librust-portable-atomic-util-dev debian librust-portable-atomic-util+alloc-dev debian librust-portable-atomic-util+default-dev debian librust-portable-atomic-util+std-dev debian librust-portable-atomic-util-0-dev debian librust-portable-atomic-util-0+alloc-dev debian librust-portable-atomic-util-0+default-dev debian librust-portable-atomic-util-0+std-dev debian librust-portable-atomic-util-0.2-dev debian librust-portable-atomic-util-0.2+alloc-dev debian librust-portable-atomic-util-0.2+default-dev debian librust-portable-atomic-util-0.2+std-dev debian librust-portable-atomic-util-0.2.6-dev debian librust-portable-atomic-util-0.2.6+alloc-dev debian librust-portable-atomic-util-0.2.6+default-dev debian librust-portable-atomic-util-0.2.6+std-dev cargo portable-atomic-util 0.2.6 debianjsonmakefilemarkdownrustrustrust-c-abishelltoml 22 files · 729 symbols
View dependency graph

Depends on

  • dh-cargo (dh-sequence-cargo)
  • rust-portable-atomic (librust-portable-atomic-1+require-cas-dev)
  • cargo, debhelper-compat, libstd-rust-dev, rustc
README (full)

portable-atomic-util

crates.io docs.rs license msrv github actions

Synchronization primitives built with portable-atomic.

  • Provide Arc. (optional, requires the std or alloc feature)
  • Provide task::Wake. (optional, requires the std or alloc feature)

See portable-atomic#1 for other primitives being considered for addition to this crate.

This crate was originally part of the portable-atomic repository and was extracted into its own repository.

Optional features

  • std
    Use std.

    Note:

    • This implicitly enables the alloc feature.
  • alloc
    Use alloc.

    Note:

    • The MSRV when this feature is enabled and the std feature is not enabled is Rust 1.36 that alloc crate stabilized.

Optional cfg

One of the ways to enable cfg is to set rustflags in the cargo config:

# .cargo/config.toml
[target.<target>]
rustflags = ["--cfg", "portable_atomic_unstable_coerce_unsized"]

Or set environment variable:

RUSTFLAGS="--cfg portable_atomic_unstable_coerce_unsized" cargo ...
  • --cfg portable_atomic_unstable_coerce_unsized
    Support coercing of Arc<T> to Arc<U> as in std::sync::Arc.

    This cfg requires Rust nightly because this coercing requires unstable CoerceUnsized trait.

    See this issue comment for another known workaround.

    Note: This cfg is unstable and outside of the normal semver guarantees and minor or patch versions of portable-atomic-util may make breaking changes to them at any time.

Related Projects

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

dir debian/
dir src/
dir tests/
file .cargo_vcs_info.json
file CHANGELOG.md
file Cargo.lock
file Cargo.toml
file Cargo.toml.orig
file LICENSE-APACHE
file LICENSE-MIT
file README.md
file build.rs