make inner types pub use for easier access

master
Ales Katona 6 years ago
parent 0628eec72b
commit dec187c67b
Signed by: almindor
GPG Key ID: 08C459E2D8ABB7E8

@ -1,6 +1,6 @@
[package]
name = "prongs"
version = "1.0.1"
version = "1.0.2"
authors = ["Ales Katona <almindor@gmail.com>"]
edition = "2018"
readme = "README.md"

@ -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=<backend> in Cargo.toml or --features <backend> 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;

Loading…
Cancel
Save