Releases: fanzeyi/cargo-play
Releases · fanzeyi/cargo-play
v0.5.0
Changes
- cargo-play is now able to accept code from standard input (thanks to @octaltree)
- A new
--expand
flag to expand macros in your code (thanks to @guswynn) --mode
flag is no longer constrained totest
,check
andexpand
. You can use this flag to override the cargo subcommand cargo-play runs (thanks to @guswynn)- Updated dependencies
0.4.2
New Flags
--mode <test|check>
,--test
and--check
are added to control which Cargo subcommand you want to run. With these flags you can run code guarded withcfg(test)
or simply check errors withcargo check
. (Thanks @rochacbruno)
0.4.1
New Flags
--quiet
and--verbose
are added to control Cargo verbosity settings. They will be passed into Cargo unconditionally.
Bugfixes
base64
encoding is now replaced bybase58
to prevent accidental invalid Cargo project name. (Thanks @sunshowers)
0.4.0
New Features
--infer
lets cargo-play to infer the third-party dependencies used in the source code. No more dull dependency specifications. However, with two catches:- Under the hood cargo-play finds all the
use
statements in your code. That means if you directly use some external crates, cargo-play will not be able to recognize such dependency. - For the same reason, if you use
use
statements to rename things, cargo-play would incorrectly recognize these as dependencies.
- Under the hood cargo-play finds all the
--save=<PATH>
generates a Cargo project at<PATH>
based on the files passed to cargo-play.- You can now pass flags to your program run by cargo-play. Simply put any flags after
--
and these flags will be passed to your program. For example, runningcargo play cmd.rs -- --help
will be running your program with--help
. --cargo-options=<OPTIONS>
allows you to pass flags to the underlying Cargo command cargo-play invokes.--release
allows you to run your program in release mode.
Bugfix
- cargo-play is now able to skip shebang and empty lines at the beginning of files correctly. Thanks @norcalli.
- cargo-play is now able to generate Cargo.toml correctly when there is mixed git dependency starting with "d". Thanks @reitermarkus.