mirror of
https://github.com/bevyengine/bevy
synced 2024-12-20 18:13:10 +00:00
717def2ccf
# Objective Fixes #6891 ## Solution Replaces deserializing map keys as `&str` with deserializing them as `String`. This bug seems to occur when using something like `File` or `BufReader` rather than bytes or a string directly (I only tested `File` and `BufReader` for `rmp-serde` and `serde_json`). This might be an issue with other `Read` impls as well (except `&[u8]` it seems). We already had passing tests for Message Pack but none that use a `File` or `BufReader`. This PR also adds or modifies tests to check for this in the future. This change was also based on [feedback](https://github.com/bevyengine/bevy/pull/4561#discussion_r957385136) I received in a previous PR. --- ## Changelog - Fix bug where scene deserialization using certain readers could fail (e.g. `BufReader`, `File`, etc.)
37 lines
1.2 KiB
TOML
37 lines
1.2 KiB
TOML
[package]
|
|
name = "bevy_scene"
|
|
version = "0.9.0"
|
|
edition = "2021"
|
|
description = "Provides scene functionality for Bevy Engine"
|
|
homepage = "https://bevyengine.org"
|
|
repository = "https://github.com/bevyengine/bevy"
|
|
license = "MIT OR Apache-2.0"
|
|
keywords = ["bevy"]
|
|
|
|
[features]
|
|
default = ["serialize"]
|
|
serialize = ["dep:serde", "uuid/serde"]
|
|
|
|
[dependencies]
|
|
# bevy
|
|
bevy_app = { path = "../bevy_app", version = "0.9.0" }
|
|
bevy_asset = { path = "../bevy_asset", version = "0.9.0" }
|
|
bevy_derive = { path = "../bevy_derive", version = "0.9.0" }
|
|
bevy_ecs = { path = "../bevy_ecs", version = "0.9.0" }
|
|
bevy_reflect = { path = "../bevy_reflect", version = "0.9.0", features = ["bevy"] }
|
|
bevy_hierarchy = { path = "../bevy_hierarchy", version = "0.9.0" }
|
|
bevy_transform = { path = "../bevy_transform", version = "0.9.0" }
|
|
bevy_utils = { path = "../bevy_utils", version = "0.9.0" }
|
|
bevy_render = { path = "../bevy_render", version = "0.9.0" }
|
|
|
|
# other
|
|
serde = { version = "1.0", features = ["derive"], optional = true }
|
|
ron = "0.8.0"
|
|
uuid = { version = "1.1", features = ["v4"] }
|
|
anyhow = "1.0.4"
|
|
thiserror = "1.0"
|
|
|
|
[dev-dependencies]
|
|
postcard = { version = "1.0", features = ["alloc"] }
|
|
bincode = "1.3"
|
|
rmp-serde = "1.1"
|