Installation
The repository currently builds the FScript CLI and runtime tooling from source with Cargo.
Prerequisites
You need:
- a recent stable Rust toolchain
- Cargo
- a system linker suitable for Rust native builds
FScript is implemented as a Rust workspace, so the fastest way to get started is to build and run the CLI directly from the repo.
Clone and build
git clone <repo-url>cd fscriptcargo buildThat builds the workspace and produces the fscript CLI.
Run the CLI without installing globally
cargo run -p fscript-cli -- --helpCurrent top-level commands:
fscript checkfscript runfscript compilefscript version
Useful first commands
Validate a file:
cargo run -p fscript-cli -- check examples/hello.fsRun a file:
cargo run -p fscript-cli -- run examples/hello.fsCompile a file:
cargo run -p fscript-cli -- compile examples/hello.fs ./helloCurrent status note
run currently has broader feature coverage than the real native part of compile. The compiler can still emit executables for a broader subset through the embedded-runner bridge, but the fully native backend is intentionally documented as narrower for now.
If you are coming from Node.js
There is no npm install -g fscript flow documented yet because the toolchain is still Draft 0.1 and actively evolving. Treat the repo itself as the source of truth and build it with Cargo.
Next step
Continue to Your First Program once the CLI is building locally.