From Source
Build OTTY from source when you want to test the latest code or contribute to the project.
Prerequisites
Section titled “Prerequisites”Install the following tools before building OTTY:
- Git
- Rust through
rustup - A native build toolchain for your operating system, such as Xcode Command Line Tools on macOS or
a C/C++ compiler,
make,perl, andpkg-configon Linux
The repository pins Rust 1.96.0 in rust-toolchain.toml. Rustup selects and installs that toolchain
when you run a Cargo command in the repository.
Build OTTY
Section titled “Build OTTY”Clone the repository and create an optimized build:
git clone https://github.com/otty-shell/otty.gitcd ottycargo build --release -p ottyThe executable is written to target/release/otty.
Run OTTY
Section titled “Run OTTY”Run the compiled executable directly:
./target/release/ottyFor development, build and run OTTY in one command:
cargo run -p otty