[package]1name = "no_std_library"2version = "0.1.0"3edition = "2024"45# Normally we'd put all dependencies in [dependencies], but this syntax is easier to document6[dependencies.bevy]7# In your library you'd use version = "x.y.z", but since this is an example inside the Bevy8# repository we use a path instead.9path = "../../../"10# Since `std` is a default feature, first we disable default features11default-features = false12# We're free to enable any features our library needs.13# Note that certain Bevy features rely on `std`.14features = [15# "bevy_color",16# "bevy_state",17]1819[features]20# `no_std` is relatively niche, so we choose defaults to cater for the majority of our users.21default = ["std"]2223# Below are some features we recommend libraries expose to assist with their usage and their own testing.2425# Uses the Rust standard library.26std = ["bevy/std"]2728# Uses `libm` for floating point functions.29libm = ["bevy/libm"]3031# Rely on `critical-section` for synchronization primitives.32critical-section = ["bevy/critical-section"]3334# Enables access to browser APIs in a web context.35web = ["bevy/web"]3637[lints.clippy]38# These lints are very helpful when working on a library with `no_std` support.39# They will warn you if you import from `std` when you could've imported from `core` or `alloc`40# instead.41# Since `core` and `alloc` are available on any target that has `std`, there is no downside to this.42std_instead_of_core = "warn"43std_instead_of_alloc = "warn"44alloc_instead_of_core = "warn"454647