Ian Chamberlain
7d6ddb2ef8
Fix generated main using now-removed panic handler
1 year ago
Ian Chamberlain
2931e5609e
Respect --no-run when using custom runner
...
Also do some other small cleanups for minor optimizations
1 year ago
Ian Chamberlain
6b4fd53f20
Cleanup and add some more comments
...
Minor tweaks like fn names, refactoring a little etc.
Also update README to include an install command, with `--locked` as
well.
1 year ago
Ian Chamberlain
0db0ad3b96
Add support for custom runner
...
Use `cargo config get` to check if the runner is configured, and if so
use it like a normal `cargo run` invocation would. Otherwise, fall back
to the default `3dslink` behavior we had before.
1 year ago
Ian Chamberlain
48aa7933a4
Don't build 3dsx for doctests
...
Basically, ensure we follow `should_build_3dsx` all the way through into
the callbacks.
1 year ago
Ian Chamberlain
d374e7016d
Add verbose flag to print cargo commands
...
Also fix minor issue with building test crate for doctests.
1 year ago
Andrea Ciliberti
dd5ed8a480
Fix new Cargo.toml
1 year ago
Andrea Ciliberti
a0fcbbc57e
Fixed --help docs
2 years ago
Andrea Ciliberti
9b483a8589
Rebased changes
2 years ago
Andrea Ciliberti
eaa93126f4
Merge different commands under a common infrastructure
2 years ago
Andrea Ciliberti
b899ff9d7e
Remove useless RUSTFLAGS changes
2 years ago
Andrea Ciliberti
9b6b79dff2
Callback refactor and cargo-new
2 years ago
Ian Chamberlain
3e7665fb63
Slightly improve doctest output
...
Warn user that no 3dsx will be built in this case, and use "human"
formatting so that we get colored rustc output (since we don't need to
parse the JSON output in this case anyway).
2 years ago
Ian Chamberlain
e8535a130d
Add limited support for `cargo 3ds test --doc`
2 years ago
Ian Chamberlain
329cb00d74
Documentation improvements and extra test case
2 years ago
Ian Chamberlain
dd8ae47296
Plumb through 3dslink args for run + test commands
2 years ago
Ian Chamberlain
dbf1595def
Add plumbing for new commands to running cargo
2 years ago
Ian Chamberlain
583fc67fc6
Update docstrings and arg parsing
...
Also add the most basic `debug_assert` test.
2 years ago
Ian Chamberlain
c2560622e8
Fix some build errors for testing
2 years ago
Ian Chamberlain
cef69644e6
Upgrade to clap4, add extra args and help strings
2 years ago
Steve Cook
c7b6482f9c
Remove Display trait
...
Inline match command to subcommand for make_cargo_build_command
2 years ago
Steve Cook
1a562d0c1a
Build and not run under the hood when calling `cargo 3ds run`
...
Cargo fmt
2 years ago
Steve Cook
9aa632622c
Remove fully qualified derive
2 years ago
Steve Cook
4c5929715c
Move command struct and parser to command.rs
2 years ago
Steve Cook
239556abf8
Revert to original cargo usage
...
Re-add TeeReader comment
Remove debugging line
2 years ago
Steve Cook
51917f8fcf
Add AllowLeadingHyphen
2 years ago
Steve Cook
f05b57f5ac
Use ValueEnum over deprecated ArgEnum
2 years ago
Steve Cook
cc03d78ba5
Initial use of clap
2 years ago