Talk:Rust package guidelines

From ArchWiki
Jump to navigation Jump to search

Using cargo install in package()

The cargo install command seems invalid, it contains --root twice ? It seems cargo install --locked --root "${pkgdir}"/usr --path "${srcdir}/${pkgname}-${pkgver}" is closer to what we need, but it creates a .creates.toml file in /usr/bin (see

Nicoulaj (talk) 08:34, 24 June 2019 (UTC)

That PR actually provides a solution: --no-metadata. So I guess the command now should be cargo install --locked --no-metadata --root "${pkgdir}"/usr --path "${srcdir}/${pkgname}-${pkgver}" ? Renyuneyun (talk) 18:41, 5 November 2019 (UTC)