Skip to content

Commit 85b5ed1

Browse files
committed
[meta] prepare releases
1 parent f1bd448 commit 85b5ed1

File tree

13 files changed

+85
-21
lines changed

13 files changed

+85
-21
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
- "*"
88

99
jobs:
10-
create-release:
11-
if: github.repository_owner == 'oxidecomputer'
10+
newtype-uuid-release:
11+
if: github.repository_owner == 'oxidecomputer' && startsWith(github.ref_name, 'newtype-uuid-1')
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -20,7 +20,7 @@ jobs:
2020
- uses: taiki-e/install-action@v2
2121
with:
2222
23-
- run: just ci-cargo-release
23+
- run: just ci-cargo-release newtype-uuid
2424
env:
2525
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2626
- uses: taiki-e/create-gh-release-action@26b80501670402f1999aff4b934e1574ef2d3705 # v1
@@ -31,3 +31,27 @@ jobs:
3131
prefix: newtype-uuid
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
newtype-uuid-macros-release:
35+
if: github.repository_owner == 'oxidecomputer' && startsWith(github.ref_name, 'newtype-uuid-macros-')
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
39+
with:
40+
persist-credentials: false
41+
- name: Install Rust
42+
uses: dtolnay/rust-toolchain@stable
43+
- uses: taiki-e/install-action@just
44+
- uses: taiki-e/install-action@v2
45+
with:
46+
47+
- run: just ci-cargo-release newtype-uuid-macros
48+
env:
49+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
50+
- uses: taiki-e/create-gh-release-action@26b80501670402f1999aff4b934e1574ef2d3705 # v1
51+
with:
52+
changelog: crates/newtype-uuid-macros/CHANGELOG.md
53+
title: newtype-uuid-macros $version
54+
branch: main
55+
prefix: newtype-uuid-macros
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## [1.3.0] - 2025-08-19
4+
5+
### Added
6+
7+
- For schemars integration, automatic replacement support with [`typify`] and [`progenitor`] via the new `x-rust-type` extension.
8+
- The `TypedUuidKind` trait has a new optional method called `alias`, which represents a type alias. `alias` is used by schemars integration in a few ways: for the schema name of `TypedUuid<T>`, as well as for automatic replacement support.
9+
10+
[`typify`]: https://github.com/oxidecomputer/typify
11+
[`progenitor`]: https://github.com/oxidecomputer/progenitor
12+
13+
### Changed
14+
15+
- MSRV updated to Rust 1.79.
16+
317
## [1.2.4] - 2025-06-17
418

519
### Added
@@ -108,6 +122,7 @@ Documentation improvements.
108122

109123
Initial release.
110124

125+
[1.3.0]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.3.0
111126
[1.2.4]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.2.4
112127
[1.2.3]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.2.3
113128
[1.2.2]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.2.2

Justfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ coverage:
4444

4545
# Generate README.md files using `cargo-sync-rdme`.
4646
generate-readmes:
47-
cargo sync-rdme --toolchain nightly --workspace --all-features
47+
cargo sync-rdme --toolchain nightly-2025-06-21 --workspace --all-features
4848

4949
# Run cargo release in CI.
50-
ci-cargo-release:
50+
ci-cargo-release package:
5151
# cargo-release requires a release off a branch.
5252
git checkout -B to-release
53-
cargo release publish --publish --execute --no-confirm --workspace
53+
cargo release publish --publish --execute --no-confirm --package {{package}}
5454
git checkout -
5555
git branch -D to-release

crates/custom-crate-tests/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ internal-schemars08-tests = [
2525
"dep:serde_json",
2626
"integration-tests/internal-schemars08-tests",
2727
]
28+
29+
[package.metadata.release]
30+
release = false

