Skip to content

Commit ab1d142

Browse files
authored
Merge branch 'main' into dev/stu/optimise-string
2 parents 8836cd3 + 60d79cf commit ab1d142

10 files changed

Lines changed: 501 additions & 28 deletions

File tree

.github/workflows/auto-tag.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ jobs:
1515
if: startsWith(github.event.head_commit.message, 'Release v')
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919

2020
- name: Install Rust toolchain
21-
uses: dtolnay/rust-toolchain@stable
21+
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # stable
22+
with:
23+
toolchain: stable
2224

2325
- name: Cache dependencies
24-
uses: Swatinem/rust-cache@v2
26+
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
2527

2628
- name: Extract version from commit message
2729
id: version
@@ -51,11 +53,10 @@ jobs:
5153
run: cargo release publish --workspace --execute --no-confirm --allow-branch main
5254

5355
- name: Create GitHub Release
54-
uses: softprops/action-gh-release@v1
56+
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
5557
with:
5658
tag_name: v${{ steps.version.outputs.version }}
5759
name: Release v${{ steps.version.outputs.version }}
5860
draft: false
5961
prerelease: false
6062
generate_release_notes: true
61-

.github/workflows/ci.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ jobs:
2323
steps:
2424

2525
- name: Install stable toolchain
26-
uses: dtolnay/rust-toolchain@stable
26+
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # stable
2727
with:
28+
toolchain: stable
2829
components: rustfmt
2930

3031
- name: Checkout sources
31-
uses: actions/checkout@v4
32+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3233

3334
- name: Check format
3435
run: cargo fmt --all --check
@@ -39,13 +40,15 @@ jobs:
3940
steps:
4041

4142
- name: Install stable toolchain
42-
uses: dtolnay/rust-toolchain@stable
43+
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # stable
44+
with:
45+
toolchain: stable
4346

4447
- name: Install cargo-hack
4548
run: cargo install --locked cargo-hack
4649

4750
- name: Checkout sources
48-
uses: actions/checkout@v4
51+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4952

5053
- name: Check code quality
5154
run: cargo check --all-targets --all-features
@@ -56,13 +59,15 @@ jobs:
5659
steps:
5760

5861
- name: Install stable toolchain
59-
uses: dtolnay/rust-toolchain@stable
62+
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # stable
63+
with:
64+
toolchain: stable
6065

6166
- name: Install cargo-hack
6267
run: cargo install --locked cargo-hack
6368

6469
- name: Checkout sources
65-
uses: actions/checkout@v4
70+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6671

6772
- name: Check code clippy
6873
run: cargo clippy --all-targets --all-features
@@ -73,13 +78,15 @@ jobs:
7378
steps:
7479

7580
- name: Install stable toolchain
76-
uses: dtolnay/rust-toolchain@stable
81+
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # stable
82+
with:
83+
toolchain: stable
7784

7885
- name: Install cargo-hack
7986
run: cargo install --locked cargo-hack
8087

8188
- name: Checkout sources
82-
uses: actions/checkout@v4
89+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8390

8491
- name: Check code tests
8592
run: cargo test --all-targets --all-features

.github/workflows/prepare-release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2424

2525
- name: Install Rust toolchain
26-
uses: dtolnay/rust-toolchain@stable
26+
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # stable
27+
with:
28+
toolchain: stable
2729

2830
- name: Validate version format
2931
run: |
@@ -42,13 +44,13 @@ jobs:
4244
4345
- name: Check compatibility
4446
continue-on-error: true
45-
uses: obi1kenobi/cargo-semver-checks-action@v2
47+
uses: obi1kenobi/cargo-semver-checks-action@6b69fcf40e9b5fb17adeb57e4b6ecd020649a239 # v2
4648

4749
- name: Run tests
4850
run: cargo test --all-features
4951

5052
- name: Create pull request
51-
uses: peter-evans/create-pull-request@v6
53+
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6
5254
with:
5355
token: ${{ secrets.GITHUB_TOKEN }}
5456
commit-message: "chore(release): bump version to ${{ inputs.version }}"
@@ -67,4 +69,3 @@ jobs:
6769
- Create and push git tag v${{ inputs.version }}
6870
- Publish to crates.io
6971
- Create GitHub release
70-

.github/workflows/publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121

2222
- name: Install Rust toolchain
23-
uses: dtolnay/rust-toolchain@stable
23+
uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # stable
24+
with:
25+
toolchain: stable
2426

2527
- name: Cache dependencies
26-
uses: Swatinem/rust-cache@v2
28+
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
2729

2830
- name: Set version
2931
id: version
@@ -42,11 +44,10 @@ jobs:
4244
cargo release publish --workspace --execute --no-confirm --allow-branch main
4345
4446
- name: Create GitHub Release
45-
uses: softprops/action-gh-release@v1
47+
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
4648
with:
4749
tag_name: v${{ steps.version.outputs.version }}
4850
name: Release v${{ steps.version.outputs.version }}
4951
draft: false
5052
prerelease: false
5153
generate_release_notes: true
52-

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = [".", "revision-derive"]
33

44
[workspace.package]
55
edition = "2024"
6-
version = "0.17.0"
6+
version = "0.17.1"
77
authors = ["Tobie Morgan Hitchcock <tobie@surrealdb.com>"]
88
description = "A serialization and deserialization implementation which allows for schema-evolution."
99
repository = "https://github.com/surrealdb/revision"
@@ -34,7 +34,7 @@ specialised-vectors = []
3434
fixed-width-encoding = []
3535

3636
[dependencies]
37-
revision-derive = { version = "0.17.0", path = "revision-derive" }
37+
revision-derive = { version = "0.17.1", path = "revision-derive" }
3838
bytes = { version = "1.11.0", optional = true }
3939
chrono = { version = "0.4.42", features = ["serde"], optional = true }
4040
geo = { version = "0.31.0", features = ["use-serde"], optional = true }

revision-derive/src/ast/attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl<O: AttributeOptions> Parse for FilteredAttributes<O> {
128128

129129
let parsed_options =
130130
attr.parse_args_with(Punctuated::<O::Option, Token![,]>::parse_terminated)?;
131-
options.extend(parsed_options.into_iter())
131+
options.extend(parsed_options)
132132
}
133133

134134
let options = O::finish(Span::call_site(), options)?;

src/implementations/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ pub mod notnan;
1414
pub mod option;
1515
pub mod path;
1616
pub mod primitives;
17+
pub mod range;
1718
pub mod regex;
1819
pub mod result;
1920
pub mod reverse;
2021
pub mod roaring;
2122
pub mod specialised;
2223
pub mod string;
24+
pub mod system_time;
2325
pub mod tuple;
2426
pub mod uuid;
2527
pub mod vecs;

0 commit comments

Comments
 (0)