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

@ -4,15 +4,16 @@ description = "UI metaframework, output layer."
version = { workspace = true }
edition = { workspace = true }
[dependencies]
tengri_dsl = { optional = true, path = "../dsl" }
[features]
dsl = [ "tengri_dsl" ]
[dependencies]
tengri_core = { path = "../core" }
tengri_dsl = { optional = true, path = "../dsl" }
[dev-dependencies]
tengri = { path = "../tengri", features = [ "dsl", "tui" ] }
tengri_tui = { path = "../tui" }
tengri_dsl = { path = "../dsl" }
proptest = "^1"
proptest-derive = "^0.5.1"
proptest = { workspace = true }
proptest-derive = { workspace = true }

View file

@ -7,18 +7,13 @@ mod space; pub use self::space::*;
mod ops; pub use self::ops::*;
mod output; pub use self::output::*;
pub(crate) use tengri_core::*;
pub(crate) use std::marker::PhantomData;
pub(crate) use std::error::Error;
#[cfg(feature = "dsl")] pub(crate) use ::tengri_dsl::*;
#[cfg(feature = "dsl")] mod view;
#[cfg(feature = "dsl")] pub use self::view::*;
/// Standard result type.
pub type Usually<T> = Result<T, Box<dyn Error>>;
/// Standard optional result type.
pub type Perhaps<T> = Result<Option<T>, Box<dyn Error>>;
#[cfg(test)] use proptest_derive::Arbitrary;
#[cfg(test)] #[test] fn test_stub_output () -> Usually<()> {