crates/integration-tests/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,6 @@ internal-proptest1-tests = [
4545
# Snapshot tests use datatest-stable.
4646
name = "snapshot"
4747
harness = false
48+
49+
[package.metadata.release]
50+
release = false
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
## [0.1.0] - 2025-08-19
4+
5+
Initial release, with the `impl_newtype_uuid_kinds` macro.
6+
7+
[0.1.0]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-macros-0.1.0

crates/newtype-uuid-macros/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ use newtype_uuid_macros::impl_typed_uuid_kinds;
2626
impl_typed_uuid_kinds! {
2727
kinds = {
2828
User = {},
29-
Organization = {},
29+
BusinessUnit = {},
3030
},
3131
}
3232

33-
// This generates empty UserKind and OrganizationKind enums implementing
34-
// TypedUuidKind, with the tags "user" and "organization" respectively.
33+
// This generates empty UserKind and BusinessUnitKind enums implementing
34+
// TypedUuidKind, with the tags "user" and "business_unit" respectively.
3535
// Tags are snake_case versions of type names.
3636
assert_eq!(UserKind::tag().as_str(), "user");
37-
assert_eq!(OrganizationKind::tag().as_str(), "organization");
37+
assert_eq!(BusinessUnitKind::tag().as_str(), "business_unit");
3838

39-
// The macro also generates UserUuid and OrganizationUuid type aliases.
39+
// The macro also generates UserUuid and BusinessUnitUuid type aliases.
4040
let user_uuid = UserUuid::new_v4();
41-
let organization_uuid = OrganizationUuid::new_v4();
41+
let business_unit_uuid = BusinessUnitUuid::new_v4();
4242
````
4343

4444
For more details and examples, see the documentation for

crates/newtype-uuid-macros/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616
//! impl_typed_uuid_kinds! {
1717
//! kinds = {
1818
//! User = {},
19-
//! Organization = {},
19+
//! BusinessUnit = {},
2020
//! },
2121
//! }
2222
//!
23-
//! // This generates empty UserKind and OrganizationKind enums implementing
24-
//! // TypedUuidKind, with the tags "user" and "organization" respectively.
23+
//! // This generates empty UserKind and BusinessUnitKind enums implementing
24+
//! // TypedUuidKind, with the tags "user" and "business_unit" respectively.
2525
//! // Tags are snake_case versions of type names.
2626
//! assert_eq!(UserKind::tag().as_str(), "user");
27-
//! assert_eq!(OrganizationKind::tag().as_str(), "organization");
27+
//! assert_eq!(BusinessUnitKind::tag().as_str(), "business_unit");
2828
//!
29-
//! // The macro also generates UserUuid and OrganizationUuid type aliases.
29+
//! // The macro also generates UserUuid and BusinessUnitUuid type aliases.
3030
//! let user_uuid = UserUuid::new_v4();
31-
//! let organization_uuid = OrganizationUuid::new_v4();
31+
//! let business_unit_uuid = BusinessUnitUuid::new_v4();
3232
//! ```
3333
//!
3434
//! For more details and examples, see the documentation for

crates/newtype-uuid/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ assert_eq!(
5151
````
5252

5353
If you have a large number of UUID kinds, consider using
54-
[`newtype-uuid-macros`] which comes with several convenience features:
54+
[`newtype-uuid-macros`] which comes with several convenience features.
5555

5656
````rust
5757
use newtype_uuid_macros::impl_typed_uuid_kinds;
@@ -138,7 +138,7 @@ each minor version are:
138138
* Version **1.0.x**: Rust 1.60.
139139
* Version **1.1.x**: Rust 1.61. This permits `TypedUuid<T>` to have `const fn` methods.
140140
* Version **1.2.x**: Rust 1.67, required by some dependency updates.
141-
* Unreleased: Rust 1.79, required by some dependency updates.
141+
* Version **1.3.x**: Rust 1.79, required by some dependency updates.
142142

143143
## Alternatives
144144

crates/newtype-uuid/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
//! * Version **1.0.x**: Rust 1.60.
132132
//! * Version **1.1.x**: Rust 1.61. This permits `TypedUuid<T>` to have `const fn` methods.
133133
//! * Version **1.2.x**: Rust 1.67, required by some dependency updates.
134-
//! * Unreleased: Rust 1.79, required by some dependency updates.
134+
//! * Version **1.3.x**: Rust 1.79, required by some dependency updates.
135135
//!
136136
//! # Alternatives
137137
//!

0 commit comments

Comments
 (0)