Skip to content

Commit eec4794

Browse files
committed
chore: docs, CI, tooling, and dotli integration for the Rust core
Updates CLAUDE.md/README, CI workflows, Makefile, deny.toml, changesets, and linguist attributes for generated code, and bumps the dotli submodule to the host integration that consumes the WASM runtime.
1 parent 6554857 commit eec4794

19 files changed

Lines changed: 312 additions & 61 deletions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
"@parity/truapi": patch
2+
"@parity/truapi": minor
33
---
44

55
Rename the exported `Provider` transport type to `WireProvider` to make its role explicit. It is the low-level SCALE-wire-frame pipe (a `MessagePort` or iframe `postMessage` channel) that `createTransport` runs on. The `createIframeProvider` / `createMessagePortProvider` factories are unchanged; only the type name moves. Consumers importing `Provider` should import `WireProvider` instead.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
"@parity/truapi": patch
2+
"@parity/truapi": minor
33
---
44

55
Add the `@parity/truapi/sandbox` entry point: host-environment detection (`isCorrectEnvironment`), a lazily-built cached client (`getClientSync`, `null` outside a host container), and a `subscribeConnectionStatus` connected/disconnected listener. Browser-embedded hosts can bootstrap a client without assembling the transport by hand.

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rust/crates/truapi-codegen/tests/golden/* linguist-generated=true
2+
rust/crates/truapi-server/src/generated/* linguist-generated=true

.github/workflows/check-rfc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
if: github.event.pull_request.user.login != 'github-actions[bot]'
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
17+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
1818
with:
1919
fetch-depth: 0
2020
persist-credentials: false

.github/workflows/ci.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
pull_request:
55
push:
6-
branches: [main, release/v0.3.2]
6+
branches: [main, release/v0.3.0]
77
merge_group:
88
workflow_dispatch:
99

@@ -21,7 +21,7 @@ jobs:
2121
env:
2222
RUSTFLAGS: "-D warnings"
2323
steps:
24-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
24+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2525
with:
2626
persist-credentials: false
2727

@@ -52,7 +52,7 @@ jobs:
5252
name: Dependency licenses
5353
runs-on: ubuntu-latest
5454
steps:
55-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
55+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
5656
with:
5757
persist-credentials: false
5858

@@ -65,7 +65,7 @@ jobs:
6565
name: Codegen
6666
runs-on: ubuntu-latest
6767
steps:
68-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
68+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
6969
with:
7070
persist-credentials: false
7171

@@ -100,6 +100,7 @@ jobs:
100100
js/packages/truapi/src/playground/codegen
101101
js/packages/truapi/src/explorer/codegen
102102
js/packages/truapi/src/explorer/versions.ts
103+
js/packages/truapi-host-wasm/src/generated
103104
playground/test/generated
104105
105106
ts-client:
@@ -109,7 +110,7 @@ jobs:
109110
env:
110111
TRUAPI_REQUIRE_GENERATED: 1
111112
steps:
112-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
113+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
113114
with:
114115
persist-credentials: false
115116

@@ -142,7 +143,7 @@ jobs:
142143
env:
143144
TRUAPI_REQUIRE_GENERATED: 1
144145
steps:
145-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
146+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
146147
with:
147148
persist-credentials: false
148149

@@ -187,7 +188,7 @@ jobs:
187188
env:
188189
TRUAPI_REQUIRE_GENERATED: 1
189190
steps:
190-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
191+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
191192
with:
192193
persist-credentials: false
193194

@@ -227,7 +228,7 @@ jobs:
227228
env:
228229
TRUAPI_REQUIRE_GENERATED: 1
229230
steps:
230-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
231+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
231232
with:
232233
submodules: recursive
233234
persist-credentials: false

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
pages: write
2121
id-token: write
2222
steps:
23-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
23+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2424
with:
2525
persist-credentials: false
2626

.github/workflows/deploy-playground.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
deploy-playground:
2828
runs-on: ubuntu-latest
2929
steps:
30-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
30+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
3131
with:
3232
persist-credentials: false
3333

.github/workflows/diagnosis-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
if: github.event.label.name == 'diagnosis-report'
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
28+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2929
with:
3030
persist-credentials: false
3131

.github/workflows/number-rfc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
number-rfc:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
17+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
1818
with:
1919
fetch-depth: 0
2020
persist-credentials: false

.github/workflows/release-version-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: startsWith(github.event.pull_request.title, 'release:')
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
15+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
1616
with:
1717
persist-credentials: false
1818

0 commit comments

Comments
 (0)