dear_imnodes_sys/lib.rs
1//! Low-level FFI bindings for ImNodes via the cimnodes C API
2//!
3//! This crate provides raw, unsafe bindings to the ImNodes library using the
4//! cimnodes C API, designed to work together with `dear-imgui-sys` (which uses
5//! cimgui for Dear ImGui). This avoids C++ ABI issues and keeps builds
6//! consistent across platforms and toolchains.
7//!
8//! This crate is typically not used directly. Prefer the high-level
9//! `dear-imnodes` crate for safe bindings.
10
11#![allow(non_upper_case_globals)]
12#![allow(non_camel_case_types)]
13#![allow(non_snake_case)]
14#![allow(dead_code)]
15#![allow(unnecessary_transmutes)]
16#![allow(unsafe_op_in_unsafe_fn)]
17#![allow(clippy::all)]
18// Bindgen can derive Eq/Hash for structs with function pointers; silence related warnings.
19#![allow(unpredictable_function_pointer_comparisons)]
20
21// Re-export ImGui types from dear-imgui-sys to ensure compatibility
22pub use dear_imgui_sys::{ImDrawList, ImGuiContext, ImVec2, ImVec4};
23
24// Include the generated bindings from bindgen
25include!(concat!(env!("OUT_DIR"), "/bindings.rs"));