[![Our chat room](https://img.shields.io/matrix/fractal-gtk:matrix.org?color=blue&label=%23fractal%3Agnome.org&logo=matrix)](https://matrix.to/#/#fractal:gnome.org) [![Our Gitlab project](https://img.shields.io/badge/gitlab.gnome.org%2F-GNOME%2FFractal-green?logo=gitlab)](https://gitlab.gnome.org/GNOME/fractal/) [![Our documentation](https://img.shields.io/badge/%F0%9F%95%AE-Docs-B7410E?logo=rust)](https://gnome.pages.gitlab.gnome.org/fractal/) # Fractal Fractal is a Matrix messaging app for GNOME written in Rust. Its interface is optimized for collaboration in large groups, such as free software projects. ![screenshot](https://gitlab.gnome.org/GNOME/fractal/raw/main/screenshots/fractal.png) ## Work in Progress We already talked several times in the past about rewriting the application, but for different reasons we didn't do it. Now that the [matrix-rust-sdk](https://github.com/matrix-org/matrix-rust-sdk) exists, which does a lot of the heavy lifting for us, we have a good starting point to build Fractal without the need to implement every single feature from the Matrix API. Finally with the release of GTK4 we would need to rework most of Fractal's code anyways. Therefore, it just makes sense to start over and build Fractal with all the features (e.g end-to-end encryption) we have in mind. A year ago we started working on rewriting [Fractal](https://gitlab.gnome.org/GNOME/fractal/) from scratch using [GTK4](https://www.gtk.org/) and the [matrix-rust-sdk](https://github.com/matrix-org/matrix-rust-sdk). This effort was called Fractal Next. Fractal Next now replaced our previous codebase, and has become the new nightly version. It isn't yet ready for a release and you can follow along our progress towards it by looking at the [Fractal v5 (Fractal-next)](https://gitlab.gnome.org/GNOME/fractal/-/milestones/18) milestone. ## Installation instructions ### Stable version The current stable version is 4.4.0 (released August 2020). Flatpak is the recommended installation method. Until our next iteration is ready, you can get the official Fractal Flatpak on Flathub. ### Development version If you want to try Fractal Next without building it yourself, it is available as a nightly Flatpak in the gnome-nightly repo. ```sh # Add Flathub-beta and the gnome-nightly repo flatpak remote-add --user --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo flatpak remote-add --user --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo # Install the nightly build flatpak install --user gnome-nightly org.gnome.Fractal.Devel ``` ## Build Instructions ### Minimum Rust version To build Fractal, Rust 1.60 is required. For development, you'll need to install the nightly toolchain to be able to run our pre-commit hook that validates the formatting and lints the Rust code. ### Flatpak Flatpak is the recommended way of building and installing Fractal. First you need to make sure you have the GNOME SDK and Rust toolchain installed. ```sh # Add Flathub-beta and the gnome-nightly repo flatpak remote-add --user --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo flatpak remote-add --user --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo # Install the gnome-nightly Sdk and Platform runtime flatpak install --user gnome-nightly org.gnome.Sdk//master org.gnome.Platform//master # Install the required rust-stable extension from Flathub-beta flatpak install --user flathub-beta org.freedesktop.Sdk.Extension.rust-stable//22.08beta # Install the required llvm extension from Flathub-beta flatpak install --user flathub-beta org.freedesktop.Sdk.Extension.llvm14//22.08beta ```
ℹ️ The instructions below will build the same binary as the one available on the GNOME nightly repo. This is an optimised build so it can take a few minutes. If you're building Fractal for development, use the |