bevy/crates/bevy_text/Cargo.toml
Zachary Harrold c5365509bf Allow partial support for bevy_log in no_std (#18782)
- Fixes #18781

- Moved `LogPlugin` into its own file gated behind a new `tracing`
feature.
- Used `log` instead of `tracing` where possible.
- Exposed a new `tracing` feature in `bevy` which enables
`bevy_log/tracing`.
- Gated `LogPlugin` from `DefaultPlugins` on `tracing` feature.

- CI

---

- If you were previously using `bevy_log` with default features
disabled, enable the new `std` and `tracing` features.
- If you were using `bevy` with the default features disabled, enable
the new `tracing` feature.

Almost all of the diffs in this PR come from moving `LogPlugin` into its
own file. This just makes the PR less noisy, since the alternative is
excessive `#[cfg(feature = "tracing")]` directives all over the plugin.

---------

Co-authored-by: François Mockers <francois.mockers@vleue.com>
2025-04-11 09:03:12 +02:00

68 lines
2.5 KiB
TOML

[package]
name = "bevy_text"
version = "0.16.0-rc.3"
edition = "2024"
description = "Provides text functionality for Bevy Engine"
homepage = "https://bevyengine.org"
repository = "https://github.com/bevyengine/bevy"
license = "MIT OR Apache-2.0"
keywords = ["bevy"]
[features]
default_font = []
[dependencies]
# bevy
bevy_app = { path = "../bevy_app", version = "0.16.0-rc.3" }
bevy_asset = { path = "../bevy_asset", version = "0.16.0-rc.3" }
bevy_color = { path = "../bevy_color", version = "0.16.0-rc.3" }
bevy_derive = { path = "../bevy_derive", version = "0.16.0-rc.3" }
bevy_ecs = { path = "../bevy_ecs", version = "0.16.0-rc.3" }
bevy_image = { path = "../bevy_image", version = "0.16.0-rc.3" }
bevy_log = { path = "../bevy_log", version = "0.16.0-rc.3" }
bevy_math = { path = "../bevy_math", version = "0.16.0-rc.3" }
bevy_reflect = { path = "../bevy_reflect", version = "0.16.0-rc.3" }
bevy_render = { path = "../bevy_render", version = "0.16.0-rc.3" }
bevy_sprite = { path = "../bevy_sprite", version = "0.16.0-rc.3" }
bevy_transform = { path = "../bevy_transform", version = "0.16.0-rc.3" }
bevy_window = { path = "../bevy_window", version = "0.16.0-rc.3" }
bevy_utils = { path = "../bevy_utils", version = "0.16.0-rc.3" }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-rc.3", default-features = false, features = [
"std",
"serialize",
] }
# other
cosmic-text = { version = "0.13", features = ["shape-run-cache"] }
thiserror = { version = "2", default-features = false }
serde = { version = "1", features = ["derive"] }
smallvec = "1.13"
unicode-bidi = "0.3.13"
sys-locale = "0.3.0"
tracing = { version = "0.1", default-features = false, features = ["std"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
# TODO: Assuming all wasm builds are for the browser. Require `no_std` support to break assumption.
bevy_log = { path = "../bevy_log", version = "0.16.0-dev", default-features = false, features = [
"web",
] }
bevy_app = { path = "../bevy_app", version = "0.16.0-dev", default-features = false, features = [
"web",
] }
bevy_platform_support = { path = "../bevy_platform_support", version = "0.16.0-dev", default-features = false, features = [
"web",
] }
bevy_reflect = { path = "../bevy_reflect", version = "0.16.0-dev", default-features = false, features = [
"web",
] }
[dev-dependencies]
approx = "0.5.1"
[lints]
workspace = true
[package.metadata.docs.rs]
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
all-features = true