-
Notifications
You must be signed in to change notification settings - Fork 105
Is it possible to run cargo build from opened Cargo.toml? #179
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
Comments
cc #165 - it would be great to have such feature there. |
Another workaround is to not use the "Automatic" build detection. In Tools > Build System, pick the build system to use, and it will be sticky (saved in the workspace). |
Which one workspace? |
@pravic no reason why not, funnily enough it actually used to be the other way around. It only ran if you was in a .cargo file, so I changed it to only rust files. That was a few years back. @ehuss I do like using "Automatic Build Detection", so maybe this is something we can look into. |
@pravic The @Jayflux I think you can have multiple selectors with a comma (such as "source.rust,source.toml"). |
Currently I need to open some .rs file to access Cargo build commands from Sublime despite of I already have Cargo.toml file opened.
Quick search pointed me to the selector property of build description. Is it possible to place 2 selectors there, like
source.rust|source.toml
?Currently as a workaround I copied Cargo.sublime-build as CargoToml.sublime-build with
source.toml
selector in there, because it seems that "Build System -> Cargo" command is global-wide in Sublime, not syntax-specific.Sublime Text Version
Sublime Text 3 (Build 3131)
Rust Enhanced Version
1.3.1
The text was updated successfully, but these errors were encountered: