Skip to main content

eos_sys/
lib.rs

1#![allow(non_camel_case_types)]
2#![allow(non_snake_case)]
3#![allow(non_upper_case_globals)]
4#![allow(clippy::all)]
5
6//! Raw FFI bindings for the Epic Online Services (EOS) C SDK.
7//!
8//! This crate intentionally ships **pre-generated bindings** (checked into source) so
9//! downstream users do **not** need LLVM/clang installed.
10//!
11//! Provide the EOS SDK via the `EOS_SDK_DIR` environment variable.
12
13pub use libc::{c_char, c_double, c_float, c_int, c_longlong, c_short, c_uchar, c_uint, c_ulonglong, c_ushort, size_t};
14
15// By default we ship pre-generated bindings so downstream users don't need LLVM/clang.
16// If you need to regenerate: build with `--features eos-sys/bindgen`.
17#[cfg(feature = "prebuilt-bindings")]
18mod bindings;
19#[cfg(feature = "prebuilt-bindings")]
20pub use bindings::*;
21
22#[cfg(all(feature = "bindgen", not(feature = "prebuilt-bindings")))]
23include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
24