Skip to content

Commit 25b8490

Browse files
authored
wasm-compose: switch from serde_yaml to serde_yaml2 (bytecodealliance#2471)
serde_yaml is unmaintained, and serde_yaml2 is a maintained replacement with the same API.
1 parent 87e1423 commit 25b8490

3 files changed

Lines changed: 35 additions & 16 deletions

File tree

Cargo.lock

Lines changed: 33 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/wasm-compose/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ log = { workspace = true }
2222
petgraph = "0.6.2"
2323
serde = { workspace = true }
2424
serde_derive = { workspace = true }
25-
serde_yaml = "0.9.22"
25+
serde_yaml2 = "0.1.3"
2626
smallvec = "1.10.0"
2727
wasm-encoder = { workspace = true, features = ['std', 'wasmparser', 'component-model'] }
2828
wasmparser = { workspace = true, features = ['std', 'validate', 'component-model', 'features'] }

crates/wasm-compose/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl Config {
124124
let config = fs::read_to_string(&path)
125125
.with_context(|| format!("failed to read configuration file `{}`", path.display()))?;
126126

127-
let mut config: Config = serde_yaml::from_str(&config)
127+
let mut config: Config = serde_yaml2::from_str(&config)
128128
.with_context(|| format!("failed to parse configuration file `{}`", path.display()))?;
129129

130130
config.dir = path.parent().map(Path::to_path_buf).unwrap_or_default();

0 commit comments

Comments
 (0)