bevy_shape 0.20.0

Provides primitive shape data definitions for Bevy Engine
Documentation
# 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"
rust-version = "1.94.0"
name = "bevy_shape"
version = "0.20.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Provides primitive shape data definitions for Bevy Engine"
homepage = "https://bevy.org"
readme = false
keywords = ["bevy"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/bevyengine/bevy"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--generate-link-to-definition",
    "--generate-macro-expansion",
    "-Zunstable-options",
]

[features]
alloc = [
    "bevy_math/alloc",
    "rand_distr?/alloc",
]
approx = [
    "bevy_math/approx",
    "dep:approx",
]
bevy_reflect = [
    "alloc",
    "bevy_math/bevy_reflect",
    "dep:bevy_reflect",
]
default = [
    "rand",
    "std",
]
rand = [
    "bevy_math/rand",
    "dep:rand",
    "dep:rand_distr",
]
serialize = [
    "bevy_math/serialize",
    "dep:serde",
]
std = [
    "alloc",
    "bevy_math/std",
    "bevy_reflect?/std",
    "derive_more/std",
    "rand?/std",
    "rand_distr?/std",
    "serde?/std",
]

[lib]
name = "bevy_shape"
path = "src/lib.rs"

[dependencies.approx]
version = "0.5"
optional = true
default-features = false

[dependencies.arrayvec]
version = "0.7"
default-features = false

[dependencies.bevy_math]
version = "0.20.0"
default-features = false

[dependencies.bevy_reflect]
version = "0.20.0"
features = ["glam"]
optional = true
default-features = false

[dependencies.derive_more]
version = "2"
features = [
    "from",
    "into",
]
default-features = false

[dependencies.rand]
version = "0.10"
optional = true
default-features = false

[dependencies.rand_distr]
version = "0.6"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

[dev-dependencies.approx]
version = "0.5"

[dev-dependencies.bevy_math]
version = "0.20.0"
features = ["approx"]
default-features = false

[dev-dependencies.chacha20]
version = "0.10.0"
features = ["rng"]
default-features = false

[dev-dependencies.rand]
version = "0.10"

[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 = "allow"
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)"]