Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 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
8 changes: 6 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ updates:
# default location of `.github/workflows`
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

monthly should be enough for this crate.

cooldown:
default-days: 7
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
cooldown:
default-days: 7
15 changes: 10 additions & 5 deletions .github/workflows/ci-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,24 @@ name: clippy (Linux)

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

env:
CARGO_TERM_COLOR: always

permissions: {}

jobs:
build:
permissions: {}

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Run clippy
run: cargo clippy --all-features -- -D clippy::all
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- name: Run clippy
run: cargo clippy --all-features -- -D clippy::all
15 changes: 10 additions & 5 deletions .github/workflows/ci-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,24 @@ name: rustfmt (Linux)

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

env:
CARGO_TERM_COLOR: always

permissions: {}

jobs:
build:
permissions: {}

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Run rustfmt
run: cargo fmt --check
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- name: Run rustfmt
run: cargo fmt --check
54 changes: 27 additions & 27 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,50 @@ name: Test (Linux)

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

env:
CARGO_TERM_COLOR: always

permissions: {}

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Test [no features]
run: cargo test --verbose
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false

- name: Test ['chrono' feature]
run: cargo test --verbose --features chrono
- name: Test [no features]
run: cargo test --verbose

- name: Test ['tokio' feature]
run: cargo test --verbose --features tokio
- name: Test ['tokio' feature]
run: cargo test --verbose --features tokio

- name: Test ['tokio-fs' feature]
run: cargo test --verbose --features tokio-fs
- name: Test ['tokio-fs' feature]
run: cargo test --verbose --features tokio-fs

- name: Test ['deflate' feature]
run: cargo test --verbose --features deflate
- name: Test ['deflate' feature]
run: cargo test --verbose --features deflate

- name: Test ['bzip2' feature]
run: cargo test --verbose --features bzip2
- name: Test ['bzip2' feature]
run: cargo test --verbose --features bzip2

- name: Test ['lzma' feature]
run: cargo test --verbose --features lzma
- name: Test ['lzma' feature]
run: cargo test --verbose --features lzma

- name: Test ['zstd' feature]
run: cargo test --verbose --features zstd
- name: Test ['zstd' feature]
run: cargo test --verbose --features zstd

- name: Test ['xz' feature]
run: cargo test --verbose --features xz
- name: Test ['xz' feature]
run: cargo test --verbose --features xz

- name: Test ['deflate64' feature]
run: cargo test --verbose --features deflate64
- name: Test ['deflate64' feature]
run: cargo test --verbose --features deflate64

- name: Test ['full' feature]
run: cargo test --verbose --features full
- name: Test ['full' feature]
run: cargo test --verbose --features full
19 changes: 12 additions & 7 deletions .github/workflows/ci-typos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,28 @@ name: typos (Linux)

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

env:
CARGO_TERM_COLOR: always

permissions: {}

jobs:
build:
permissions: {}

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false

- name: Install typos
run: cargo install typos-cli
- name: Install typos
run: cargo install typos-cli

- name: Run typos
run: typos --format brief
- name: Run typos
run: typos --format brief
16 changes: 10 additions & 6 deletions .github/workflows/ci-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,27 @@ name: Build (WASM)

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

env:
CARGO_TERM_COLOR: always

permissions: {}

jobs:
build:
permissions: {}
name: Build ['full-wasm' feature] on ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
matrix:
target:
- wasm32-wasi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v4
- run: rustup target add ${{ matrix.target }}
- run: cargo build --verbose --target ${{ matrix.target }} --features full-wasm
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- run: rustup target add ${{ matrix.target }}
- run: cargo build --verbose --target ${{ matrix.target }} --features full-wasm
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: not used yet, I think @konstin will need to make me owner on crates.io or do the enrollment himself 🙂

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've done both.

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish to crates.io

on:
push:
tags:
- "v*"

env:
CARGO_TERM_COLOR: always

permissions: {}

jobs:
publish:
name: Publish to crates.io
runs-on: ubuntu-latest
environment:
name: crates-io

permissions:
id-token: write # for Trusted Publishing to crates.io

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- uses: rust-lang/crates-io-auth-action@b7e9a28eded4986ec6b1fa40eeee8f8f165559ec # v1.0.3
id: auth

- name: Publish to crates.io
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: "${{ steps.auth.outputs.token }}"
24 changes: 24 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: GitHub Actions Security Analysis with zizmor

on:
push:
branches: ["main"]
pull_request:
branches: ["**"]

permissions: {}

jobs:
zizmor:
name: Run zizmor 🌈
runs-on: ubuntu-latest
permissions:
security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Run zizmor 🌈
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
//! ### Feature Flags
//! - `full` - Enables all below features.
//! - `full-wasm` - Enables all below features that are compatible with WASM.
//! - `chrono` - Enables support for parsing dates via `chrono`.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was deleted in 355806a

//! - `tokio` - Enables support for the `tokio` implementation module.
//! - `tokio-fs` - Enables support for the `tokio::fs` reading module.
//! - `deflate` - Enables support for the Deflate compression method.
Expand Down
Loading