aboutsummaryrefslogtreecommitdiff
path: root/server/editor
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2025-12-14 01:43:22 +0100
committernokoe <nokoe@mailbox.org>2025-12-14 01:44:14 +0100
commitf43daec5936b827285a14c50377bb592ed9d1311 (patch)
tree28573f5b4339c3f23f455b0debef178c9ea45b55 /server/editor
parentb87392558f12de8404bd5ab181d328fd66a106e2 (diff)
downloadhurrycurry-f43daec5936b827285a14c50377bb592ed9d1311.tar
hurrycurry-f43daec5936b827285a14c50377bb592ed9d1311.tar.bz2
hurrycurry-f43daec5936b827285a14c50377bb592ed9d1311.tar.zst
replace `serde_yml` with `serde_yaml_ng`
Diffstat (limited to 'server/editor')
-rw-r--r--server/editor/Cargo.toml2
-rw-r--r--server/editor/src/save.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/server/editor/Cargo.toml b/server/editor/Cargo.toml
index 80b939fe..fb144215 100644
--- a/server/editor/Cargo.toml
+++ b/server/editor/Cargo.toml
@@ -17,7 +17,7 @@ rustls = { version = "0.23.31", features = ["ring"] }
clap = { version = "4.5.47", features = ["derive"] }
futures-util = "0.3.31"
shlex = "1.3.0"
-serde_yml = "0.0.12"
+serde_yaml_ng = "0.10.0"
hurrycurry-protocol = { path = "../protocol" }
hurrycurry-game-core = { path = "../game-core", features = ["sync-network"] }
diff --git a/server/editor/src/save.rs b/server/editor/src/save.rs
index c8ff350a..43a2fe93 100644
--- a/server/editor/src/save.rs
+++ b/server/editor/src/save.rs
@@ -72,11 +72,11 @@ pub fn export_state(state: &State) -> String {
customer_spawn: '!',
score_baseline: 200,
};
- serde_yml::to_string(&decl).unwrap()
+ serde_yaml_ng::to_string(&decl).unwrap()
}
pub fn import_state(state: &mut State, s: &str) -> Result<()> {
- let decl: MapDecl = serde_yml::from_str(s)?;
+ let decl: MapDecl = serde_yaml_ng::from_str(s)?;
let name_to_tile = HashMap::<_, _, RandomState>::from_iter(
TILES