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

Cargo multiple bin linting #19

Closed
Kerollmops opened this issue Oct 24, 2015 · 4 comments
Closed

Cargo multiple bin linting #19

Kerollmops opened this issue Oct 24, 2015 · 4 comments

Comments

@Kerollmops
Copy link

Hello,

When you use the default way to build multiple binaries with cargo, this SublimeLinter doesn't handle this correctly and throw me this error:

extra arguments to `rustc` can only be passed to one target, consider filtering
the package by passing e.g. `--lib` or `--bin NAME` to specify a single target

I tried to add custom args in the sublimeLinter Config User file but, it seems they are given to rustc and not handled by cargo...

My file tree:

  • src/
    • bin/
      • server.rs
      • client.rs

Thanks !

@oschwald
Copy link
Owner

Does this still occur if you use the new cargo check option?

@Kerollmops
Copy link
Author

I didn't try... Sorry

@ekimgit
Copy link

ekimgit commented Jan 11, 2016

Seems not to work for me, or I don't know how to pass options to cargo or rust via the 'custom args' settings in the sublimeLinter Config User file

@Kerollmops
Copy link
Author

Cargo check needs to fix this 😞
rsolomo/cargo-check#4

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

3 participants