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

6
core/Cargo.toml Normal file
View file

@ -0,0 +1,6 @@
[package]
name = "tengri_core"
description = "UI metaframework, core definitions."
version = { workspace = true }
edition = { workspace = true }

7
core/src/lib.rs Normal file
View file

@ -0,0 +1,7 @@
use std::error::Error;
/// 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>>;