Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_audio/Cargo.toml
6596 views
1
[package]
2
name = "bevy_audio"
3
version = "0.17.0-dev"
4
edition = "2024"
5
description = "Provides audio functionality for Bevy Engine"
6
homepage = "https://bevy.org"
7
repository = "https://github.com/bevyengine/bevy"
8
license = "MIT OR Apache-2.0"
9
keywords = ["bevy"]
10
11
[dependencies]
12
# bevy
13
bevy_app = { path = "../bevy_app", version = "0.17.0-dev" }
14
bevy_asset = { path = "../bevy_asset", version = "0.17.0-dev" }
15
bevy_ecs = { path = "../bevy_ecs", version = "0.17.0-dev" }
16
bevy_math = { path = "../bevy_math", version = "0.17.0-dev" }
17
bevy_reflect = { path = "../bevy_reflect", version = "0.17.0-dev" }
18
bevy_transform = { path = "../bevy_transform", version = "0.17.0-dev" }
19
20
# other
21
# TODO: Remove `coreaudio-sys` dep below when updating `cpal`.
22
rodio = { version = "0.20", default-features = false }
23
tracing = { version = "0.1", default-features = false, features = ["std"] }
24
25
[target.'cfg(target_os = "android")'.dependencies]
26
cpal = { version = "0.15", optional = true }
27
28
[target.'cfg(target_vendor = "apple")'.dependencies]
29
# NOTE: Explicitly depend on this patch version to fix:
30
# https://github.com/bevyengine/bevy/issues/18893
31
coreaudio-sys = { version = "0.2.17", default-features = false }
32
33
[target.'cfg(target_arch = "wasm32")'.dependencies]
34
# TODO: Assuming all wasm builds are for the browser. Require `no_std` support to break assumption.
35
rodio = { version = "0.20", default-features = false, features = [
36
"wasm-bindgen",
37
] }
38
bevy_app = { path = "../bevy_app", version = "0.17.0-dev", default-features = false, features = [
39
"web",
40
] }
41
bevy_reflect = { path = "../bevy_reflect", version = "0.17.0-dev", default-features = false, features = [
42
"web",
43
] }
44
45
[features]
46
mp3 = ["rodio/mp3"]
47
flac = ["rodio/flac"]
48
wav = ["rodio/wav"]
49
vorbis = ["rodio/vorbis"]
50
symphonia-aac = ["rodio/symphonia-aac"]
51
symphonia-all = ["rodio/symphonia-all"]
52
symphonia-flac = ["rodio/symphonia-flac"]
53
symphonia-isomp4 = ["rodio/symphonia-isomp4"]
54
symphonia-vorbis = ["rodio/symphonia-vorbis"]
55
symphonia-wav = ["rodio/symphonia-wav"]
56
# Enable using a shared stdlib for cxx on Android.
57
android_shared_stdcxx = ["cpal/oboe-shared-stdcxx"]
58
59
[lints]
60
workspace = true
61
62
[package.metadata.docs.rs]
63
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
64
all-features = true
65
66