cargo-geiger icon indicating copy to clipboard operation
cargo-geiger copied to clipboard

Support version-less manifests

Open faern opened this issue 1 year ago • 1 comments

Since Rust 1.75.0 the version field is optional. I have a crate without version. But when running cargo geiger I get:

error: failed to parse manifest at `/home/faern/....../Cargo.toml`

Caused by:
  TOML parse error at line 1, column 1
    |
  1 | [package]
    | ^^^^^^^^^
  missing field `version`

I guess this crate must upgrade its cargo dependency for it to work?

faern avatar May 21 '24 14:05 faern

Thanks yeah - the cargo dependency is getting nuked atm and we just use cargo_metadata & krates

(Just taking a bit time to remove it as it's been tightly coupled - upgrading cargo would mean dealing with that large 3-way dependency breakage that was caused by patch-release in one of the dependencies)

pinkforest avatar May 24 '24 15:05 pinkforest

Fixed in 0.12.0

pinkforest avatar Apr 10 '25 10:04 pinkforest