Releases: codeitlikemiley/cargo-runner
Releases · codeitlikemiley/cargo-runner
v1.5.4
Cargo Runner - CMD / CTRL + R to run, test/doc-test , bench and debug your code
Override Config - CMD/CTRL + SHIFT + R - to override cargo args, test binary args, features, target , env , rust-toolchain et.al
Change log v1.5.4
1.5.4
- add note on read me on known issues and how to fix it on
rust-analyzer.server.extraEnv
- update overrideCargo on codelens structure to make use of
active-toolchain
,eg.cargo +stable-aarch64-apple-darwin
- Added support for
rust-toolchain.toml
file to addchannel
by typing+beta
,+nightly
or+stable
when Overriding Config. - Use Rust Analyzer Config and Cargo.toml to override args
- Better Documentation and examples on how to use the extension
- Better Check for missing extensions prior to loading the extension
- Removed
.cargo_runner.toml
and ability to override args - Removed
Makefile
integration to override commands - Removed
build
runner - Removed support for
criterion
- Remove Runnables as it just makes your workflow slower , when picking options
- Use Rust Analyzer Codelens to Run , Test, Debug and Bench your Rust Project.
- Added fallback in cases no codelens. e.g. Running the whole file either as a
test
orbench
orrun
- Supports
cargo-nextest
integration tests - Support
cargo-nextest
benchmark integration onnightly
version - Uses
codelldb
debugger integration for debugging - Add ability to override $CARGO_HOME from vscode settings
- Add ability to change log level from vscode settings
- Add ability to change priority symbol kinds from vscode settings (You wouldnt want to change it though as the default is already well tested)
- Add nextest enable/disable from vscode settings
- Add Cargo Runner: Override Config Command and Keyboard Shortcut
- Support Rust Analyzer Config.
- Add Ability to Add one or more rust-analyzer config.
- Add Ability to Remove one or more rust-analyzer config.
Full Changelog: v1.5.4...v1.5.4
What's Changed
- V1.4.6 by @codeitlikemiley in #36
- Update Readme examples by @codeitlikemiley in #37
- bump to v1.4.8 by @codeitlikemiley in #38
- bump to v1.4.9 by @codeitlikemiley in #39
Full Changelog: v1.4.6...v1.5.4
Support VSCode Task Runner
- This path allows you to use cargo runner with VSCode Task Runner
Added support for running test on bin/*
Merge pull request #17 from codeitlikemiley/v1.4.2 added support for running test on bin/*
Stable Release
- Remove support for running Rust Single File Script
Stable Release
- Fallback Cargo Runner to using rust-analyzer if no context matched
- Codelldb support for debugging test if there is a breakpoint
v1.3.5
- Drop support for Doctest Cargo Runner toml file
- Now uses rust-analyzer as fallback runner if something went wrong... such as null command
- Remove all unnecessary code , Major Code cleanup
V1.3.3 Most Stable Release
- fix examples missing package name
- fix integration test implementation with cargo-nextest
- use commandArray and filter for falsey values to generate final command
- find_modules supports other special cases like examples/
Bug Fixes
- Fix issues on not detecting #[test] declared fn as test
- Now you can Run or Test on examples
- Now you can add ENV Variables e.g.
RUSTFLAGS="-AWarnings"
- Added env on Override Config Selection when pressing CMD+SHIFT+R
- Fix Module Path , re-factor to additional 2 fn called
get_module_paths
andfind_module
- Properly resolves nested modules defined even within combination of folder modules, modules inside file, and relative module.
- Test now have default args set to
--exact --nocapture --show-output
while on cargo next test defaults to--no-capture
- Cargo nextest runs test on exact match , where the old one if runs before other test that have same name on different modules
- Added back missing build command
- Cargo Runner Toml file are now per crate , and can have one config that can be used by other crates if declare on workspace root
V1.3.1
- Fix Issue on Override Parameters for Different Context
- Add support for integration test
- Add support for other test macro e.g. #[spin_test]
Production Ready Release - v1.1.8
This release is a major improved on running test under cursor
for complex project structure and nested modules declarations
It handles all edge case and special case
This allows you to run cargo nextest if you have it installed on your system
One Key bind mapped to CMD + R
It can do
- cargo run
- cargo test
- cargo doctest
- cargo build
If you wanna override cargo run or build on per crate bases on your cargo workspace you can
see: https://github.com/codeitlikemiley/cargo-runner#advanced-features