diff options
Diffstat (limited to 'server/editor')
| -rw-r--r-- | server/editor/Cargo.toml | 2 | ||||
| -rw-r--r-- | server/editor/src/save.rs | 4 |
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 |