> Have you tried using a more modern tool like Meson? It is more comparable to Cargo.
Not comparable at all.
The difference is Cargo is the official standard package manager of the Rust language. Meson is one among the sea of incompatible build systems for the C language.