繁體中文English简体中文

下載 Russd 核心

核心原始碼在 huhm-cc/russd-core。請用 git 取得原始碼並自行編譯,這是目前唯一支援的發行方式。

GitHub(原始碼)

倉庫:https://github.com/huhm-cc/russd-core

授權:GNU GPL v3。克隆後請閱讀 LICENSE。

`git clone` 會在目前目錄下建立 `russd-core/`。接下來的 `cargo` 必須在那個資料夾裡跑。若出現 `could not find Cargo.toml`,代表還在上一層(例如 `D:\test`),請先 `cd russd-core`。

git clone(PowerShell / bash)

git clone https://github.com/huhm-cc/russd-core
cd russd-core
cargo test --workspace
cargo run -- examples/hello.rsd
cargo build --release
.\target\release\russd.exe run examples/hello.rsd

Origin CLI

若你使用 Cursor Origin 上的副本,可用 Origin CLI 克隆。安裝後若找不到 origin,把 ~/.local/bin 加進 PATH。

Origin

curl -fsSL https://downloads.cursor.com/origin/install.sh | sh
origin auth login
origin repo clone lan-b3w0h/russd-core

驗證

編譯完成後請跑 cargo test --workspace,並執行 examples/hello.rsd。不要執行來路不明的 .rsd 腳本去讀寫家目錄以外的路徑——執行期已阻擋,但仍請只跑你信任的程式。