Skip to content

Releases: codeitlikemiley/cargo-runner

v1.5.4

24 Nov 04:54
8a757a3
Compare
Choose a tag to compare

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 add channel 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 or bench or run
  • Supports cargo-nextest integration tests
  • Support cargo-nextest benchmark integration on nightly 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

Full Changelog: v1.4.6...v1.5.4

Support VSCode Task Runner

03 Jul 17:55
d8594dc
Compare
Choose a tag to compare
  • This path allows you to use cargo runner with VSCode Task Runner

Added support for running test on bin/*

03 Jul 15:37
5b58cd8
Compare
Choose a tag to compare
Merge pull request #17 from codeitlikemiley/v1.4.2

added support for running test on bin/*

Stable Release

30 Jun 07:27
00a9321
Compare
Choose a tag to compare
  • Remove support for running Rust Single File Script

Stable Release

30 Jun 05:47
df7d4ba
Compare
Choose a tag to compare
  • Fallback Cargo Runner to using rust-analyzer if no context matched
  • Codelldb support for debugging test if there is a breakpoint

v1.3.5

29 Jun 18:12
5ae7796
Compare
Choose a tag to compare
  • 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

29 Jun 05:42
6980dbb
Compare
Choose a tag to compare
  • 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

28 Jun 19:56
0c0495c
Compare
Choose a tag to compare
  • 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 and find_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

05 Jun 05:45
e63e310
Compare
Choose a tag to compare
  • 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

24 Jan 07:50
bfd1ec1
Compare
Choose a tag to compare

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