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

Compatibility with rust-analyzer (rust-project.json + check command) #268

Open
jordanisaacs opened this issue Dec 24, 2022 · 0 comments
Open

Comments

@jordanisaacs
Copy link
Contributor

jordanisaacs commented Dec 24, 2022

It would be interesting to allow skipping cargo compilation entirely during development. Generate a rust-project.json that points to the nix built dependencies. And a crate2nix check command that builds the workspace pointing to the nix dependencies along with the --error-format=json. This workspace build wouldn't be done in Nix.

I recently did some work on getting rust-analyzer working for kernel rust development (which doesn't use cargo) so have some experience. Would be interested in helping out if this is sounds feasible, but not familiar with the crate2nix internals.

See: https://rust-analyzer.github.io/manual.html#non-cargo-based-projects

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

No branches or pull requests

1 participant