mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
26 lines
635 B
Rust
26 lines
635 B
Rust
pub use color_eyre::eyre::eyre;
|
|
pub use imbl_value::InternedString;
|
|
pub use lazy_format::lazy_format;
|
|
pub use tracing::instrument;
|
|
|
|
pub use crate::db::prelude::*;
|
|
pub use crate::ensure_code;
|
|
pub use crate::error::{Error, ErrorCollection, ErrorKind, OptionExt, ResultExt};
|
|
|
|
#[macro_export]
|
|
macro_rules! dbg {
|
|
() => {{
|
|
tracing::debug!("[{}:{}:{}]", file!(), line!(), column!());
|
|
}};
|
|
($e:expr) => {{
|
|
let e = $e;
|
|
tracing::debug!("[{}:{}:{}] {} = {e:?}", file!(), line!(), column!(), stringify!($e));
|
|
e
|
|
}};
|
|
($($e:expr),+) => {
|
|
($(
|
|
crate::dbg!($e)
|
|
),+)
|
|
}
|
|
}
|