Skip to content

Commit 7805522

Browse files
committed
Update dependencies and configs
1 parent f38f40b commit 7805522

8 files changed

+120
-110
lines changed

.github/workflows/continuous-integration.yaml renamed to .github/workflows/build-and-test.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@
33

44
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
55

6-
name: continuous-integration
6+
name: build-and-test
77

88
on:
99
pull_request:
1010
push:
1111
branches:
1212
- main
13+
workflow_dispatch:
1314

1415
env:
1516
CARGO_INCREMENTAL: 0
1617
CARGO_TERM_COLOR: always
18+
RUST_BACKTRACE: short
1719

1820
jobs:
19-
continuous-integration:
20-
name: Building project and running tests
21+
run:
2122
runs-on: ubuntu-latest
2223

2324
steps:
@@ -33,8 +34,8 @@ jobs:
3334
- name: Cache Rust toolchain and build artifacts
3435
uses: Swatinem/rust-cache@v2
3536
with:
36-
# Distinguished by the action name to avoid sharing across different actions!
37-
shared-key: "continuous-integration"
37+
# The cache should not be shared between different workflows and jobs.
38+
shared-key: ${{ github.workflow }}-${{ github.job }}
3839

3940
- name: Build tests with default features disabled
4041
run: cargo test --workspace --locked --no-default-features --no-run

.github/workflows/pre-commit.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ on:
1010
push:
1111
branches:
1212
- "*"
13+
workflow_dispatch:
1314

1415
env:
1516
CARGO_TERM_COLOR: always
1617

1718
jobs:
18-
pre-commit:
19-
name: Detecting code style issues
19+
run:
2020
runs-on: ubuntu-latest
21+
2122
steps:
2223
- name: Setup Python
2324
uses: actions/setup-python@v4
@@ -36,8 +37,8 @@ jobs:
3637
- name: Cache Rust toolchain and build artifacts
3738
uses: Swatinem/rust-cache@v2
3839
with:
39-
# Distinguished by the action name to avoid sharing across different actions!
40-
shared-key: "pre-commit"
40+
# The cache should not be shared between different workflows and jobs.
41+
shared-key: ${{ github.workflow }}-${{ github.job }}
4142

4243
- name: Detect code style issues (push)
4344
uses: pre-commit/[email protected]

.github/workflows/security-audit.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ on:
1313
# - cron: '0 0 * * *'
1414
workflow_dispatch:
1515

16+
env:
17+
CARGO_TERM_COLOR: always
18+
1619
jobs:
17-
security-audit:
20+
run:
1821
runs-on: ubuntu-latest
22+
1923
steps:
2024
# TODO: Remove manual installation of toolchain after
2125
# https://github.com/actions-rs/audit-check/issues/215
@@ -31,7 +35,7 @@ jobs:
3135
uses: Swatinem/rust-cache@v2
3236
with:
3337
# Distinguished by the action name to avoid sharing across different actions!
34-
shared-key: "security-audit"
38+
shared-key: ${{ github.workflow }}-${{ github.job }}
3539

3640
- name: Run security audit
3741
run: cargo audit --deny unsound --deny yanked

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ repos:
4444
- id: codespell
4545
args: [--ignore-words=.codespellignore]
4646
- repo: https://github.com/pre-commit/mirrors-prettier
47-
rev: v3.0.0-alpha.9-for-vscode
47+
rev: v3.0.1
4848
hooks:
4949
- id: prettier
5050
types_or:
5151
- markdown
5252
- yaml
5353
# https://reuse.software
5454
- repo: https://github.com/fsfe/reuse-tool
55-
rev: v1.1.2
55+
rev: v2.1.0
5656
hooks:
5757
- id: reuse
5858
- repo: https://github.com/doublify/pre-commit-rust

.prettierrc.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ overrides:
88
tabWidth: 2
99
# in double quotes you can use escapes
1010
singleQuote: false
11+
- files:
12+
- "**/*.md"
13+
options:
14+
printWidth: 100
15+
proseWrap: always

CHANGELOG.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,18 @@
55

66
All notable changes to this project will be documented in this file.
77

8-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
9-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
9+
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1010

1111
## [0.5.0] - 2022-11-24
1212

1313
- Add `as_ref()` to `Validated`
1414

1515
### BREAKING CHANGES
1616

17-
- As `Validated` now has an inherent `as_ref()` method, code that
18-
used to call `AsRef::as_ref` on it may now behave differently.
19-
`AsRef` impl is still available and can be called explicitly,
20-
or simply use `Deref` instead.
17+
- As `Validated` now has an inherent `as_ref()` method, code that used to call `AsRef::as_ref` on it
18+
may now behave differently. `AsRef` impl is still available and can be called explicitly, or
19+
simply use `Deref` instead.
2120

2221
## [0.4.1] - 2022-10-21
2322

@@ -30,7 +29,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3029
## [0.3.0] - 2022-04-14
3130

3231
- Tag validated values by wrapping them into `Validated`
33-
- Rename `semval::Result` into `semval::ValidationResult` for disambiguation and consistency with `prelude`.
32+
- Rename `semval::Result` into `semval::ValidationResult` for disambiguation and consistency with
33+
`prelude`.
3434

3535
## [0.2.0] - 2022-01-29
3636

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ categories = ["no-std", "rust-patterns"]
1414
edition = "2021"
1515

1616
[dependencies]
17-
smallvec = { version = "1.10.0", features = ["union"] }
17+
smallvec = { version = "1.11.0", features = ["union"] }
1818

1919
[features]
2020
default = ["std"]

0 commit comments

Comments
 (0)