Skip to content

Building from Source

If you want to contribute to Texts0 or run the latest development version, you can build the editor from source.

Prerequisites

  • Rust: You need to have Rust installed. Texts0 requires the nightly toolchain.
  • Git: To clone the repository.

Build Steps

  1. Clone the repository:

    bash
    git clone https://github.com/muxkin/Texts0.git
    cd Texts0
  2. Set Rust to Nightly:

    Texts0 uses features only available in the nightly compiler.

    bash
    rustup override set nightly
  3. Build:

    Compile the project in release mode for optimal performance.

    bash
    cargo build --release
  4. Run:

    After building, you can run the editor directly:

    bash
    cargo run --release

    The binary will be located at target/release/texts0 (or texts0.exe on Windows).

Project Structure

Here's a quick overview of the codebase organization:

  • src/: Main application source code.
    • main.rs: Entry point.
    • gui_main.rs: Window setup and event loop.
    • ui/: GPUI-based user interface components.
    • plugin_marketplace.rs: Logic for the plugin system and marketplace API.
  • crates/: Workspace crates for plugins.
    • texts0-plugin-api/: C FFI definitions for the plugin ABI.
    • texts0-lang-*/: Language support plugins (Rust, Python, Go, C, etc.).
  • marketplace/: Backend code for the plugin marketplace (FastAPI).
  • docs/: Documentation files.
  • www/: This documentation website.

Released under the MIT License.