cannot serialize Manifest (values must be emitted before tables)
The following code snippet fails with Error: values must be emitted before tables
:
let toml = std::fs::read_to_string("Cargo.toml")?;
let manifest = cargo_toml::Manifest::from_str(&toml)?;
let _ = toml::ser::to_string(&manifest)?;
This seems to be related to this issue, I tried applying tables_last to all HashMaps, but it still failed deserializing the Vec
s with the same error.
Edited by Kornel