Skip to content

Commit

Permalink
release: 0.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstoik1 committed Feb 5, 2023
2 parents 3c3d056 + b0e1eaa commit 7ed3055
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 23 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@



## [0.6.6](https://github.com/Blobfolio/argyle/releases/tag/v0.6.6) - 2023-02-04

* Improve docs.rs environment detection



## [0.6.5](https://github.com/Blobfolio/argyle/releases/tag/v0.6.5) - 2023-01-26

### Changed
Expand Down
4 changes: 2 additions & 2 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Project Dependencies
Package: argyle
Version: 0.6.5
Generated: 2023-01-26 17:17:22 UTC
Version: 0.6.6
Generated: 2023-02-05 04:49:01 UTC

This package has no dependencies.
9 changes: 4 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "argyle"
version = "0.6.5"
version = "0.6.6"
authors = ["Blobfolio, LLC. <[email protected]>"]
edition = "2021"
rust-version = "1.62"
Expand All @@ -19,7 +19,9 @@ exclude = [
]

[package.metadata.docs.rs]
features = [ "docsrs", "dynamic-help" ]
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs"]
features = [ "dynamic-help" ]
default-target = "x86_64-unknown-linux-gnu"
targets = [ "x86_64-unknown-linux-gnu", "x86_64-apple-darwin" ]

Expand All @@ -43,9 +45,6 @@ harness = false
[features]
default = []

# This is just a workaround for Docs.rs; don't enable this if you're a human!
docsrs = []

# Enables ArgyleError::WantsDynamicHelp variant.
dynamic-help = []

Expand Down
23 changes: 11 additions & 12 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
pkg_id := "argyle"
pkg_name := "Argyle"

features := "dynamic-help"

cargo_dir := "/tmp/" + pkg_id + "-cargo"
cargo_bin := cargo_dir + "/x86_64-unknown-linux-gnu/release/" + pkg_id
doc_dir := justfile_directory() + "/doc"
Expand All @@ -34,13 +32,13 @@ bench BENCH="":
if [ -z "{{ BENCH }}" ]; then
cargo bench \
--benches \
--features "{{ features }}" \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"
else
cargo bench \
--bench "{{ BENCH }}" \
--features "{{ features }}" \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"
fi
Expand All @@ -53,7 +51,7 @@ bench BENCH="":
cargo check \
--release \
--target x86_64-unknown-linux-gnu \
--features "{{ features }}" \
--all-features \
--target-dir "{{ cargo_dir }}"


Expand All @@ -74,7 +72,7 @@ bench BENCH="":
clear
cargo clippy \
--release \
--features "{{ features }}" \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"

Expand All @@ -90,7 +88,7 @@ bench BENCH="":
clear
cargo run \
-q \
--features "{{ features }}" \
--all-features \
--release \
--example "debug" \
--target x86_64-unknown-linux-gnu \
Expand All @@ -104,12 +102,13 @@ bench BENCH="":
env RUSTUP_PERMIT_COPY_RENAME=true rustup install nightly

# Make the docs.
cargo +nightly doc \
cargo +nightly rustdoc \
--release \
--features "docsrs,{{ features }}" \
--no-deps \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"
--target-dir "{{ cargo_dir }}" \
-- \
--cfg docsrs

# Move the docs and clean up ownership.
[ ! -d "{{ doc_dir }}" ] || rm -rf "{{ doc_dir }}"
Expand Down Expand Up @@ -137,7 +136,7 @@ bench BENCH="":
clear
cargo test \
--release \
--features "{{ features }}" \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"

Expand Down
2 changes: 1 addition & 1 deletion src/argue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub const FLAG_REQUIRED: u8 = 0b0000_0001;
pub const FLAG_SUBCOMMAND: u8 = 0b0000_0010;

#[cfg(feature = "dynamic-help")]
#[cfg_attr(feature = "docsrs", doc(cfg(feature = "dynamic-help")))]
#[cfg_attr(docsrs, doc(cfg(feature = "dynamic-help")))]
/// # Flag: Check For Help Flag.
///
/// When set, [`Argue`] will return [`ArgyleError::WantsDynamicHelp`] if help args
Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub enum ArgyleError {
Passthru(i32),

#[cfg(feature = "dynamic-help")]
#[cfg_attr(feature = "docsrs", doc(cfg(feature = "dynamic-help")))]
#[cfg_attr(docsrs, doc(cfg(feature = "dynamic-help")))]
/// Wants subcommand help.
WantsDynamicHelp(Option<Box<[u8]>>),

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ fn _main() -> Result<(), ArgyleError> {

#![allow(clippy::module_name_repetitions)] // This is fine.

#![cfg_attr(feature = "docsrs", feature(doc_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]



Expand All @@ -120,7 +120,7 @@ pub use argue::{
};

#[cfg(feature = "dynamic-help")]
#[cfg_attr(feature = "docsrs", doc(cfg(feature = "dynamic-help")))]
#[cfg_attr(docsrs, doc(cfg(feature = "dynamic-help")))]
pub use argue::FLAG_DYNAMIC_HELP;

pub use error::ArgyleError;
Expand Down

0 comments on commit 7ed3055

Please sign in to comment.