add tengri_core; fix errors and warnings; unify deps

This commit is contained in:
🪞👃🪞 2025-05-10 15:25:09 +03:00
parent cb8fd26922
commit 8dda576c9d
18 changed files with 180 additions and 152 deletions

View file

@ -1,18 +1,16 @@
#![feature(associated_type_defaults)]
pub(crate) use std::error::Error;
pub(crate) type Perhaps<T> = Result<Option<T>, Box<dyn Error>>;
#[cfg(test)] pub(crate) type Usually<T> = Result<T, Box<dyn Error>>;
#[cfg(feature = "dsl")] pub(crate) use ::tengri_dsl::*;
#[cfg(feature = "dsl")] mod input_dsl;
#[cfg(feature = "dsl")] pub use self::input_dsl::*;
pub(crate) use tengri_core::*;
mod input_macros;
mod input_command; pub use self::input_command::*;
mod input_handle; pub use self::input_handle::*;
#[cfg(test)]
#[test] fn test_stub_input () -> Usually<()> {
#[cfg(feature = "dsl")] pub(crate) use ::tengri_dsl::*;
#[cfg(feature = "dsl")] mod input_dsl;
#[cfg(feature = "dsl")] pub use self::input_dsl::*;
#[cfg(test)] #[test] fn test_stub_input () -> Usually<()> {
use crate::*;
struct TestInput(bool);
enum TestEvent { Test1 }
@ -33,8 +31,7 @@ mod input_handle; pub use self::input_handle::*;
Ok(())
}
#[cfg(all(test, feature = "dsl"))]
#[test] fn test_dsl_keymap () -> Usually<()> {
#[cfg(all(test, feature = "dsl"))] #[test] fn test_dsl_keymap () -> Usually<()> {
let keymap = SourceIter::new("");
Ok(())
}