[package]1name = "no_std_library"2version = "0.1.0"3edition = "2024"4publish = false56# Normally we'd put all dependencies in [dependencies], but this syntax is easier to document7[dependencies.bevy]8# In your library you'd use version = "x.y.z", but since this is an example inside the Bevy9# repository we use a path instead.10path = "../../../"11# Since `std` is a default feature, first we disable default features12default-features = false13# We're free to enable any features our library needs.14# Note that certain Bevy features rely on `std`.15features = [16# "bevy_color",17# "bevy_state",18]1920[features]21# `no_std` is relatively niche, so we choose defaults to cater for the majority of our users.22default = ["std"]2324# Below are some features we recommend libraries expose to assist with their usage and their own testing.2526# Uses the Rust standard library.27std = ["bevy/std"]2829# Uses `libm` for floating point functions.30libm = ["bevy/libm"]3132# Rely on `critical-section` for synchronization primitives.33critical-section = ["bevy/critical-section"]3435# Enables access to browser APIs in a web context.36web = ["bevy/web"]3738[lints.clippy]39# These lints are very helpful when working on a library with `no_std` support.40# They will warn you if you import from `std` when you could've imported from `core` or `alloc`41# instead.42# Since `core` and `alloc` are available on any target that has `std`, there is no downside to this.43std_instead_of_core = "warn"44std_instead_of_alloc = "warn"45alloc_instead_of_core = "warn"464748