cleanup, remove minimp3 dep

This commit is contained in:
yuni 2024-03-30 14:43:46 +01:00
parent f70c47f891
commit 1c900b1936
2 changed files with 2 additions and 39 deletions

32
Cargo.lock generated
View file

@ -2340,26 +2340,6 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
[[package]]
name = "minimp3-sys"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e21c73734c69dc95696c9ed8926a2b393171d98b3f5f5935686a26a487ab9b90"
dependencies = [
"cc",
]
[[package]]
name = "minimp3_fixed"
version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42b0f14e7e75da97ae396c2656b10262a3d4afa2ec98f35795630eff0c8b951b"
dependencies = [
"minimp3-sys",
"slice-ring-buffer",
"thiserror",
]
[[package]] [[package]]
name = "miniz_oxide" name = "miniz_oxide"
version = "0.7.2" version = "0.7.2"
@ -2947,7 +2927,6 @@ checksum = "3b1bb7b48ee48471f55da122c0044fcc7600cfcc85db88240b89cb832935e611"
dependencies = [ dependencies = [
"cpal", "cpal",
"lewton", "lewton",
"minimp3_fixed",
] ]
[[package]] [[package]]
@ -3074,17 +3053,6 @@ dependencies = [
"autocfg", "autocfg",
] ]
[[package]]
name = "slice-ring-buffer"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7081c7e452cb62f5f0c32edd4e265391bdbb23e90905df8bb88a23d3b5166b77"
dependencies = [
"libc",
"mach2",
"winapi",
]
[[package]] [[package]]
name = "slotmap" name = "slotmap"
version = "1.0.7" version = "1.0.7"

View file

@ -12,21 +12,16 @@ rust-version = "1.76.0"
[dependencies] [dependencies]
regex = "1" regex = "1"
bevy_embedded_assets = "0.10.2" bevy_embedded_assets = "0.10.2"
bevy = { version = "0.13.0", features = ["jpeg"] }
[dependencies."bevy"]
version = "0.13.0"
features = ["jpeg", "minimp3"]
[features] [features]
dev = ["bevy/dynamic_linking"] dev = ["bevy/dynamic_linking"]
# Enable a small amount of optimization in debug mode
[profile.dev] [profile.dev]
opt-level = 1 opt-level = 1
# Enable high optimizations for dependencies (incl. Bevy), but not for our code:
[profile.dev.package."*"] [profile.dev.package."*"]
opt-level = 3 opt-level = 3 # high optimizations for dependencies, but not for our code
[profile.release] [profile.release]
lto = true lto = true