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
Clone the repository:
bashgit clone https://github.com/muxkin/Texts0.git cd Texts0Set Rust to Nightly:
Texts0 uses features only available in the nightly compiler.
bashrustup override set nightlyBuild:
Compile the project in release mode for optimal performance.
bashcargo build --releaseRun:
After building, you can run the editor directly:
bashcargo run --releaseThe binary will be located at
target/release/texts0(ortexts0.exeon 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.