mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 03:36:42 +01:00
add tengri_core; fix errors and warnings; unify deps
This commit is contained in:
parent
cb8fd26922
commit
8dda576c9d
18 changed files with 180 additions and 152 deletions
6
core/Cargo.toml
Normal file
6
core/Cargo.toml
Normal 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
7
core/src/lib.rs
Normal 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>>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue