Commit 2135473
committed
feat(core): port Rust core runtime, codegen, and WASM host
Introduce the canonical Rust protocol crates (truapi, truapi-platform,
truapi-server) plus the rustdoc-JSON codegen (truapi-codegen) that emits
the Rust dispatcher/wire table and the @parity/truapi TypeScript client.
truapi-server ships as a WASM host runtime consumed by
@parity/truapi-host-wasm, and the playground talks to it over a MessagePort
handshake.
This is the smallest set that runs the dotli playground diagnosis e2e:
the dotli submodule, Makefile (wasm/dev/e2e/codegen targets), codegen
script, deny.toml licence exceptions, ci.yml dotli-e2e job, and the
host-packages.yml WASM bundle checks are included.1 parent eee5380 commit 2135473
128 files changed
Lines changed: 38120 additions & 501 deletions
File tree
- .github/workflows
- hosts
- js/packages
- truapi-host-wasm
- scripts
- src
- electron
- web
- test
- truapi-host
- test
- truapi
- src
- test
- playground
- src
- components
- lib
- tests/e2e
- rust/crates
- truapi-codegen
- src
- rust
- ts
- tests
- golden
- truapi-platform
- src
- tests
- truapi-server
- src
- generated
- host_logic
- runtime
- smoldot_provider
- specs
- tests
- common
- snapshots
- truapi/src
- api
- v01
- versioned
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
92 | 103 | | |
93 | 104 | | |
94 | 105 | | |
| |||
101 | 112 | | |
102 | 113 | | |
103 | 114 | | |
| 115 | + | |
104 | 116 | | |
105 | 117 | | |
106 | 118 | | |
| |||
219 | 231 | | |
220 | 232 | | |
221 | 233 | | |
222 | | - | |
223 | | - | |
224 | | - | |
| 234 | + | |
225 | 235 | | |
226 | 236 | | |
227 | | - | |
| 237 | + | |
228 | 238 | | |
229 | 239 | | |
| 240 | + | |
230 | 241 | | |
231 | 242 | | |
232 | 243 | | |
233 | | - | |
234 | 244 | | |
235 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
236 | 262 | | |
| 263 | + | |
237 | 264 | | |
238 | 265 | | |
239 | 266 | | |
240 | 267 | | |
| 268 | + | |
241 | 269 | | |
242 | 270 | | |
243 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
244 | 277 | | |
| 278 | + | |
245 | 279 | | |
246 | 280 | | |
247 | 281 | | |
248 | 282 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
253 | 286 | | |
254 | 287 | | |
| 288 | + | |
255 | 289 | | |
256 | 290 | | |
257 | 291 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | 292 | | |
263 | | - | |
264 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
265 | 296 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
272 | 309 | | |
273 | 310 | | |
274 | | - | |
275 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
276 | 314 | | |
277 | 315 | | |
278 | 316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| |||
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
0 commit comments