Files

177 lines
4.0 KiB
TOML

# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2024"
name = "bevy_platform"
version = "0.16.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Provides common platform agnostic APIs, as well as platform-specific features for Bevy Engine"
homepage = "https://bevyengine.org"
readme = "README.md"
keywords = ["bevy"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/bevyengine/bevy"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"-Zunstable-options",
"--generate-link-to-definition",
]
[features]
alloc = [
"portable-atomic-util/alloc",
"dep:hashbrown",
"serde?/alloc",
]
critical-section = [
"dep:critical-section",
"portable-atomic/critical-section",
]
default = ["std"]
rayon = [
"dep:rayon",
"hashbrown/rayon",
]
serialize = [
"dep:serde",
"hashbrown/serde",
]
std = [
"alloc",
"critical-section?/std",
"portable-atomic/std",
"portable-atomic-util/std",
"spin/std",
"foldhash/std",
"serde?/std",
]
web = [
"dep:web-time",
"dep:getrandom",
]
[lib]
name = "bevy_platform"
path = "src/lib.rs"
[dependencies.cfg-if]
version = "1.0.0"
[dependencies.critical-section]
version = "1.2.0"
optional = true
default-features = false
[dependencies.foldhash]
version = "0.1.3"
default-features = false
[dependencies.hashbrown]
version = "0.15.1"
features = [
"equivalent",
"raw-entry",
]
optional = true
default-features = false
[dependencies.rayon]
version = "1"
optional = true
default-features = false
[dependencies.serde]
version = "1"
optional = true
default-features = false
[dependencies.spin]
version = "0.9.8"
features = [
"mutex",
"spin_mutex",
"rwlock",
"once",
"lazy",
"barrier",
]
default-features = false
[target.'cfg(not(all(target_has_atomic = "8", target_has_atomic = "16", target_has_atomic = "32", target_has_atomic = "64", target_has_atomic = "ptr")))'.dependencies.portable-atomic]
version = "1"
features = ["fallback"]
default-features = false
[target.'cfg(not(all(target_has_atomic = "8", target_has_atomic = "16", target_has_atomic = "32", target_has_atomic = "64", target_has_atomic = "ptr")))'.dependencies.spin]
version = "0.9.8"
features = ["portable_atomic"]
default-features = false
[target.'cfg(not(target_has_atomic = "ptr"))'.dependencies.portable-atomic-util]
version = "0.2.4"
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2.0"
features = ["js"]
optional = true
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.web-time]
version = "1.1"
optional = true
default-features = false
[lints.clippy]
alloc_instead_of_core = "warn"
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
doc_markdown = "warn"
manual_let_else = "warn"
match_same_arms = "warn"
needless_lifetimes = "allow"
nonstandard_macro_braces = "warn"
print_stderr = "warn"
print_stdout = "warn"
ptr_as_ptr = "warn"
ptr_cast_constness = "warn"
redundant_closure_for_method_calls = "warn"
redundant_else = "warn"
ref_as_ptr = "warn"
semicolon_if_nothing_returned = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
too_long_first_doc_paragraph = "allow"
too_many_arguments = "allow"
type_complexity = "allow"
undocumented_unsafe_blocks = "warn"
unwrap_or_default = "warn"
[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "warn"
unused_qualifications = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs_dep)"]