Skip to content

Commit efc875d

Browse files
[Release]prepare move crates 0.2.0-rc.1 (#19)
* chore: prepare Talus move crates 0.2.0-rc.1 * docs: remove release guide
1 parent fdcc015 commit efc875d

54 files changed

Lines changed: 2634 additions & 766 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Publish crates.io packages
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: Existing release tag, such as v0.2.0
8+
required: true
9+
type: string
10+
resume:
11+
description: Skip versions that already exist after a reviewed partial publication
12+
required: false
13+
default: false
14+
type: boolean
15+
16+
permissions:
17+
contents: read
18+
19+
concurrency:
20+
group: crates-io-${{ inputs.tag }}
21+
cancel-in-progress: false
22+
23+
jobs:
24+
publish:
25+
name: Publish packages
26+
runs-on: ubuntu-latest
27+
environment: crates-io
28+
permissions:
29+
contents: read
30+
id-token: write
31+
32+
steps:
33+
- name: Check out the release tag
34+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
35+
with:
36+
ref: ${{ inputs.tag }}
37+
fetch-depth: 0
38+
39+
- name: Install Rust 1.90
40+
uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1
41+
with:
42+
toolchain: 1.90.0
43+
override: true
44+
45+
- name: Verify the tag and main branch
46+
shell: bash
47+
env:
48+
RELEASE_TAG: ${{ inputs.tag }}
49+
run: |
50+
workspace_version="$(awk -F ' *= *' '$1 == "version" { gsub(/"/, "", $2); print $2; exit }' Cargo.toml)"
51+
test "$RELEASE_TAG" = "v$workspace_version"
52+
test "$(git rev-parse HEAD)" = "$(git rev-parse "${RELEASE_TAG}^{commit}")"
53+
git merge-base --is-ancestor HEAD origin/main
54+
test -z "$(git status --porcelain)"
55+
56+
- name: Request a crates.io token
57+
id: crates_io_auth
58+
uses: rust-lang/crates-io-auth-action@c6f97d42243bad5fab37ca0427f495c86d5b1a18 # v1.0.5
59+
60+
- name: Publish packages
61+
env:
62+
ALLOW_EXISTING: ${{ inputs.resume }}
63+
CARGO_REGISTRY_TOKEN: ${{ steps.crates_io_auth.outputs.token }}
64+
PUBLISH_CRATES_CONFIRM: ${{ inputs.tag }}
65+
RELEASE_TAG: ${{ inputs.tag }}
66+
run: ./scripts/publish-crates.sh "$RELEASE_TAG"

‎.github/workflows/rust-ci.yml‎

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
. -> target
6161
6262
- name: cargo clippy -D warnings
63-
run: cargo clippy --all --all-targets -- -D warnings
63+
run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
6464

6565
check:
6666
name: Cargo check
@@ -81,10 +81,10 @@ jobs:
8181
. -> target
8282
8383
- name: cargo check
84-
run: cargo check
84+
run: cargo check --workspace --locked
8585

86-
- name: cargo check --all --all-targets
87-
run: cargo check --all --all-targets
86+
- name: cargo check all targets
87+
run: cargo check --workspace --all-targets --all-features --locked
8888

8989
test:
9090
name: Tests + doctests
@@ -104,8 +104,37 @@ jobs:
104104
workspaces: |
105105
. -> target
106106
107-
- name: cargo test --all --all-targets
108-
run: cargo test --all --all-targets
107+
- name: cargo test all targets
108+
run: cargo test --workspace --all-targets --all-features --locked
109109

110110
- name: cargo test --doc
111-
run: cargo test --doc --all
111+
run: cargo test --doc --workspace --all-features --locked
112+
113+
- name: cargo doc
114+
env:
115+
RUSTDOCFLAGS: -D warnings
116+
run: cargo doc --workspace --all-features --no-deps --locked
117+
118+
msrv:
119+
name: Rust 1.90 and package archives
120+
runs-on: ubuntu-latest
121+
steps:
122+
- uses: actions/checkout@v4
123+
124+
- name: Install Rust 1.90
125+
uses: actions-rust-lang/setup-rust-toolchain@v1
126+
with:
127+
toolchain: 1.90.0
128+
override: true
129+
130+
- name: Cache cargo
131+
uses: Swatinem/rust-cache@v2
132+
with:
133+
workspaces: |
134+
. -> target
135+
136+
- name: Check the minimum Rust version
137+
run: cargo check --workspace --all-targets --all-features --locked
138+
139+
- name: Test package archives
140+
run: ./scripts/check-packages.sh

‎.gitignore‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
target/
2-
Cargo.lock
32
.DS_Store
43

54
# Local configuration and credentials.

‎CHANGELOG.md‎

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,34 @@ The format is based on [Keep a Changelog], and this project adheres to
77

88
## [Unreleased]
99

10+
## [0.2.0-rc.1] - 2026-08-27
11+
1012
### Added
1113

12-
- Add `sui-move`: core Move-shaped type layer (traits, abilities, decoding).
13-
- Keep Move framework declarations out of the `sui-move` core so generated package bindings define
14+
- Add `talus-sui-move`: core layer for Move types, traits, abilities, and decoding.
15+
- Keep Move framework declarations out of the `talus-sui-move` core so generated package bindings define
1416
`UID`, `Coin<T>`, `Balance<T>`, containers, and other framework shapes.
15-
- Add `sui-move-derive` and the `sui-move` `derive` feature for defining Move-shaped structs via macros.
16-
- Add `sui-move-call`: typed Move call descriptions (`CallSpec`) plus typed wrappers for Sui `Input` kinds (pure, immutable/owned, shared, receiving).
17-
- Add `sui-move-ptb`: minimal PTB builder that consumes `CallSpec` and produces `ProgrammableTransaction`.
18-
- Add `sui-move-runtime`: cursor-driven runtime for the Read → Tx → Commit mental model:
19-
- runtime-owned handles (`Object<T>`) that auto-update from transaction effects,
20-
- explicit input-mode views (`shared_immutable`, `shared_mutable`, `receiving`),
21-
- finality-aware `Receipt` plus recovery hooks (`Runtime::sync_transaction`, `Read::refresh*`),
22-
- ergonomic transaction macro (`sui_move_runtime::tx!`).
23-
- Add `sui-move-codegen`: fetch + normalize package metadata (`NormalizedPackage`) and render typed Rust bindings (Move-shaped types + `CallSpec` builders).
17+
- Add `talus-sui-move-derive` and the `talus-sui-move` `derive` feature for defining Rust structs
18+
that represent Move structs.
19+
- Add `talus-sui-move-call`: typed Move call descriptions (`CallSpec`) plus typed wrappers for Sui `Input` kinds (pure, immutable/owned, shared, receiving).
20+
- Add `talus-sui-move-ptb`: minimal PTB builder that consumes `CallSpec` and produces `ProgrammableTransaction`.
21+
- Add `talus-sui-move-runtime`: runtime with a cursor for the Read → Tx → Commit mental model:
22+
- handles owned by the runtime (`Object<T>`) that update from transaction effects,
23+
- explicit input mode views (`shared_immutable`, `shared_mutable`, `receiving`),
24+
- `Receipt` values that record finality plus recovery hooks (`Runtime::sync_transaction`,
25+
`Read::refresh*`),
26+
- ergonomic transaction macro (`talus_sui_move_runtime::tx!`).
27+
- Add `talus-sui-move-codegen`: fetch and normalize package metadata (`NormalizedPackage`) and
28+
render typed Rust bindings for Move types and `CallSpec` builders.
2429

2530
### Changed
2631

32+
- Publish the workspace under the `talus-sui-move-*` crates.io package names owned by Talus and use
33+
the matching `talus_sui_move*` Rust library names.
2734
- Generated package scopes now resolve type identity by module and datatype while calls continue to
2835
use the current package address.
2936

3037
[Keep a Changelog]: https://keepachangelog.com/en/1.1.0/
3138
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
39+
[Unreleased]: https://github.com/Talus-Network/move-binding/compare/v0.2.0-rc.1...HEAD
40+
[0.2.0-rc.1]: https://github.com/Talus-Network/move-binding/compare/v0.1.0...v0.2.0-rc.1

‎CONTRIBUTING.md‎

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Thank you for considering contributing to this project. These guidelines keep th
44
and preserve the structure of the workspace.
55

66
This workspace is a set of layered Rust crates for typed Sui Move interactions. Changes should
7-
preserve the layer boundaries described in `MODEL.md`: low-level Move type modeling should not
7+
preserve the layer boundaries described in `MODEL.md`: foundational Move type modeling should not
88
depend on transaction building or runtime behavior, and runtime code should not hide the
99
Read -> Tx -> Commit boundary.
1010

@@ -26,7 +26,7 @@ code.
2626
4. Add tests for new functionality or behavior changes.
2727
5. Do not introduce `unsafe` Rust unless the safety invariant is documented and reviewed
2828
explicitly.
29-
6. Update documentation to complement user-facing code changes.
29+
6. Update documentation to complement changes to the public API.
3030
7. Update `CHANGELOG.md` for externally visible changes.
3131

3232
## Local Checks
@@ -56,7 +56,7 @@ CI runs formatting and clippy strictly, plus stable Rust checks and tests.
5656
- Ensure your branch is up to date with `main`.
5757
- Add or update tests for public API behavior, generated output, transaction construction, and
5858
runtime cursor/effects handling.
59-
- Update the relevant crate README when changing user-facing APIs.
59+
- Update the relevant crate README when changing public APIs.
6060
- A maintainer will review and may request changes before merge.
6161

6262
## Writing Commit Messages
@@ -67,29 +67,14 @@ CI runs formatting and clippy strictly, plus stable Rust checks and tests.
6767
- Use imperative tone, for example `fix: reject duplicate object inputs` instead of
6868
`fix: rejects duplicate object inputs`.
6969
- Reference a ticket if applicable.
70-
- Add context and an explanation for non-trivial contributions.
70+
- Add context and an explanation for complex contributions.
7171

7272
## Dependencies
7373

7474
Prefer crates.io dependencies with explicit versions. Git dependencies are acceptable only when
7575
they are intentional and should also include a version requirement when the crate exists on
7676
crates.io, so the workspace can be packaged predictably.
7777

78-
## Publishing
79-
80-
Publish crates in dependency order:
81-
82-
1. `sui-move-derive`
83-
2. `sui-move`
84-
3. `sui-move-call`
85-
4. `sui-move-ptb`
86-
5. `sui-move-runtime`
87-
6. `sui-move-codegen`
88-
89-
Before the first crates.io release, `cargo package --workspace` is expected to fail for crates
90-
whose normal dependencies are not published yet. Package each crate after its normal dependencies
91-
are available in the registry.
92-
9378
## License
9479

9580
By contributing, you agree that your contributions will be licensed under the same license as the

0 commit comments

Comments
 (0)