Meziu
7b70b6b26c
Merge pull request #24 from rust3ds/fix/clippy-build-std
...
Move build-std argument after the subcommand to fix clippy
2 years ago
Mark Drobnak
cb3a9a19ff
Set build-std flag before trailing arguments
2 years ago
Mark Drobnak
7e99e1a9a5
Move build-std argument after the subcommand to fix clippy
...
This fixes `cargo +nightly 3ds clippy`. See this thread:
https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/-Zbuild-std.20and.20clippy.3F/near/290622458
2 years ago
Mark Drobnak
7723d93227
Merge pull request #21 from SteveCookTU/clap3-rewrite
...
Cleanup and Rewrite using Clap crate
2 years ago
Steve Cook
c7b6482f9c
Remove Display trait
...
Inline match command to subcommand for make_cargo_build_command
2 years ago
Steve Cook
84ac10371b
Cargo fmt
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
eb1d4345b7
Fix logic for when to link
2 years ago
Steve Cook
8d350a8c6b
Only link for `run` and `test` subcommands.
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
ef6a2f6724
Revert println! to eprintln!
2 years ago
Steve Cook
8eac835c4c
Add comments
2 years ago
Steve Cook
06bdf9f289
Move should_link and message_format to separate functions
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
11855472df
Fix another indexing issue
2 years ago
Steve Cook
3cb1169dcb
Fix message format parsing
2 years ago
Steve Cook
cc03d78ba5
Initial use of clap
2 years ago
Meziu
9136456653
Update README.md
...
Way more understandable usage section
2 years ago
Meziu
7c8d450a4a
Merge pull request #20 from mateocabanal/add-verbose-error-mesg
...
More verbose error responses
3 years ago
Mateo Cabanal
880661157c
added error messages, replacing unwrap()'s with expect()'s
3 years ago
Andrea Ciliberti
4cd3055780
Bump minimum rustc toolchain
3 years ago
Meziu
5420057493
Merge pull request #19 from Meziu/feature/use-prebuilt-std
...
Use the pre-built std if available in sysroot
3 years ago
Mark Drobnak
40afa13ba0
Use the pre-built std if available in sysroot
3 years ago
Meziu
3b187bcf2d
Merge pull request #15 from ian-h-chamberlain/feature/allow-message-format
...
Allow passthrough when `--message-format` is specified
3 years ago
Ian Chamberlain
1ebde461d0
Update to 2021 edition
3 years ago
Meziu
5eac661e22
Merge pull request #17 from Meziu/fix/optional-authors
...
Use optional env var rather than cargo_metadata
3 years ago
Andrea Ciliberti
402e7af28a
Use parser crate rather than env var
3 years ago
Ian Chamberlain
8023bfb28c
Parse message-format up front and use TeeReader
...
We can still parse the JSON output, even if
Also:
- remove some unused deps.
- make sure we use eprintln so it doesn't interfere with any JSON output
the user might want
3 years ago
Ian Chamberlain
935594b309
Allow passthrough when message-format is specified
3 years ago
Meziu
f72b023f15
Update README.md
3 years ago
Meziu
75ba9b327a
Update README.md
3 years ago
Andrea Ciliberti
2bd2617ea2
Renamed link command to be used with run
3 years ago
Ian Chamberlain
b7452b4e54
Add support for `cargo test` ( #11 )
...
* Use cargo metadata to get exe paths
Include support for "test" subcommand
* Fix accidentally using wrong smdh file
* Update help text for `test`
`--release` is no longer special and just works like any other cargo
arg, so might as well take it out of the help text.
* Use cargo's exit code if possible
* Address PR comments
* Use PathBuf and more consistent Path methods
`.display()` for display, `.to_string_lossy()` for passing args. This
isn't perfect, but we'll just assume no UTF-8 pathnames for now.
3 years ago
Meziu
aa66d3d987
Merge pull request #10 from AzureMarker/feature/configurable_romfs_path
3 years ago
AzureMarker
6ca3f96a39
Return an error if the non-default RomFS directory isn't found
3 years ago
AzureMarker
2813bbc21f
Read the RomFS path from Cargo.toml
3 years ago
Meziu
36d488f8f6
Merge pull request #9 from AzureMarker/fix/romfs
3 years ago
Meziu
fd51983d9b
Merge pull request #8 from AzureMarker/feature/other-cargo-commands
3 years ago
AzureMarker
ee8eec9338
Fix romfs error "Cannot open dir"
...
The parentheses weren't understood by 3dsxtool. Normally they're just a
shell thing anyway, and aren't needed when we're directly constructing
a process's argument array.
3 years ago
AzureMarker
cf3717470d
Fix the link command
3 years ago
AzureMarker
6e78e5c27e
Allow other Cargo commands (like check and clippy)
...
This makes it easier to switch between check/clippy and build.
Otherwise, unless you use the same exact RUSTFLAGS and parameters,
Cargo will rebuild everything (throwing away the build cache).
3 years ago
Meziu
02e6997e6d
Merge pull request #7 from ian-h-chamberlain/print-usage
3 years ago
Meziu
748c8f2f8f
Merge pull request #6 from AzureMarker/fix/rustflags
3 years ago
Ian Chamberlain
8b7acacb61
Add --help and print usage in main
3 years ago
AzureMarker
cdaef21846
Remove an unnecessary whitespace
3 years ago
AzureMarker
779b79dcd6
Fix RUSTFLAGS not getting passed through
3 years ago
Meziu
2e69d70d7d
Merge pull request #5 from AzureMarker/feature/examples
...
Support building examples, and misc improvements
3 years ago