arfur_wpilib/lib.rs
1pub mod error;
2pub mod robot;
3pub mod util;
4
5pub mod prelude {
6 //! Common re-exports.
7
8 pub use crate::error::{Error, Result};
9 pub use crate::robot::{Robot, RobotBuilder};
10}
11
12#[allow(
13 rustdoc::broken_intra_doc_links,
14 rustdoc::bare_urls,
15 rustdoc::invalid_rust_codeblocks
16)]
17pub mod ffi {
18 //! A raw interface to any WPILib function.
19 //!
20 //! All of these functions should be considered unsafe and difficult to use.
21
22 #[cfg(feature = "bindgen")]
23 include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
24
25 #[cfg(not(feature = "bindgen"))]
26 include!("./bindings.rs");
27}