Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
env:
CARGO_TERM_COLOR: always
RUST_TOOLCHAIN: 1.85.0
RUST_TOOLCHAIN: 1.85.1
jobs:
spelling:
name: Spell Check with Typos
Expand Down
154 changes: 77 additions & 77 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,91 +2,91 @@

name: Test
on:
pull_request: {}
push:
branches:
- main
pull_request: {}
push:
branches:
- main

permissions:
id-token: write
contents: read
id-token: write
contents: read
env:
CARGO_TERM_COLOR: always
RUST_TOOLCHAIN: 1.85.0
RUST_COMPONENTS: "rust-std"
CARGO_TERM_COLOR: always
RUST_TOOLCHAIN: 1.85.1
RUST_COMPONENTS: "rust-std"
jobs:
spelling:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4
- name: Spell Check Repo
uses: crate-ci/typos@v1.33.1
spelling:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v4
- name: Spell Check Repo
uses: crate-ci/typos@v1.33.1

# cargo fmt check
check-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup sccache
uses: ./.github/actions/setup-sccache
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
default: true
components: rustfmt
- name: Check formatting
run: cargo fmt --check
# cargo fmt check
check-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup sccache
uses: ./.github/actions/setup-sccache
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
default: true
components: rustfmt
- name: Check formatting
run: cargo fmt --check

# clippy
check-clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup sccache
uses: ./.github/actions/setup-sccache
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
default: true
components: clippy
- name: Clippy Check
run: cargo clippy --all
# clippy
check-clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup sccache
uses: ./.github/actions/setup-sccache
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
default: true
components: clippy
- name: Clippy Check
run: cargo clippy --all

# Rust unit, doc and integration
test-rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup sccache
uses: ./.github/actions/setup-sccache
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
default: true
- name: Run rust tests
run: cargo test --locked -- --test-threads=1
# Rust unit, doc and integration
test-rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup sccache
uses: ./.github/actions/setup-sccache
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
default: true
- name: Run rust tests
run: cargo test --locked -- --test-threads=1

coverage:
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:0.32.8
options: --security-opt seccomp=unconfined
coverage:
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:0.32.8
options: --security-opt seccomp=unconfined

steps:
- name: Checkout repository
uses: actions/checkout@v2
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Generate code coverage
run: |
RUST_LOG=trace cargo +nightly tarpaulin --verbose --all-features --workspace --ignore-tests --timeout 120 --out xml
- name: Generate code coverage
run: |
RUST_LOG=trace cargo +nightly tarpaulin --verbose --all-features --workspace --ignore-tests --timeout 120 --out xml

- name: Upload to codecov.io
uses: codecov/codecov-action@v2
with:
token: ${{secrets.CODECOV_TOKEN}} # not required for public repos
fail_ci_if_error: true
- name: Upload to codecov.io
uses: codecov/codecov-action@v2
with:
token: ${{secrets.CODECOV_TOKEN}} # not required for public repos
fail_ci_if_error: true
2 changes: 1 addition & 1 deletion .tarpaulin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exclude-files = [
"crates/render/src/render_test_helpers.rs",
"crates/render/src/render.rs",
"crates/cli/src/init_logging.rs",
"crates/cli/src/input/tui.rs",
"crates/cli/src/input/tui/**",
"crates/cli/src/main.rs",
"crates/cli/src/run.rs",
"crates/cli/src/dispatch_command.rs",
Expand Down
71 changes: 44 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ members = ["crates/cli", "crates/render", "crates/core"]

[workspace.dependencies]
# Internal dependencies
klirr-core = { path = "crates/core", version = "0.1.27" }
klirr-render = { path = "crates/render", version = "0.1.27" }
klirr-core = { path = "crates/core", version = "0.2.0" }
klirr-render = { path = "crates/render", version = "0.2.0" }

# External dependencies
aes-gcm = { version = "=0.10.3", default-features = false, features = [
Expand All @@ -15,6 +15,7 @@ aes-gcm = { version = "=0.10.3", default-features = false, features = [
"zeroize",
] }
base64 = "0.22.1"
bon = "3.6.4"
chrono = "0.4.41"
derive_more = { version = "2.0.1", features = ["full"] }
dirs-next = "2.0.0"
Expand All @@ -23,7 +24,11 @@ hex = "0.4.3"
hkdf = { version = "=0.12.4", default-features = false }
indexmap = { version = "2.9.0", features = ["serde"] }
insta = { version = "1.43.1", features = ["ron"] }
lettre = { version = "0.11", default-features = false, features = ["tokio1-rustls-tls", "smtp-transport", "builder"] }
lettre = { version = "0.11", default-features = false, features = [
"tokio1-rustls-tls",
"smtp-transport",
"builder",
] }
log = "0.4.27"
pretty_assertions = "1.4.1"
rand = "0.9.1"
Expand All @@ -38,7 +43,6 @@ strum = { version = "0.27", features = ["derive"] }
tempfile = { version = "3.20.0" }
test-log = { version = "0.2.17" }
thiserror = "2.0.12"
typed-builder = "0.21.0"
zeroize = { version = "1.7.0", default-features = false, features = [
"zeroize_derive",
"derive",
Expand Down
Loading
Loading