Compare commits

..

1 Commits

Author SHA1 Message Date
release-plz-for-ac-qu-ai-nt[bot]
d6b2678138 chore: release 2024-10-15 20:01:33 +00:00
7 changed files with 23 additions and 62 deletions

View File

@@ -18,8 +18,8 @@ env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
jobs: jobs:
audit-and-deny-and-clippy-and-formatting: formatting-and-deny-and-audit:
name: Check cargo-audit, cargo-deny, clippy, and formatting name: Check formatting, cargo-deny, and cargo-audit
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 4 timeout-minutes: 4
steps: steps:
@@ -31,21 +31,14 @@ jobs:
- name: Install cargo-audit - name: Install cargo-audit
uses: taiki-e/install-action@cargo-audit uses: taiki-e/install-action@cargo-audit
- uses: Swatinem/rust-cache@v2 - name: Formatting
run: cargo fmt --check --verbose
- name: cargo-audit
run: cargo-audit audit --deny warnings
- name: cargo-deny - name: cargo-deny
uses: EmbarkStudios/cargo-deny-action@v2 uses: EmbarkStudios/cargo-deny-action@v2
- name: Clippy - name: cargo-audit
run: cargo clippy run: cargo-audit audit --deny warnings
env:
RUSTFLAGS: "--deny warnings"
- name: Formatting
run: cargo fmt --check --verbose
check-and-build: check-and-build:
strategy: strategy:
@@ -205,24 +198,24 @@ jobs:
msrv: msrv:
strategy: strategy:
matrix: matrix:
crate_directory:
- ./core
- ./cli-clap
- ./gui-eframe
- ./tui-ratatui
- ./multibinary
supporteds: supporteds:
- runner: macos-latest - runner: macos-latest
target: aarch64-apple-darwin target: aarch64-apple-darwin
- runner: macos-latest
target: x86_64-apple-darwin
- runner: ubuntu-latest - runner: ubuntu-latest
target: x86_64-unknown-linux-gnu target: x86_64-unknown-linux-gnu
- install_prerequisite: sudo apt-get update && sudo apt-get install musl-dev musl-tools && sudo ln -s /bin/g++ /bin/musl-g++
runner: ubuntu-latest
target: x86_64-unknown-linux-musl
- prerequisite_step: rm ~/.cargo/bin/cargo.exe; rm ~/.cargo/bin/rust-analyzer.exe; rm ~/.cargo/bin/rustfmt.exe; rustup update - prerequisite_step: rm ~/.cargo/bin/cargo.exe; rm ~/.cargo/bin/rust-analyzer.exe; rm ~/.cargo/bin/rustfmt.exe; rustup update
runner: windows-latest runner: windows-latest
target: x86_64-pc-windows-msvc target: x86_64-pc-windows-msvc
name: Verify MSRV for ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }}) name: Verify MSRV of ${{ matrix.crate_directory }} for ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }})
runs-on: ${{ matrix.supporteds.runner }} runs-on: ${{ matrix.supporteds.runner }}
timeout-minutes: 8 timeout-minutes: 8
steps: steps:
@@ -243,18 +236,6 @@ jobs:
with: with:
tool: cargo-msrv tool: cargo-msrv
- name: Verify core's declared MSRV (minimum supported Rust version) - name: Verify declared MSRV (minimum supported Rust version)
run: cargo-msrv verify --output-format json run: cargo-msrv verify --output-format json
working-directory: ./core working-directory: ${{ matrix.crate_directory }}
- name: Verify cli-clap's declared MSRV (minimum supported Rust version)
run: cargo-msrv verify --output-format json
working-directory: ./cli-clap
- name: Verify gui-eframe's declared MSRV (minimum supported Rust version)
run: cargo-msrv verify --output-format json
working-directory: ./gui-eframe
- name: Verify tui-ratatui's declared MSRV (minimum supported Rust version)
run: cargo-msrv verify --output-format json
working-directory: ./tui-ratatui
- name: Verify multibinary's declared MSRV (minimum supported Rust version)
run: cargo-msrv verify --output-format json
working-directory: ./multibinary

