Registry / devops / scion-c2rust

scion-c2rust

JSON →
library1.0.0jsnpmunverified

Scion is an AI-powered migration toolkit for converting C/C++ codebases to idiomatic Rust, leveraging Claude Code or OpenCode as the underlying AI harness. Version 1.0.0 requires Node.js ≥18 and a Rust toolchain. It automates the full migration pipeline: source analysis, API mapping, task decomposition, implementation, and review. Key differentiators include support for multiple AI harnesses, a dashboard for progress monitoring at localhost:3456, and a self-healing continue command. Released as a community tool with active development as of 2026-04-06.

npm install scion-c2rust
INSTALL
IMPORT
SIG · SCION-C2RUST
S
scion-c2rust
devopsjavascriptv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Clone the Scion toolkit, run the installer to set up skills, commands, and agents, then start an interactive migration session with /scion:init.

git clone https://github.com/ZhifeiDou/Scion-HW.git cd /your/migration-project chmod +x /path/to/Scion-HW/install.sh /path/to/Scion-HW/install.sh claude /scion:init --source /path/to/c-project --target /path/to/rust-crate
Debug
Known issues
gotchaOpenCode v1 does not support PreToolUse/PostToolUse hooks, so hooks are skipped; manual refresh of dashboard may be needed.
fix
Use Claude Code for full hook support, or manually run 'node scripts/build-dashboard.js' to refresh the dashboard.
affects: >=1.0.0
breakingInstaller overwrites existing files in .claude/commands/ and .claude/agents/ without prompt on name collision.
fix
Backup your existing .claude directory before running install.sh.
affects: >=1.0.0
gotchaProject must be in a directory where you have already run 'claude init' or 'opencode init' before using /scion:init.
fix
Run the AI harness initialization command first: 'claude init' or 'opencode init'.
affects: >=1.0.0
deprecatedManual copying of files (old install method) is deprecated; always use the install.sh or install.ps1 scripts.
fix
Use the provided installer scripts instead of manual file placement.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Command failed: claude --init Command 'claude' not found
Claude Code CLI is not installed or not in PATH.
fix
Install Claude Code CLI from docs.anthropic.com/en/docs/claude-code.
Error: rustup not found. Please install Rust toolchain.
Rust toolchain not installed.
fix
Install via https://rustup.rs and ensure 'rustup', 'cargo', and 'rust-analyzer' are in PATH.
Error: Missing source argument. Usage: /scion:init --source <path> --target <path>
Required arguments --source and/or --target not provided to /scion:init.
fix
Provide both --source (C project) and --target (Rust crate) paths.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
claude-codeoptionalOne of the supported AI coding harnesses required for migration operations.
opencodeoptionalAlternative AI coding harness; hooks limited in OpenCode v1.
rustuprequiredRequired for compiling Rust code and running static analysis tools.
Agent activity
7 hits · last 30 days
node
6
Resources
scion-c2rust — npm install scion-c2rust · libregistry