Skip to content

Commit 2a940bb

Browse files
committed
release: 0.9.0
2 parents 96638c7 + c476a8c commit 2a940bb

File tree

5 files changed

+44
-43
lines changed

5 files changed

+44
-43
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
matrix:
2222
target:
2323
- x86_64-unknown-linux-gnu
24-
- x86_64-apple-darwin
24+
- aarch64-apple-darwin
2525
include:
2626
- target: x86_64-unknown-linux-gnu
2727
os: ubuntu-latest
28-
- target: x86_64-apple-darwin
28+
- target: aarch64-apple-darwin
2929
os: macos-latest
3030

3131
runs-on: ${{matrix.os}}

CREDITS.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# Project Dependencies
22
Package: cargo-bashman
3-
Version: 0.8.0
3+
Version: 0.9.0
44
Target: x86_64-unknown-linux-gnu
5-
Generated: 2025-06-27 01:22:11 UTC
5+
Generated: 2025-08-22 04:42:17 UTC
66

77
| Package | Version | Author(s) | License |
88
| ---- | ---- | ---- | ---- |
9-
| [**adbyss_psl**](https://github.com/Blobfolio/adbyss) | 0.19.0 | [Josh Stoik](mailto:[email protected]) | WTFPL |
9+
| [**adbyss_psl**](https://github.com/Blobfolio/adbyss) | 0.20.0 | [Josh Stoik](mailto:[email protected]) | WTFPL |
1010
| [**argyle**](https://github.com/Blobfolio/argyle) | 0.13.0 | [Josh Stoik](mailto:[email protected]) | WTFPL |
11-
| [bitflags](https://github.com/bitflags/bitflags) | 2.9.1 | The Rust Project Developers | MIT OR Apache-2.0 |
12-
| [cc](https://github.com/rust-lang/cc-rs) ⚒️ | 1.2.27 | [Alex Crichton](mailto:[email protected]) | MIT OR Apache-2.0 |
13-
| [cfg-if](https://github.com/rust-lang/cfg-if) | 1.0.1 | [Alex Crichton](mailto:[email protected]) | MIT OR Apache-2.0 |
14-
| [**dactyl**](https://github.com/Blobfolio/dactyl) | 0.13.0 | [Josh Stoik](mailto:[email protected]) | WTFPL |
11+
| [bitflags](https://github.com/bitflags/bitflags) | 2.9.2 | The Rust Project Developers | MIT OR Apache-2.0 |
12+
| [cc](https://github.com/rust-lang/cc-rs) ⚒️ | 1.2.34 | [Alex Crichton](mailto:[email protected]) | MIT OR Apache-2.0 |
13+
| [cfg-if](https://github.com/rust-lang/cfg-if) | 1.0.3 | [Alex Crichton](mailto:[email protected]) | MIT OR Apache-2.0 |
14+
| [**dactyl**](https://github.com/Blobfolio/dactyl) | 0.13.1 | [Josh Stoik](mailto:[email protected]) | WTFPL |
1515
| [displaydoc](https://github.com/yaahc/displaydoc) | 0.2.5 | [Jane Lusby](mailto:[email protected]) | MIT OR Apache-2.0 |
1616
| [fastrand](https://github.com/smol-rs/fastrand) | 2.3.0 | [Stjepan Glavina](mailto:[email protected]) | Apache-2.0 OR MIT |
17-
| [filetime](https://github.com/alexcrichton/filetime) | 0.2.25 | [Alex Crichton](mailto:[email protected]) | MIT OR Apache-2.0 |
18-
| [form_urlencoded](https://github.com/servo/rust-url) | 1.2.1 | The rust-url developers | MIT OR Apache-2.0 |
17+
| [filetime](https://github.com/alexcrichton/filetime) | 0.2.26 | [Alex Crichton](mailto:[email protected]) | MIT OR Apache-2.0 |
18+
| [form_urlencoded](https://github.com/servo/rust-url) | 1.2.2 | The rust-url developers | MIT OR Apache-2.0 |
1919
| [fyi_ansi](https://github.com/Blobfolio/fyi) | 2.2.1 | [Josh Stoik](mailto:[email protected]) | WTFPL |
20-
| [**fyi_msg**](https://github.com/Blobfolio/fyi) | 2.3.0 | [Josh Stoik](mailto:[email protected]) | WTFPL |
20+
| [**fyi_msg**](https://github.com/Blobfolio/fyi) | 2.3.1 | [Josh Stoik](mailto:[email protected]) | WTFPL |
2121
| [getrandom](https://github.com/rust-random/getrandom) | 0.3.3 | The Rand Project Developers | MIT OR Apache-2.0 |
2222
| [icu_collections](https://github.com/unicode-org/icu4x) | 2.0.0 | The ICU4X Project Developers | Unicode-3.0 |
2323
| [icu_locale_core](https://github.com/unicode-org/icu4x) | 2.0.0 | The ICU4X Project Developers | Unicode-3.0 |
@@ -26,38 +26,38 @@
2626
| [icu_properties](https://github.com/unicode-org/icu4x) | 2.0.1 | The ICU4X Project Developers | Unicode-3.0 |
2727
| [icu_properties_data](https://github.com/unicode-org/icu4x) | 2.0.1 | The ICU4X Project Developers | Unicode-3.0 |
2828
| [icu_provider](https://github.com/unicode-org/icu4x) | 2.0.0 | The ICU4X Project Developers | Unicode-3.0 |
29-
| [idna](https://github.com/servo/rust-url/) | 1.0.3 | The rust-url developers | MIT OR Apache-2.0 |
29+
| [idna](https://github.com/servo/rust-url/) | 1.1.0 | The rust-url developers | MIT OR Apache-2.0 |
3030
| [idna_adapter](https://github.com/hsivonen/idna_adapter) | 1.2.1 | The rust-url developers | Apache-2.0 OR MIT |
3131
| [itoa](https://github.com/dtolnay/itoa) | 1.0.15 | [David Tolnay](mailto:[email protected]) | MIT OR Apache-2.0 |
32-
| [libc](https://github.com/rust-lang/libc) | 0.2.174 | The Rust Project Developers | MIT OR Apache-2.0 |
32+
| [libc](https://github.com/rust-lang/libc) | 0.2.175 | The Rust Project Developers | MIT OR Apache-2.0 |
3333
| [libdeflate-sys](https://github.com/adamkewley/libdeflater) | 1.24.0 | [Adam Kewley](mailto:[email protected]) | Apache-2.0 |
3434
| [**libdeflater**](https://github.com/adamkewley/libdeflater) | 1.24.0 | [Adam Kewley](mailto:[email protected]) | Apache-2.0 |
3535
| [linux-raw-sys](https://github.com/sunfishcode/linux-raw-sys) | 0.9.4 | [Dan Gohman](mailto:[email protected]) | Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT |
3636
| [litemap](https://github.com/unicode-org/icu4x) | 0.8.0 | The ICU4X Project Developers | Unicode-3.0 |
3737
| [memchr](https://github.com/BurntSushi/memchr) | 2.7.5 | [Andrew Gallant](mailto:[email protected]) and bluss | Unlicense OR MIT |
3838
| [once_cell](https://github.com/matklad/once_cell) | 1.21.3 | [Aleksey Kladov](mailto:[email protected]) | MIT OR Apache-2.0 |
3939
| [**oxford_join**](https://github.com/Blobfolio/oxford_join) | 0.7.0 | [Josh Stoik](mailto:[email protected]) | WTFPL |
40-
| [percent-encoding](https://github.com/servo/rust-url/) | 2.3.1 | The rust-url developers | MIT OR Apache-2.0 |
40+
| [percent-encoding](https://github.com/servo/rust-url/) | 2.3.2 | The rust-url developers | MIT OR Apache-2.0 |
4141
| [potential_utf](https://github.com/unicode-org/icu4x) | 0.1.2 | The ICU4X Project Developers | Unicode-3.0 |
42-
| [proc-macro2](https://github.com/dtolnay/proc-macro2) | 1.0.95 | [David Tolnay](mailto:[email protected]) and [Alex Crichton](mailto:[email protected]) | MIT OR Apache-2.0 |
42+
| [proc-macro2](https://github.com/dtolnay/proc-macro2) | 1.0.101 | [David Tolnay](mailto:[email protected]) and [Alex Crichton](mailto:[email protected]) | MIT OR Apache-2.0 |
4343
| [quote](https://github.com/dtolnay/quote) | 1.0.40 | [David Tolnay](mailto:[email protected]) | MIT OR Apache-2.0 |
44-
| [rustix](https://github.com/bytecodealliance/rustix) | 1.0.7 | [Dan Gohman](mailto:[email protected]) and [Jakub Konka](mailto:[email protected]) | Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT |
44+
| [rustix](https://github.com/bytecodealliance/rustix) | 1.0.8 | [Dan Gohman](mailto:[email protected]) and [Jakub Konka](mailto:[email protected]) | Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT |
4545
| [ryu](https://github.com/dtolnay/ryu) | 1.0.20 | [David Tolnay](mailto:[email protected]) | Apache-2.0 OR BSL-1.0 |
4646
| [**semver**](https://github.com/dtolnay/semver) | 1.0.26 | [David Tolnay](mailto:[email protected]) | MIT OR Apache-2.0 |
4747
| [**serde**](https://github.com/serde-rs/serde) | 1.0.219 | [Erick Tryzelaar](mailto:[email protected]) and [David Tolnay](mailto:[email protected]) | MIT OR Apache-2.0 |
4848
| [serde_derive](https://github.com/serde-rs/serde) | 1.0.219 | [Erick Tryzelaar](mailto:[email protected]) and [David Tolnay](mailto:[email protected]) | MIT OR Apache-2.0 |
49-
| [**serde_json**](https://github.com/serde-rs/json) | 1.0.140 | [Erick Tryzelaar](mailto:[email protected]) and [David Tolnay](mailto:[email protected]) | MIT OR Apache-2.0 |
49+
| [**serde_json**](https://github.com/serde-rs/json) | 1.0.143 | [Erick Tryzelaar](mailto:[email protected]) and [David Tolnay](mailto:[email protected]) | MIT OR Apache-2.0 |
5050
| [shlex](https://github.com/comex/rust-shlex) ⚒️ | 1.3.0 | [comex](mailto:[email protected]), [Fenhl](mailto:[email protected]), [Adrian Taylor](mailto:[email protected]), [Alex Touchet](mailto:[email protected]), [Daniel Parks](mailto:dp+[email protected]), and [Garrett Berg](mailto:[email protected]) | MIT OR Apache-2.0 |
5151
| [smallvec](https://github.com/servo/rust-smallvec) | 1.15.1 | The Servo Project Developers | MIT OR Apache-2.0 |
5252
| [stable_deref_trait](https://github.com/storyyeller/stable_deref_trait) | 1.2.0 | [Robert Grosse](mailto:[email protected]) | MIT OR Apache-2.0 |
53-
| [syn](https://github.com/dtolnay/syn) | 2.0.104 | [David Tolnay](mailto:[email protected]) | MIT OR Apache-2.0 |
53+
| [syn](https://github.com/dtolnay/syn) | 2.0.106 | [David Tolnay](mailto:[email protected]) | MIT OR Apache-2.0 |
5454
| [synstructure](https://github.com/mystor/synstructure) | 0.13.2 | [Nika Layzell](mailto:[email protected]) | MIT |
55-
| [tempfile](https://github.com/Stebalien/tempfile) | 3.20.0 | [Steven Allen](mailto:[email protected]), The Rust Project Developers, [Ashley Mannix](mailto:[email protected]), and [Jason White](mailto:[email protected]) | MIT OR Apache-2.0 |
55+
| [tempfile](https://github.com/Stebalien/tempfile) | 3.21.0 | [Steven Allen](mailto:[email protected]), The Rust Project Developers, [Ashley Mannix](mailto:[email protected]), and [Jason White](mailto:[email protected]) | MIT OR Apache-2.0 |
5656
| [tinystr](https://github.com/unicode-org/icu4x) | 0.8.1 | The ICU4X Project Developers | Unicode-3.0 |
5757
| [**trimothy**](https://github.com/Blobfolio/trimothy) | 0.9.0 | [Josh Stoik](mailto:[email protected]) | WTFPL |
5858
| [unicode-ident](https://github.com/dtolnay/unicode-ident) | 1.0.18 | [David Tolnay](mailto:[email protected]) | (MIT OR Apache-2.0) AND Unicode-3.0 |
59-
| [**url**](https://github.com/servo/rust-url) | 2.5.4 | The rust-url developers | MIT OR Apache-2.0 |
60-
| [**utc2k**](https://github.com/Blobfolio/utc2k) | 0.15.0 | [Josh Stoik](mailto:[email protected]) | WTFPL |
59+
| [**url**](https://github.com/servo/rust-url) | 2.5.6 | The rust-url developers | MIT OR Apache-2.0 |
60+
| [**utc2k**](https://github.com/Blobfolio/utc2k) | 0.17.0 | [Josh Stoik](mailto:[email protected]) | WTFPL |
6161
| [utf8_iter](https://github.com/hsivonen/utf8_iter) | 1.0.4 | [Henri Sivonen](mailto:[email protected]) | Apache-2.0 OR MIT |
6262
| [**write_atomic**](https://github.com/Blobfolio/write_atomic) | 0.7.0 | [Josh Stoik](mailto:[email protected]) | WTFPL |
6363
| [writeable](https://github.com/unicode-org/icu4x) | 0.6.1 | The ICU4X Project Developers | Unicode-3.0 |
@@ -66,7 +66,7 @@
6666
| [zerofrom](https://github.com/unicode-org/icu4x) | 0.1.6 | [Manish Goregaokar](mailto:[email protected]) | Unicode-3.0 |
6767
| [zerofrom-derive](https://github.com/unicode-org/icu4x) | 0.1.6 | [Manish Goregaokar](mailto:[email protected]) | Unicode-3.0 |
6868
| [zerotrie](https://github.com/unicode-org/icu4x) | 0.2.2 | The ICU4X Project Developers | Unicode-3.0 |
69-
| [zerovec](https://github.com/unicode-org/icu4x) | 0.11.2 | The ICU4X Project Developers | Unicode-3.0 |
69+
| [zerovec](https://github.com/unicode-org/icu4x) | 0.11.4 | The ICU4X Project Developers | Unicode-3.0 |
7070
| [zerovec-derive](https://github.com/unicode-org/icu4x) | 0.11.1 | [Manish Goregaokar](mailto:[email protected]) | Unicode-3.0 |
7171

7272
### Legend

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo-bashman"
3-
version = "0.8.0"
3+
version = "0.9.0"
44
license = "WTFPL"
55
authors = ["Josh Stoik <[email protected]>"]
66
edition = "2024"
@@ -71,12 +71,12 @@ argyle = "0.13.*"
7171

7272
[dependencies]
7373
argyle = "0.13.*"
74-
adbyss_psl = "0.19.*"
74+
adbyss_psl = "0.20.*"
7575
dactyl = "0.13.*"
7676
fyi_msg = "2.3.*"
7777
oxford_join = "0.7.*"
7878
trimothy = "0.9.*"
79-
utc2k = "0.15.*"
79+
utc2k = "0.17.*"
8080
write_atomic = "0.7.*"
8181

8282
[dependencies.libdeflater]

release/man/cargo-bashman.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.TH "CARGO BASHMAN" "1" "June 2025" "cargo\-bashman v0.8.0" "User Commands"
1+
.TH "CARGO BASHMAN" "1" "August 2025" "cargo\-bashman v0.9.0" "User Commands"
22
.SH NAME
3-
CARGO BASHMAN \- Manual page for cargo\-bashman v0.8.0.
3+
CARGO BASHMAN \- Manual page for cargo\-bashman v0.9.0.
44
.SH DESCRIPTION
55
A Cargo plugin to generate bash completions, man pages, and/or crate credits.
66
.SS USAGE:

src/man.rs

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,21 @@ impl<'a> TryFrom<&'a Manifest> for ManWriter<'a> {
6565

6666
// Populate or remove the subcommand section if this is the main
6767
// command.
68-
if sub.is_main() {
69-
if let Some(pos) = entry.sections.iter().position(|s| s.label == LABEL_SUBCOMMANDS) {
70-
entry.sections[pos].data.extend(
71-
subcommands.iter().filter_map(|s|
72-
if s.is_main() { None }
73-
else { Some(SectionData::from(s)) }
74-
)
75-
);
76-
77-
// Remove it.
78-
if entry.sections[pos].data.is_empty() { entry.sections.remove(pos); }
79-
// Keep it!
80-
else { entry.toc |= Man::HAS_SUBCOMMANDS; }
81-
}
68+
if
69+
sub.is_main() &&
70+
let Some(pos) = entry.sections.iter().position(|s| s.label == LABEL_SUBCOMMANDS)
71+
{
72+
entry.sections[pos].data.extend(
73+
subcommands.iter().filter_map(|s|
74+
if s.is_main() { None }
75+
else { Some(SectionData::from(s)) }
76+
)
77+
);
78+
79+
// Remove it.
80+
if entry.sections[pos].data.is_empty() { entry.sections.remove(pos); }
81+
// Keep it!
82+
else { entry.toc |= Man::HAS_SUBCOMMANDS; }
8283
}
8384

8485
men.push(entry);
@@ -244,7 +245,7 @@ impl Man<'_> {
244245
/// # Arg Label.
245246
///
246247
/// Return the value label used for trailing arguments, if any.
247-
fn arg_label(&self) -> Option<EscapeHyphens> {
248+
fn arg_label(&self) -> Option<EscapeHyphens<'_>> {
248249
if Self::HAS_ARGS == self.toc & Self::HAS_ARGS {
249250
self.sections.iter().find_map(|s|
250251
if s.label == LABEL_ARGS {

0 commit comments

Comments
 (0)