Building is and installation is done via Cargo from source.
Supported Operating Systems:
- Linux
- Windows 10/11
- MacOS
LogicRs can be obtained by simply cloning this repository or dowloading the .zip
file on GitHub
$ git clone https://github.com/spydr06/logicrs.git --recursive
Prebuilt Binaries can be found on the releases
section of this repository.
Libraries:
gtk4
libcairo
libadwaita
On UNIX, these dependencies mostly will be taken care of by Cargo and your distribution's package manager. On Windows, you will need to install an unix-like environment like MSYS64/MINGW64 and take care of the dependencies yourself.
Linux
For rpm-based distributions (Fedora, Red Hat, etc.):
$ sudo dnf install gtk4-devel cairo-devel libadwaita-devel
For Ubuntu/Debian-based distributions (requires Ubuntu 23.04 or newer):
$ sudo apt install build-essential libadwaita-1-dev libcairo2-dev libgtk-4-dev
For Ubuntu/Debian-based distributions that do not ship with libadwaita
version 1.2
yet (22.10 and below):
$ sudo apt install build-essential git libcairo2-dev libgtk-4-dev meson valac sassc gettext
$ git clone https://gitlab.gnome.org/GNOME/libadwaita.git -b libadwaita-1-2 --depth=1
$ cd libadwaita
$ meson . _build -Dgtk_doc=false -Dtests=false -Dexamples=false
then, execute with root permission:
# ninja -C _build install
MacOS
On MacOS, use brew to install these dependencies.
$ brew install cairo
$ brew install gtk4
$ brew install libadwaita
Building LogicRs is very easy by just running one command in the main directory of this repository:
$ cargo build
To run the compiled program, use cargo run
.
Global installation can be done using this command:
$ cargo install --path /path/to/this/repository
Or, if you don't want to clone this repository:
$ cargo install --git https://github.com/Spydr06/logicrs