Skip to content

Rust port: migration status

Read this as a dated snapshot. The numbers are generated by scripts/rust-port-status.mjs in this repository from two sources, and are refreshed as porting pull requests merge. The snapshot date is below. Architecture and the rules behind the columns are in The four gateways and the Rust architecture.

Snapshot: 2026-11-29. Sources: routing/routes.json on main of nyuchi/nyuchi-api, and the route parity audit (docs/parity/audit.md) on the feat/admin-port branch of nyuchi/nyuchi-servers-api. The audit is not on that repository’s main yet.

Nyuchi API: which implementation answers each route

Section titled “Nyuchi API: which implementation answers each route”

port is how far the Rust code has got (not_started, built, proven). mode is who answers in production (python, shadow, rust). Only the owner changes a route’s mode away from python.

Tranche Routes Port not started Port built Port proven Mode python Mode shadow Mode rust
1 Hot public reads 21 1 0 20 1 20 0
2 Other reads 164 157 7 0 164 0 0
3 Writes 151 151 0 0 151 0 0
4 Auth, identity, keys, trust, money 186 186 0 0 186 0 0
Total 522 495 7 20 502 20 0

522 routes in 75 router modules, counted from routing/routes.json.

What this says in words: no route is answered by Rust. Twenty tranche 1 reads (places, news and events) are shadow: Python answers the client and a sample of the same GET is mirrored to Rust and compared. Seven tranche 2 reads are built in Rust and not yet proven. Everything else, including every write and every route that issues or checks identity, keys, tokens or money, is not started.

Nyuchi Servers API: how much of the 522 it serves

Section titled “Nyuchi Servers API: how much of the 522 it serves”

The audit counts a route as ported only on an exact method and path match against the Servers API’s own OpenAPI document (528 method and path pairs, HEAD left out). It is a structural audit: it says nothing about behaviour, which each owner’s parity tests cover. A route served at a different path on purpose shows as unported until its path is recorded in the owner’s docs/parity/*.md.

Six of the 528 pairs are served at the same method and path. The rest are not ported.

Owner Pairs Ported Unported
admin-console 3 0 3
admin-slices 60 3 57
circles-events-community 119 0 119
identity-auth-keys-orgs 66 0 66
places-news-content 48 0 48
travel-commerce-pay-verification 112 0 112
unowned 120 3 117

The Servers API’s own namespaces (Shamwari key check and usage metering, ground reads and guardrails, the sink, history export and import, weather, and maps) are internal routes that are not in the Nyuchi API’s table, so they are outside these counts. They are built and tested; none is deployed.

  • Nothing here measures speed, latency or load. No parity claim is made beyond what a route’s proof shows.
  • built and proven are claims about code in the repositories. A route is only live in Rust when its mode is rust, and none is.
  • Deploys, Worker routes, DNS and origins are the owner’s and are not part of the status.

A porting pull request that changes routing/routes.json or the parity audit is followed by a refresh here:

Terminal window
node scripts/rust-port-status.mjs \
--routes ../nyuchi-api/routing/routes.json \
--audit ../nyuchi-servers-api/docs/parity/audit.md \
--write

Update the snapshot date and the sources line by hand, then run the site build. Add a line to the CHANGELOG only when the page’s structure changes, not for a number change.