代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/third_party_rust_once_cell 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
[package]
name = "once_cell"
version = "1.17.0"
authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.56"
description = "Single assignment cells and lazy values."
readme = "README.md"
documentation = "https://docs.rs/once_cell"
repository = "https://github.com/matklad/once_cell"
keywords = ["lazy", "static"]
categories = ["rust-patterns", "memory-management"]
exclude = ["*.png", "*.svg", "/Cargo.lock.msrv", "rustfmt.toml"]
[workspace]
members = ["xtask"]
[dependencies]
# These optional dependencies are considered private impl details,
# only features from `[features]` table are a part of semver-guarded API.
parking_lot_core = { version = "0.9.3", optional = true, default_features = false }
atomic_polyfill = { package = "atomic-polyfill", version = "1", optional = true }
critical_section = { package = "critical-section", version = "1", optional = true }
[dev-dependencies]
lazy_static = "1.0.0"
crossbeam-utils = "0.8.7"
regex = "1.2.0"
critical_section = { package = "critical-section", version = "1.1.1", features = ["std"] }
[features]
default = ["std"]
# Enables `once_cell::sync` module.
std = ["alloc"]
# Enables `once_cell::race::OnceBox` type.
alloc = ["race"]
# Enables `once_cell::race` module.
race = []
# Uses parking_lot to implement once_cell::sync::OnceCell.
# This makes no speed difference, but makes each OnceCell<T>
# up to 16 bytes smaller, depending on the size of the T.
parking_lot = ["parking_lot_core"]
# Uses `critical-section` to implement `sync` and `race` modules. in
# `#![no_std]` mode. Please read `critical-section` docs carefully
# before enabling this feature.
critical-section = ["critical_section", "atomic_polyfill" ]
# Enables semver-exempt APIs of this crate.
# At the moment, this feature is unused.
unstable = []
# Only for backwards compatibility.
atomic-polyfill = ["critical-section"]
[[example]]
name = "bench"
required-features = ["std"]
[[example]]
name = "bench_acquire"
required-features = ["std"]
[[example]]
name = "bench_vs_lazy_static"
required-features = ["std"]
[[example]]
name = "lazy_static"
required-features = ["std"]
[[example]]
name = "reentrant_init_deadlocks"
required-features = ["std"]
[[example]]
name = "regex"
required-features = ["std"]
[[example]]
name = "test_synchronization"
required-features = ["std"]
[package.metadata.docs.rs]
all-features = true
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。