Taken from here: https://gtk-rs.org/gtk4-rs/stable/latest/book/installation.html.
sudo dnf install gtk4-devel gcc
sudo apt install libgtk-4-dev build-essential
sudo pacman -S gtk4 base-devel
brew install gtk4 pkg-config
pkg-config --modversion gtk4