Previously the individual components have not set a mainProgram. This is
the somewhat de-facto standard in nixpkgs to signal which executable is
associated to a given derivation.
This patch uses the renames table for the given components to get the
proper executable name.
To be conservative, only these executables are marked for now. They are
also frequently run on their own without cargo.
Signed-off-by: Marcel Müller <neikos@neikos.email>
The un-versioned `wasm32-wasi` target is removed in favor of
`wasm32-wasip?` since Rust 1.84. Examples are updated.
The nixpkgs patch for WASI target name remapping is merged in 24.11.
We can also safely remove the workaround.
This allows construction of `rust-bin` attrset on an existing `pkgs`,
instead of staging another overlayed nixpkgs. This can reduce redundant
evaluation of nixpkgs for flake-heavy users who also don't like or
cannot (due to flake dependency hell) manually instantiate nixpkgs.