diff --git a/Cargo.toml b/Cargo.toml index 0f6f509..197f25c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prongs" -version = "1.0.1" +version = "1.0.2" authors = ["Ales Katona "] edition = "2018" readme = "README.md" diff --git a/src/lib.rs b/src/lib.rs index 907d648..33b8a05 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,10 +1,8 @@ use serde::{Deserialize, Serialize}; use std::collections::HashMap; -use crate::types::{InputCause, InputTypeFlags, ProcessingResult}; pub mod types; - // error out specifically if no backend is chosen #[cfg(not(any(feature="backend_piston", feature="backend_gilrs")))] compile_error!("No backend selected, use features= in Cargo.toml or --features when building directly."); @@ -14,6 +12,12 @@ pub mod backend_piston; #[cfg(feature="backend_gilrs")] pub mod backend_gilrs; +pub use crate::types::{InputCause, InputTypeFlags, ProcessingResult, ButtonState}; +#[cfg(feature="backend_piston")] +pub use backend_piston::SchemaPiston; +#[cfg(feature="backend_gilrs")] +pub use backend_gilrs::SchemaGilrs; + #[cfg(test)] mod tests;