oxidecomputer / progenitor

An OpenAPI client generator
426 stars 55 forks source link

don't rely on dependency information from built #838

Closed ahl closed 3 weeks ago

ahl commented 3 weeks ago

Closes #828

The build.rs in cargo-progenitor uses built to save dependency information... but built won't necessarily retail dependency information for dependencies that the compiler discovers are unused. In the case of #828, it can lack information for the futures crate, which is not used transitively in the cargo-progenitor binary (even though its within its transitive dependencies). This PR hard-codes version information for potential dependencies of the generated crate.