car go build и car go run в панике и неудачной компиляции с этой ошибкой есть решение для этого:
iot_dev@iotdev:~/Documents/Rust_prac/ggez$ cargo build
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Compiling alsa-sys v0.1.2
Compiling rand_core v0.5.1
Compiling stb_truetype v0.2.8
Compiling msdos_time v0.1.6
error: failed to run custom build command for `alsa-sys v0.1.2`
Caused by:
process didn't exit successfully: `/home/iot_dev/Documents/Rust_prac/ggez/target/debug/build/alsa-sys-914f4dabea09acad/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "Failed to run `\"pkg-config\" \"--libs\" \"--cflags\" \"alsa\"`: No such file or directory (os error 2)"', /home/iot_dev/.cargo/registry/src/github.com-1ecc6299db9ec823/alsa-sys-0.1.2/build.rs:4:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed