Rewrite your app in Rust, piece by piece, checked against the original at every step. Works with TypeScript, JavaScript, Python, Go, Ruby, Java, C, PHP, C#, Kotlin, PowerShell and Swift.
Rust agent-skillsclaude-codeclicode-migrationcodexffigolangjavajavascriptmcpmigrationnapiperformanceportingpyo3pythonrewriterubyrusttypescript
docs(status): clarify that package CLI front doors cover Node CLIs only (#1472) (#1494)
isodeva9055d3ab69a
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3f76c077..03b26ace 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,10 @@## Unreleased+- `docs/STATUS.md` and its Tamil copy no longer list a CLI front door under Python's `package`+ cell: `package` lays out npm packages only for the front door of a Node CLI (run as+ `node node_modules/<package>/<file>`) and refuses any other, such as `python3 tool.py`. The test+ of that refusal now checks its message (#1472, #1494 by @iyazici00).- `analyze` maps `laravel/framework` to Laravel Rust (`laravel-rust`, beta), with fit `partial`.Units that import `Illuminate\...` are no longer Blocked with "`laravel/framework` has no Rustequivalent". `analyze --whole-app` on an app whose `composer.json` requires `laravel/framework`diff --git a/docs/STATUS.md b/docs/STATUS.mdindex 57ef4d42..87d9a395 100644--- a/docs/STATUS.md+++ b/docs/STATUS.md@@ -96,8 +96,8 @@ prints what to use instead.| Language | `analyze` | whole app | unit bridge | `record`/`diff` | `shadow` | `enable` | `profile` | `package` || --- | --- | --- | --- | --- | --- | --- | --- | --- |-| TypeScript/JavaScript | yes | yes | napi-rs, wasm-bindgen | yes | yes | yes (napi, wasm) | yes (`node` on 22.6+; `npx` and `npm run` where Node allows `--cpu-prof` in `NODE_OPTIONS`, as 24 does) | napi, wasm, CLI front door |-| Python | yes | yes | PyO3 | yes | yes (module) | yes (PyO3) | yes | PyO3, CLI front door |+| TypeScript/JavaScript | yes | yes | napi-rs, wasm-bindgen | yes | yes | yes (napi, wasm) | yes (`node` on 22.6+; `npx` and `npm run` where Node allows `--cpu-prof` in `NODE_OPTIONS`, as 24 does) | napi, wasm, CLI front door (Node CLIs) |+| Python | yes | yes | PyO3 | yes | yes (module) | yes (PyO3) | yes | PyO3 || C | yes | yes | `extern "C"` drop-in | yes | yes (`CAbi` file) | no | no (`perf record -g`) | no || Go | yes | yes | dispatcher + generated driver | yes | yes | no | yes | no || Ruby | yes | yes | magnus, FFI | yes | yes | no | yes | no |@@ -113,8 +113,9 @@ prints what to use instead.| Assembly | no | yes (any program: `app record`/`app replay`) | no | no | no | no | no | no |A `no` in one column is a scope decision, not a gap in the row: `package` covers napi-rs,-wasm-bindgen and PyO3 crates plus CLI front doors, and says so when handed a `c-abi` crate; `enable`-switches TS/JS, Python and PowerShell ports in place and points everything else at `shadow`.+wasm-bindgen and PyO3 crates plus CLI front doors of Node CLIs only, and says so when handed a+`c-abi` crate; `enable` switches TS/JS, Python and PowerShell ports in place and points everything+else at `shadow`.Where the cells come from: entry points in `whole_app.rs`, the unit-bridge guard in `lang/mod.rs`,the per-shape branches in `shadow.rs`, `enable.rs`'s `is_supported`, `profile.rs`'s alternatives fordiff --git a/src/package/cli.rs b/src/package/cli.rsindex 280d00e5..14da6337 100644--- a/src/package/cli.rs+++ b/src/package/cli.rs@@ -864,7 +864,12 @@ mod tests {"const RUN: &[&str] = &[\"python3\", \"tool.py\"];\n",).unwrap();- assert!(original(&dir, Some("[email protected]")).is_err());+ let err = original(&dir, Some("[email protected]"))+ .err()+ .expect("non-Node CLI front door should be refused")+ .to_string();+ assert!(err.contains("Node CLIs"), "{err}");+ assert!(err.contains("this one runs `python3 tool.py`"), "{err}");let _ = std::fs::remove_dir_all(&dir);}diff --git a/website/pages/ta/docs/project/status.md b/website/pages/ta/docs/project/status.mdindex a400adae..04d93324 100644--- a/website/pages/ta/docs/project/status.md+++ b/website/pages/ta/docs/project/status.md@@ -77,8 +77,8 @@ description: "இன்னைக்கு rust-anything-ல என்னென| மொழி | `analyze` | whole app | unit bridge | `record`/`diff` | `shadow` | `enable` | `profile` | `package` || --- | --- | --- | --- | --- | --- | --- | --- | --- |-| TypeScript/JavaScript | yes | yes | napi-rs, wasm-bindgen | yes | yes | yes (napi, wasm) | yes (22.6+ல `node`; Node `NODE_OPTIONS`-ல `--cpu-prof`-ஐ அனுமதிக்குற இடத்துல `npx` மற்றும் `npm run`, 24 மாதிரி) | napi, wasm, CLI front door |-| Python | yes | yes | PyO3 | yes | yes (module) | yes (PyO3) | yes | PyO3, CLI front door |+| TypeScript/JavaScript | yes | yes | napi-rs, wasm-bindgen | yes | yes | yes (napi, wasm) | yes (22.6+ல `node`; Node `NODE_OPTIONS`-ல `--cpu-prof`-ஐ அனுமதிக்குற இடத்துல `npx` மற்றும் `npm run`, 24 மாதிரி) | napi, wasm, CLI front door (Node CLIs) |+| Python | yes | yes | PyO3 | yes | yes (module) | yes (PyO3) | yes | PyO3 || C | yes | yes | `extern "C"` drop-in | yes | yes (`CAbi` file) | no | no (`perf record -g`) | no || Go | yes | yes | dispatcher + generated driver | yes | yes | no | yes | no || Ruby | yes | yes | magnus, FFI | yes | yes | no | yes | no |@@ -93,7 +93,7 @@ description: "இன்னைக்கு rust-anything-ல என்னென| CUDA | no | yes (எந்த program-உம்: `app record`/`app replay`) | no | no | no | no | no | no || Assembly | no | yes (எந்த program-உம்: `app record`/`app replay`) | no | no | no | no | no | no |-ஒரு column-ல `no` இருக்குறது scope முடிவு, அந்த row-ல இருக்குற குறையல்ல: `package` napi-rs, wasm-bindgen மற்றும் PyO3 crates-ஐயும் CLI front doors-ஐயும் cover பண்ணுது, ஒரு `c-abi` crate கொடுத்தா அதையே சொல்லும்; `enable` TS/JS, Python மற்றும் PowerShell ports-ஐ இடத்திலேயே மாத்தி, மத்த எல்லாத்தையும் `shadow`-வைக் காட்டும்.+ஒரு column-ல `no` இருக்குறது scope முடிவு, அந்த row-ல இருக்குற குறையல்ல: `package` napi-rs, wasm-bindgen மற்றும் PyO3 crates-ஐயும், Node CLIs-க்கான CLI front doors-ஐயும் மட்டுமே cover பண்ணுது, ஒரு `c-abi` crate கொடுத்தா அதையே சொல்லும்; `enable` TS/JS, Python மற்றும் PowerShell ports-ஐ இடத்திலேயே மாத்தி, மத்த எல்லாத்தையும் `shadow`-வைக் காட்டும்.இந்த cells எங்க இருந்து வருது: `whole_app.rs`-ல இருக்குற entry points, `lang/mod.rs`-ல இருக்குற unit-bridge guard, `shadow.rs`-ல இருக்குற per-shape branches, `enable.rs`-ஓட `is_supported`, C, Kotlin, PHP, C#, PowerShell மற்றும் Swift-க்கான `profile.rs`-ஓட மாற்று வழிகள், மற்றும் `package.rs`-ஓட layout match.