Closed Jisu-Woniu closed 6 months ago
I ran cargo i18n in my project directory and got this error:
cargo i18n
Error: Cannot parse Cargo configuration file "./Cargo.toml" because Cargo.toml's package version needs to be a string..
and my Cargo.toml is like:
Cargo.toml
[workspace] members = [ # sub-crates ] [workspace.package] version = "0.1.0" # other global configurations [package] version.workspace = true
As is mentioned in The Cargo Book, the version of the root crate should be inherited from the workspace.package region (in this case, 0.1.0).
workspace.package
0.1.0
Duplicate with #97.
I ran
cargo i18n
in my project directory and got this error:and my
Cargo.toml
is like:As is mentioned in The Cargo Book, the version of the root crate should be inherited from the
workspace.package
region (in this case,0.1.0
).