View File

@@ -2,7 +2,7 @@ name: Daily
on: on:
schedule: schedule:
- cron: "41 23 * * *" - cron: "27 17 * * *"
jobs: jobs:
audit: audit:
@@ -150,7 +150,7 @@ jobs:
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: with:
shared-key: ${{ matrix.supporteds.target }}-latest-nightly shared-key: ${{ matrix.supporteds.target }}-latest
cache-on-failure: "true" cache-on-failure: "true"
- name: Test - name: Test

View File

@@ -13,11 +13,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- *(ac-qu-ai-nt-cli-clap)* write a `main` function instead of re-exporting so that the declared MSRV can be met - *(ac-qu-ai-nt-cli-clap)* write a `main` function instead of re-exporting so that the declared MSRV can be met
### Other
- *(cli-clap)* ignore the `Args` argument because it doesn't get used yet (to satisfy Clippy)
- build out the infrastructure for commands to be passed to the clap CLI
## [0.0.8](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-cli-clap-v0.0.7...ac-qu-ai-nt-cli-clap-v0.0.8) - 2024-10-07 ## [0.0.8](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-cli-clap-v0.0.7...ac-qu-ai-nt-cli-clap-v0.0.8) - 2024-10-07
### Other ### Other

View File

@@ -1,15 +1,4 @@
use clap::{Parser, Subcommand}; pub fn main() {
#[derive(Debug, Subcommand)]
enum Command {}
#[derive(Debug, Parser)]
pub struct Args {
#[command(subcommand)]
command: Command,
}
pub fn main(_args: Args) {
#[cfg(feature = "tracing")] #[cfg(feature = "tracing")]
tracing::info!("What's up, world?"); tracing::info!("What's up, world?");
} }

View File

@@ -1,7 +1,3 @@
use clap::Parser;
fn main() { fn main() {
let args = ac_qu_ai_nt_cli_clap::Args::parse(); ac_qu_ai_nt_cli_clap::main();
ac_qu_ai_nt_cli_clap::main(args);
} }

View File

@@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Other ### Other
- build out the infrastructure for commands to be passed to the clap CLI - update Cargo.lock dependencies
## [0.0.12](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-v0.0.11...ac-qu-ai-nt-v0.0.12) - 2024-10-07 ## [0.0.12](https://github.com/babichjacob/ac-qu-ai-nt/compare/ac-qu-ai-nt-v0.0.11...ac-qu-ai-nt-v0.0.12) - 2024-10-07

View File

@@ -19,7 +19,7 @@ struct Args {
enum Command { enum Command {
#[cfg(feature = "cli-clap")] #[cfg(feature = "cli-clap")]
#[command(alias = "cli")] #[command(alias = "cli")]
CliClap(ac_qu_ai_nt_cli_clap::Args), CliClap,
#[cfg(feature = "gui-eframe")] #[cfg(feature = "gui-eframe")]
#[command(alias = "gui")] #[command(alias = "gui")]
GuiEframe, GuiEframe,
@@ -57,7 +57,7 @@ fn main() {
match command { match command {
#[cfg(feature = "cli-clap")] #[cfg(feature = "cli-clap")]
Command::CliClap(args) => ac_qu_ai_nt_cli_clap::main(args), Command::CliClap => ac_qu_ai_nt_cli_clap::main(),
#[cfg(feature = "gui-eframe")] #[cfg(feature = "gui-eframe")]
Command::GuiEframe => ac_qu_ai_nt_gui_eframe::main(), Command::GuiEframe => ac_qu_ai_nt_gui_eframe::main(),
#[cfg(feature = "tui-ratatui")] #[cfg(feature = "tui-ratatui")]