switch from toml to toml_edit
seems nowadays toml is just a compatibility wrapper around toml_edit, switching to toml_edit directly speeds up compilation by a few seconds
This commit is contained in:
parent
ab54529864
commit
02384a0262
18
Cargo.lock
generated
18
Cargo.lock
generated
|
@ -80,7 +80,7 @@ dependencies = [
|
|||
"serde",
|
||||
"serde_derive",
|
||||
"slugify",
|
||||
"toml",
|
||||
"toml_edit",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -462,9 +462,9 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
|
|||
|
||||
[[package]]
|
||||
name = "syn"
|
||||
version = "2.0.61"
|
||||
version = "2.0.63"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c993ed8ccba56ae856363b1845da7266a7cb78e1d146c8a32d54b45a8b831fc9"
|
||||
checksum = "bf5be731623ca1a1fb7d8be6f261a3be6d3e2337b8a1f97be944d020c8fcb704"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
@ -492,18 +492,6 @@ version = "0.1.1"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
|
||||
|
||||
[[package]]
|
||||
name = "toml"
|
||||
version = "0.8.12"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e9dd1545e8208b4a5af1aa9bbd0b4cf7e9ea08fabc5d0a5c67fcaafa17433aa3"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"serde_spanned",
|
||||
"toml_datetime",
|
||||
"toml_edit",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "toml_datetime"
|
||||
version = "0.6.5"
|
||||
|
|
|
@ -17,4 +17,4 @@ rowan = "0.15.15"
|
|||
serde = { version = "1.0.197", default-features = false }
|
||||
serde_derive = { version = "1.0.197" }
|
||||
slugify = "0.1.0"
|
||||
toml = { version = "0.8.12", default-features = false, features = ["parse"] }
|
||||
toml_edit = { version = "0.22.12", default-features = false, features = ["serde", "parse"] }
|
||||
|
|
|
@ -76,7 +76,7 @@ fn generate(
|
|||
})?;
|
||||
|
||||
if let Ok(config) = fs::read_to_string(".clam.toml") {
|
||||
let config: ClamConfig = toml::from_str(&config)?;
|
||||
let config: ClamConfig = toml_edit::de::from_str(&config)?;
|
||||
|
||||
let feed = atom::entries(&titles, &mtime, &config.exclude)?;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user