fix(rust-bindings): detect NIXL availability and fallback to stubs #1120
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Use built-in compiler types in wrapper.h instead of system headers (stdbool.h, stddef.h, stdint.h) to fix bindgen failures on systems where libclang cannot locate standard headers
Add check_nixl_available() to detect if NIXL library is installed by checking pkg-config and common library paths for libnixl.so
Fallback to stub API when NIXL is not found, with clear warning: "NIXL library not found, building with stub API"
This allows the Rust bindings to build successfully on systems without NIXL installed, enabling development and testing of Rust code that depends on nixl-sys without requiring the full NIXL installation.