Skip to main content

llama_cpp_bindings_sys/
lib.rs

1#![cfg_attr(
2    not(test),
3    deny(clippy::unwrap_used, clippy::expect_used, clippy::panic)
4)]
5#![expect(
6    non_camel_case_types,
7    reason = "bindgen emits C struct and enum names verbatim and they don't follow Rust naming"
8)]
9#![expect(
10    unpredictable_function_pointer_comparisons,
11    reason = "bindgen-generated FFI function pointers are opaque and the lint cannot reason about them"
12)]
13#![expect(
14    clippy::derive_partial_eq_without_eq,
15    clippy::doc_markdown,
16    clippy::pub_underscore_fields,
17    clippy::use_self,
18    reason = "bindgen writes this file from the llama.cpp headers; its shape is not ours to change"
19)]
20
21include!(concat!(env!("OUT_DIR"), "/bindings.rs"));