Rust GUI apps take a lot of time to build. Building gtk4?

I have installed relatively simple-looking GUI apps from AUR. They seem to be written in Rust. The problem is that they took a lot of time to install. In the details, I see messages like below. Does it have build all those on my computer? I mean, doesn’t Rust already have compiled GTK libraries? Why can’t the app use it, instead of compiling everything?

Compiling proc-macro2 v1.0.46
Compiling quote v1.0.21
Compiling unicode-ident v1.0.4
Compiling syn v1.0.101
Compiling serde_derive v1.0.145
Compiling serde v1.0.145
Compiling smallvec v1.10.0
Compiling heck v0.4.0
Compiling pkg-config v0.3.25
Compiling version-compare v0.1.0
Compiling libc v0.2.134
Compiling autocfg v1.1.0
Compiling memchr v2.5.0
Compiling thiserror v1.0.37
Compiling version_check v0.9.4
Compiling cfg-if v1.0.0
Compiling futures-core v0.3.24
Compiling pin-project-lite v0.2.9
Compiling once_cell v1.15.0
Compiling futures-io v0.3.24
Compiling futures-channel v0.3.24
Compiling futures-task v0.3.24
Compiling futures-util v0.3.24
Compiling futures-sink v0.3.24
Compiling log v0.4.17
Compiling pin-utils v0.1.0
Compiling anyhow v1.0.65
Compiling bitflags v1.3.2
Compiling ucd-trie v0.1.5
Compiling gio v0.15.12
Compiling cache-padded v1.2.0
Compiling parking_lot_core v0.9.3
Compiling parking v2.0.0
Compiling event-listener v2.5.3
Compiling waker-fn v1.1.0
Compiling fastrand v1.8.0
Compiling scopeguard v1.1.0
Compiling static_assertions v1.1.0
Compiling lazy_static v1.4.0
Compiling async-trait v0.1.57
Compiling byteorder v1.4.3
Compiling temp-dir v0.1.11
Compiling cc v1.0.73
Compiling regex-syntax v0.6.27
Compiling ppv-lite86 v0.2.16
Compiling sha1_smol v1.0.0
Compiling async-task v4.3.0
Compiling hex v0.4.3
Compiling minimal-lexical v0.2.1
Compiling mime v0.3.16
Compiling json v0.12.4
Compiling cfg-expr v0.10.3
Compiling slab v0.4.7
Compiling memoffset v0.6.5
Compiling lock_api v0.4.9
Compiling polling v2.3.0
Compiling async-io v1.9.0
Compiling proc-macro-error-attr v1.0.4
Compiling proc-macro-error v1.0.4
Compiling unicase v2.6.0
Compiling tracing-core v0.1.29
Compiling concurrent-queue v1.2.4
Compiling async-lock v2.5.0
Compiling sha1 v0.6.1
Compiling gettext-sys v0.21.3
Compiling aho-corasick v0.7.19
Compiling quick-xml v0.22.0
Compiling nom v7.1.1
Compiling futures-lite v1.12.0
Compiling async-channel v1.7.1
Compiling ordered-stream v0.0.1
Compiling getrandom v0.2.7
Compiling dirs-sys v0.3.7
Compiling socket2 v0.4.7
Compiling regex v1.6.0
Compiling nix v0.23.1
Compiling async-executor v1.4.1
Compiling rand_core v0.6.4
Compiling parking_lot v0.12.1
Compiling dirs v4.0.0
Compiling mime_guess v2.0.4
Compiling locale_config v0.3.0
Compiling rand_chacha v0.3.1
Compiling async-broadcast v0.4.1
Compiling gettext-rs v0.7.0
Compiling thiserror-impl v1.0.37
Compiling futures-macro v0.3.24
Compiling enumflags2_derive v0.7.4
Compiling tracing-attributes v0.1.22
Compiling serde_repr v0.1.9
Compiling async-recursion v0.3.2
Compiling derivative v2.2.0
Compiling rand v0.8.5
Compiling tracing v0.1.36
Compiling pest v2.4.0
Compiling semver-parser v0.10.2
Compiling futures-executor v0.3.24
Compiling semver v0.11.0
Compiling futures v0.3.24
Compiling toml v0.5.9
Compiling enumflags2 v0.7.5
Compiling rustc_version v0.3.3
Compiling field-offset v0.3.4
Compiling system-deps v6.0.2
Compiling proc-macro-crate v1.2.1
Compiling glib-macros v0.15.11
Compiling zvariant_derive v3.7.1
Compiling gtk4-macros v0.4.8
Compiling zbus_macros v2.3.2
Compiling glib-sys v0.15.10
Compiling gobject-sys v0.15.10
Compiling gio-sys v0.15.10
Compiling gdk-pixbuf-sys v0.15.10
Compiling pango-sys v0.15.10
Compiling cairo-sys-rs v0.15.1
Compiling gdk4-sys v0.4.8
Compiling graphene-sys v0.15.10
Compiling gsk4-sys v0.4.8
Compiling gtk4-sys v0.4.8
Compiling gdk4-x11-sys v0.4.8
Compiling gdk4-wayland-sys v0.4.8
Compiling libadwaita-sys v0.2.0-alpha.3
Compiling zvariant v3.7.1
Compiling glib v0.15.12
Compiling zbus_names v2.2.0
Compiling zbus v2.3.2
Compiling pango v0.15.10
Compiling cairo-rs v0.15.12
Compiling graphene-rs v0.15.1
Compiling gdk-pixbuf v0.15.11
Compiling gdk4 v0.4.8
Compiling gsk4 v0.4.8
Compiling gdk4-x11 v0.4.8
Compiling gdk4-wayland v0.4.8
Compiling gtk4 v0.4.8
Compiling ashpd v0.3.2
Compiling libadwaita v0.2.0-alpha.3

It can take some time to build Rust applications. No, the crates are not precompiled.

Please edit your post to use proper formatting.

1 Like