1#![no_std]
3#![cfg_attr(all(xila_static_pie, not(test)), feature(link_arg_attribute))]
4
5#[cfg(all(feature = "linked", feature = "link"))]
6compile_error!(
7 "xila-sys: the `linked` and `link` features are mutually exclusive. `linked` builds an \
8 application that is linked into the firmware and finds its startup data through the host; \
9 `link` builds a standalone static PIE image that the native loader loads. Enable only one \
10 of them, and note that Cargo unifies features across a dependency graph."
11);
12
13#[rustfmt::skip] mod bindings;
15pub use bindings::*;
16
17#[cfg(feature = "runtime")]
18pub mod runtime;
19
20#[cfg(feature = "runtime")]
21pub mod graphics;
22
23#[cfg(all(xila_static_pie, not(test)))]
24include!(concat!(env!("OUT_DIR"), "/link.rs"));