|
|
Log in / Subscribe / Register

Rustaceans at the border

Rustaceans at the border

Posted Apr 16, 2022 7:16 UTC (Sat) by pkolloch (subscriber, #21709)
In reply to: Rustaceans at the border by qyliss
Parent article: Rustaceans at the border

One thing that would helped me immensely: Have a cargo sub command that builds a crate in isolation. With a command line option for the directory of the output artifacts. And being able to specify all the dependency outputs as input.


to post comments

Rustaceans at the border

Posted Apr 16, 2022 8:35 UTC (Sat) by atnot (guest, #124910) [Link] (1 responses)

What would that provide over just using rustc directly?

Rustaceans at the border

Posted Apr 16, 2022 17:45 UTC (Sat) by pkolloch (subscriber, #21709) [Link]

There is a lot of plumbing that cargo does:

  • setting env variables
  • running build scripts
  • setting features
  • setting something like a symbol prefix to avoid clashes
  • linker flags
  • ... and a lot of other details

It's surprisingly hard to replicate. I know because I helped doing it for nix with contributions to buildRustCrate in nixpkgs and creating crate2nix.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds