xed_sys/lib.rs
1//! Intel XED Bindings.
2//!
3//! For the real docs see: <https://intelxed.github.io>
4//!
5//! Note that [`xed_tables_init()`][0] must be called before using the library.
6//!
7//! # Features
8//!
9//! - `bindgen` - Don't use the bundled bindings files and instead regenerate
10//! rust bindings from scratch at compile time. You should never need to
11//! enable this manually but it will be enabled by other features.
12//!
13//! [0]: crate::xed_tables_init
14//! [1]: https://github.com/intelxed/xed/wiki/The-fast-encoder---enc2
15
16#![no_std]
17#![allow(
18 clippy::all,
19 rustdoc::all,
20 non_upper_case_globals,
21 non_camel_case_types,
22 non_snake_case
23)]
24
25extern crate core;
26
27#[cfg(not(feature = "bindgen"))]
28include!("bindings.rs");
29
30#[cfg(feature = "bindgen")]
31include!(concat!(env!("OUT_DIR"), "/xed.rs"));