Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustfmt: fix for Rust packages from rust-overlay #311

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alekseysidorov
Copy link

When I use the Rust toolchain installed from rust-overlay or Fenix I've got an error.

evaluation warning: getExe: Package rust-nightly-complete-with-components-2025-02-01 does not have the meta.mainProgram attribute. We'll assume that the main program has the same name for now, but this behavior is deprecated, because it leads to surprising errors when the assumption does not hold. If the package has a main program, please set `meta.mainProgram` in its definition to make this warning go away. Otherwise, if the package does not have a main program, or if you don't control its definition, use getExe' to specify the name to the program, such as lib.getExe' foo "bar".
2025/02/10 00:56:39 INFO using config file: /nix/store/n65qj2fiz3f64smqffhqp54nimgp4ax4-treefmt.toml
Error: failed to create composite formatter: failed to initialise formatter rustfmt: formatter command not found in PATH

This MR fixes compatibility with the rust-overlay toolchains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant