Skip to content

Commit 6dacd42

Browse files
committed
release: 0.4.0
2 parents 562c3b6 + f642f34 commit 6dacd42

File tree

8 files changed

+103
-49
lines changed

8 files changed

+103
-49
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Build
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: []
66
pull_request:
7-
branches: [ master ]
7+
branches: []
88

99
defaults:
1010
run:
@@ -48,8 +48,14 @@ jobs:
4848
4949
- name: Build
5050
run: |
51+
cargo build --bin cargo-bashman --target ${{ matrix.target }}
5152
cargo build --bin cargo-bashman --release --target ${{ matrix.target }}
5253
5354
- name: Clippy
5455
run: |
5556
cargo clippy --release --target ${{ matrix.target }}
57+
58+
- name: Tests
59+
run: |
60+
cargo test --target ${{ matrix.target }}
61+
cargo test --release --target ${{ matrix.target }}

.github/workflows/msrv.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: MSRV
2+
3+
on:
4+
push:
5+
branches: []
6+
pull_request:
7+
branches: []
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
13+
env:
14+
CARGO_TERM_COLOR: always
15+
16+
jobs:
17+
all:
18+
name: All
19+
20+
strategy:
21+
matrix:
22+
target:
23+
- x86_64-unknown-linux-gnu
24+
- x86_64-apple-darwin
25+
include:
26+
- target: x86_64-unknown-linux-gnu
27+
os: ubuntu-latest
28+
- target: x86_64-apple-darwin
29+
os: macos-latest
30+
31+
runs-on: ${{matrix.os}}
32+
33+
env:
34+
RUSTFLAGS: "-D warnings"
35+
36+
steps:
37+
- uses: actions/checkout@v3
38+
- uses: dtolnay/rust-toolchain@stable
39+
with:
40+
targets: ${{ matrix.target }}
41+
- uses: taiki-e/install-action@v2
42+
with:
43+
tool: cargo-msrv
44+
45+
- name: Info
46+
run: |
47+
rustup --version
48+
cargo --version
49+
cargo clippy --version
50+
51+
- name: MSRV
52+
run: |
53+
cargo msrv --path bashman verify
54+
cargo msrv --path bashman_core verify

CREDITS.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
# Project Dependencies
22
Package: cargo-bashman
3-
Version: 0.3.19
4-
Generated: 2023-04-20 17:08:58 UTC
3+
Version: 0.4.0
4+
Generated: 2023-06-02 01:42:40 UTC
55

66
| Package | Version | Author(s) | License |
77
| ---- | ---- | ---- | ---- |
8-
| [adbyss_psl](https://github.com/Blobfolio/adbyss) | 0.7.21 | [Josh Stoik](mailto:[email protected]) | WTFPL |
8+
| [adbyss_psl](https://github.com/Blobfolio/adbyss) | 0.8.0 | [Josh Stoik](mailto:[email protected]) | WTFPL |
99
| [ahash](https://github.com/tkaitchuck/ahash) | 0.8.3 | [Tom Kaitchuck](mailto:[email protected]) | Apache-2.0 or MIT |
10-
| [argyle](https://github.com/Blobfolio/argyle) | 0.6.7 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
11-
| [bashman_core](https://github.com/Blobfolio/bashman) | 0.3.19 | [Josh Stoik](mailto:[email protected]) | WTFPL |
10+
| [argyle](https://github.com/Blobfolio/argyle) | 0.6.8 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
11+
| [bashman_core](https://github.com/Blobfolio/bashman) | 0.4.0 | [Josh Stoik](mailto:[email protected]) | WTFPL |
1212
| [camino](https://github.com/camino-rs/camino) | 1.1.4 | [Without Boats](mailto:[email protected]), [Ashley Williams](mailto:[email protected]), [Steve Klabnik](mailto:[email protected]), and [Rain](mailto:[email protected]) | Apache-2.0 or MIT |
1313
| [cargo-platform](https://github.com/rust-lang/cargo) | 0.1.2 | The Cargo Project Developers | Apache-2.0 or MIT |
1414
| [cargo_metadata](https://github.com/oli-obk/cargo_metadata) | 0.15.4 | [Oliver Schneider](mailto:[email protected]) | MIT |
1515
| [cfg-if](https://github.com/alexcrichton/cfg-if) | 1.0.0 | [Alex Crichton](mailto:[email protected]) | Apache-2.0 or MIT |
16-
| [dactyl](https://github.com/Blobfolio/dactyl) | 0.4.8 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
17-
| [fyi_msg](https://github.com/Blobfolio/fyi) | 0.10.8 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
16+
| [dactyl](https://github.com/Blobfolio/dactyl) | 0.5.0 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
17+
| [fyi_msg](https://github.com/Blobfolio/fyi) | 0.11.0 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
1818
| [hashbrown](https://github.com/rust-lang/hashbrown) | 0.12.3 | [Amanieu d'Antras](mailto:[email protected]) | Apache-2.0 or MIT |
1919
| [indexmap](https://github.com/bluss/indexmap) | 1.9.3 | | Apache-2.0 or MIT |
2020
| [itoa](https://github.com/dtolnay/itoa) | 1.0.6 | [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
21-
| [libdeflate-sys](https://github.com/adamkewley/libdeflater) | 0.13.0 | [Adam Kewley](mailto:[email protected]) | Apache-2.0 |
22-
| [libdeflater](https://github.com/adamkewley/libdeflater) | 0.13.0 | [Adam Kewley](mailto:[email protected]) | Apache-2.0 |
21+
| [libdeflate-sys](https://github.com/adamkewley/libdeflater) | 0.14.0 | [Adam Kewley](mailto:[email protected]) | Apache-2.0 |
22+
| [libdeflater](https://github.com/adamkewley/libdeflater) | 0.14.0 | [Adam Kewley](mailto:[email protected]) | Apache-2.0 |
2323
| [memchr](https://github.com/BurntSushi/memchr) | 2.5.0 | [Andrew Gallant](mailto:[email protected]) and bluss | MIT or Unlicense |
2424
| [num-traits](https://github.com/rust-num/num-traits) | 0.2.15 | The Rust Project Developers | Apache-2.0 or MIT |
25-
| [oxford_join](https://github.com/Blobfolio/oxford_join) | 0.2.7 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
26-
| [proc-macro2](https://github.com/dtolnay/proc-macro2) | 1.0.56 | [David Tolnay](mailto:[email protected]) and [Alex Crichton](mailto:[email protected]) | Apache-2.0 or MIT |
27-
| [quote](https://github.com/dtolnay/quote) | 1.0.26 | [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
25+
| [oxford_join](https://github.com/Blobfolio/oxford_join) | 0.2.8 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
26+
| [proc-macro2](https://github.com/dtolnay/proc-macro2) | 1.0.59 | [David Tolnay](mailto:[email protected]) and [Alex Crichton](mailto:[email protected]) | Apache-2.0 or MIT |
27+
| [quote](https://github.com/dtolnay/quote) | 1.0.28 | [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
2828
| [ryu](https://github.com/dtolnay/ryu) | 1.0.13 | [David Tolnay](mailto:[email protected]) | Apache-2.0 or BSL-1.0 |
2929
| [semver](https://github.com/dtolnay/semver) | 1.0.17 | [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
30-
| [serde](https://github.com/serde-rs/serde) | 1.0.160 | [Erick Tryzelaar](mailto:[email protected]) and [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
31-
| [serde_derive](https://github.com/serde-rs/serde) | 1.0.160 | [Erick Tryzelaar](mailto:[email protected]) and [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
30+
| [serde](https://github.com/serde-rs/serde) | 1.0.163 | [Erick Tryzelaar](mailto:[email protected]) and [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
31+
| [serde_derive](https://github.com/serde-rs/serde) | 1.0.163 | [Erick Tryzelaar](mailto:[email protected]) and [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
3232
| [serde_json](https://github.com/serde-rs/json) | 1.0.96 | [Erick Tryzelaar](mailto:[email protected]) and [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
33-
| [serde_spanned](https://github.com/toml-rs/toml) | 0.6.1 | | Apache-2.0 or MIT |
34-
| [syn](https://github.com/dtolnay/syn) | 2.0.15 | [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
33+
| [serde_spanned](https://github.com/toml-rs/toml) | 0.6.2 | | Apache-2.0 or MIT |
34+
| [syn](https://github.com/dtolnay/syn) | 2.0.18 | [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
3535
| [thiserror](https://github.com/dtolnay/thiserror) | 1.0.40 | [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
3636
| [thiserror-impl](https://github.com/dtolnay/thiserror) | 1.0.40 | [David Tolnay](mailto:[email protected]) | Apache-2.0 or MIT |
3737
| [tinyvec](https://github.com/Lokathor/tinyvec) | 1.6.0 | [Lokathor](mailto:[email protected]) | Apache-2.0, MIT, or Zlib |
3838
| [tinyvec_macros](https://github.com/Soveu/tinyvec_macros) | 0.1.1 | [Soveu](mailto:[email protected]) | Apache-2.0, MIT, or Zlib |
39-
| [toml](https://github.com/toml-rs/toml) | 0.7.3 | [Alex Crichton](mailto:[email protected]) | Apache-2.0 or MIT |
40-
| [toml_datetime](https://github.com/toml-rs/toml) | 0.6.1 | [Alex Crichton](mailto:[email protected]) | Apache-2.0 or MIT |
41-
| [toml_edit](https://github.com/ordian/toml_edit) | 0.19.8 | [Andronik Ordian](mailto:[email protected]) and [Ed Page](mailto:[email protected]) | Apache-2.0 or MIT |
42-
| [trimothy](https://github.com/Blobfolio/trimothy) | 0.1.6 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
39+
| [toml](https://github.com/toml-rs/toml) | 0.7.4 | [Alex Crichton](mailto:[email protected]) | Apache-2.0 or MIT |
40+
| [toml_datetime](https://github.com/toml-rs/toml) | 0.6.2 | [Alex Crichton](mailto:[email protected]) | Apache-2.0 or MIT |
41+
| [toml_edit](https://github.com/toml-rs/toml) | 0.19.10 | [Andronik Ordian](mailto:[email protected]) and [Ed Page](mailto:[email protected]) | Apache-2.0 or MIT |
42+
| [trimothy](https://github.com/Blobfolio/trimothy) | 0.1.7 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
4343
| [unicode-bidi](https://github.com/servo/unicode-bidi) | 0.3.13 | The Servo Project Developers | Apache-2.0 or MIT |
44-
| [unicode-ident](https://github.com/dtolnay/unicode-ident) | 1.0.8 | [David Tolnay](mailto:[email protected]) | Apache-2.0 AND Unicode-DFS-2016 or MIT |
44+
| [unicode-ident](https://github.com/dtolnay/unicode-ident) | 1.0.9 | [David Tolnay](mailto:[email protected]) | Apache-2.0 AND Unicode-DFS-2016 or MIT |
4545
| [unicode-normalization](https://github.com/unicode-rs/unicode-normalization) | 0.1.22 | [kwantam](mailto:[email protected]) and [Manish Goregaokar](mailto:[email protected]) | Apache-2.0 or MIT |
46-
| [utc2k](https://github.com/Blobfolio/utc2k) | 0.5.15 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
47-
| [winnow](https://github.com/winnow-rs/winnow) | 0.4.1 | | MIT |
46+
| [utc2k](https://github.com/Blobfolio/utc2k) | 0.6.0 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
47+
| [winnow](https://github.com/winnow-rs/winnow) | 0.4.6 | | MIT |

bashman/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "cargo-bashman"
3-
version = "0.3.19"
3+
version = "0.4.0"
44
license = "WTFPL"
55
authors = ["Josh Stoik <[email protected]>"]
66
edition = "2021"
7-
rust-version = "1.63"
7+
rust-version = "1.70"
88
description = "A Cargo plugin to generate BASH completions and MAN pages."
99
repository = "https://github.com/Blobfolio/bashman"
1010
publish = false
@@ -67,7 +67,7 @@ path = true
6767

6868
[dependencies]
6969
argyle = "0.6.*"
70-
fyi_msg = "0.10.*"
70+
fyi_msg = "0.11.*"
7171

7272
[dependencies.bashman_core]
7373
path = "../bashman_core"

bashman_core/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
[package]
22
name = "bashman_core"
3-
version = "0.3.19"
3+
version = "0.4.0"
44
license = "WTFPL"
55
authors = ["Josh Stoik <[email protected]>"]
66
edition = "2021"
7-
rust-version = "1.63"
7+
rust-version = "1.70"
88
description = "The backing library for Cargo Bashman."
99
repository = "https://github.com/Blobfolio/bashman"
1010
publish = false
1111

1212
[dependencies]
13-
adbyss_psl = "0.7.*"
13+
adbyss_psl = "0.8.*"
1414
argyle = "0.6.*"
1515
cargo_metadata = "=0.15.4"
16-
fyi_msg = "0.10.*"
16+
fyi_msg = "0.11.*"
1717
indexmap = "=1.9.3"
18-
libdeflater = "=0.13.0"
18+
libdeflater = "=0.14.0"
1919
oxford_join = "0.2.*"
2020
trimothy = "0.1.*"
21-
utc2k = "0.5.*"
21+
utc2k = "0.6.*"
2222

2323
[dependencies.serde]
2424
version = "1.0.*"

bashman_core/src/data.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ use libdeflater::{
1212
Compressor,
1313
};
1414
use std::{
15-
ffi::OsStr,
1615
fs::File,
1716
io::Write,
18-
os::unix::ffi::OsStrExt,
1917
path::Path,
2018
};
2119
use utc2k::Utc2k;
@@ -371,7 +369,9 @@ impl<'a> Command<'a> {
371369
buf.truncate(len);
372370

373371
// Toss ".gz" onto the original file path and write again!
374-
File::create(OsStr::from_bytes(&[path.as_os_str().as_bytes(), b".gz"].concat()))
372+
let mut dst = path.to_path_buf();
373+
dst.as_mut_os_string().push(".gz");
374+
File::create(dst)
375375
.and_then(|mut f| f.write_all(&buf).and_then(|_| f.flush()))
376376
.map_err(|_| BashManError::WriteSubMan(Box::from(self.bin)))
377377
}

justfile

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,6 @@ release_dir := justfile_directory() + "/release"
5656
mv "{{ justfile_directory() }}/target" "{{ cargo_dir }}"
5757

5858

59-
# Check Release!
60-
@check:
61-
# First let's build the Rust bit.
62-
cargo check \
63-
--workspace \
64-
--release \
65-
--target x86_64-unknown-linux-gnu \
66-
--target-dir "{{ cargo_dir }}"
67-
68-
6959
@clean:
7060
# Most things go here.
7161
[ ! -d "{{ cargo_dir }}" ] || rm -rf "{{ cargo_dir }}"
@@ -118,6 +108,10 @@ release_dir := justfile_directory() + "/release"
118108
# Unit tests!
119109
@test:
120110
clear
111+
cargo test \
112+
--workspace \
113+
--target x86_64-unknown-linux-gnu \
114+
--target-dir "{{ cargo_dir }}"
121115
cargo test \
122116
--release \
123117
--workspace \

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" "April 2023" "Cargo BashMan v0.3.19" "User Commands"
1+
.TH "CARGO BASHMAN" "1" "June 2023" "Cargo BashMan v0.4.0" "User Commands"
22
.SH NAME
3-
Cargo BashMan \- Manual page for cargo\-bashman v0.3.19.
3+
Cargo BashMan \- Manual page for cargo\-bashman v0.4.0.
44
.SH DESCRIPTION
55
A Cargo plugin to generate BASH completions and MAN pages.
66
.SS USAGE:

0 commit comments

Comments
 (0)