How to install
By Cargo (Rust package manager):
cargo install erg
By Source (Need to install the Rust toolchain):
git clone https://github.com/erg-lang/erg.git cd erg cargo build --release
And Erg supports building with Nix.
By enabling the
--features flag, you can customize the installation and build.
- You can change the language of the error message by using
--features japanese --features simplified_chinese --features traditional_chinese
- Install and build ELS (Erg Language Server)
- Debugging mode (for contributors)
- Rich REPL experience (cursor movement, pasting, history, etc.)
- Makes the display look better
- Enable all features (exclude features for developers)
- See here for more flags.