Skip to content

Commit 5091d96

Browse files
committed
Bump toml to 0.9
1 parent acf9017 commit 5091d96

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ log = "0.4"
3535
clap = { version = "4.5.18", features = ["color", "derive", "cargo", "string", "wrap_help"] }
3636
regex = "1.5.6"
3737
cbindgen = { version="0.29.0", default-features=false }
38-
toml = "0.8"
38+
toml = "0.9"
3939
serde = "1.0.123"
4040
serde_derive = "1.0"
4141
serde_json = "1.0.62"

src/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ impl FingerPrint {
308308
let mut f = open(self.path())?;
309309
let mut cache_str = String::new();
310310
f.read_to_string(&mut cache_str)?;
311-
let cache = toml::de::from_str(&cache_str)?;
311+
let cache = toml::from_str(&cache_str)?;
312312

313313
Ok(cache)
314314
}
@@ -326,7 +326,7 @@ impl FingerPrint {
326326
hash,
327327
static_libs: self.static_libs.to_owned(),
328328
};
329-
let buf = toml::ser::to_string(&cache)?;
329+
let buf = toml::to_string(&cache)?;
330330
write(self.path(), buf)?;
331331
}
332332

@@ -486,7 +486,7 @@ fn load_manifest_capi_config(
486486
.crate_name();
487487
let root_path = pkg.root().to_path_buf();
488488
let manifest_str = read(&root_path.join("Cargo.toml"))?;
489-
let toml = manifest_str.parse::<toml::Value>()?;
489+
let toml = manifest_str.parse::<toml::Table>()?;
490490

491491
let capi = toml
492492
.get("package")

0 commit comments

Comments
 (0)