--- stderr /usr/include/limits.h:124:16: fatal error: 'limits.h' file not found
thread 'main' (380573) panicked at txproto-rs/txproto-sys/build.rs:66:40: Unable to generate bindings: ClangDiagnostic("/usr/include/limits.h:124:16: fatal error: 'limits.h' file not found\n") note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... ```
How to solve this issue?
May 24, 2:40pm
The error occurs because the C development headers (specifically limits.h) are missing on your system. This is required by the txproto-sys crate's build script (which uses bindgen to generate Rust bindings from C headers).
Solution
Install the essential C development toolchain and headers:
build-essential provides gcc, make, and other build tools
libc6-dev provides the standard C library headers (including /usr/include/limits.h)
The txproto-sys build script uses bindgen which requires these headers to generate Rust FFI bindings
If you still encounter issues, ensure your system is up-to-date (sudo apt full-upgrade) and consider installing additional development packages like libc-dev or linux-libc-dev.
May 24, 2:40pm
This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.