app

Local-first trade for farms and co-ops
git clone https://radroots.dev/git/app.git
Log | Files | Refs | README | LICENSE

commit d78a2f0f8d27502074a4311ff5be29df4fc84021
parent dd1affd57a479240f320610137bbc082c25402dc
Author: triesap <triesap@radroots.dev>
Date:   Mon, 19 Jan 2026 06:46:53 +0000

app-utils: add root symbol constant

- add text module root symbol constant
- export root symbol from utils crate
- add root symbol unit test
- align symbol value with legacy utils

Diffstat:
Mcrates/utils/src/lib.rs | 2++
Acrates/utils/src/text/mod.rs | 13+++++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/crates/utils/src/lib.rs b/crates/utils/src/lib.rs @@ -2,7 +2,9 @@ pub mod error; pub mod errors; +pub mod text; pub mod types; pub use errors::{err_msg, handle_err, throw_err, ERR_PREFIX_APP, ERR_PREFIX_UTILS}; +pub use text::ROOT_SYMBOL; pub use types::{resolve_err, resolve_ok, ResolveError, ResultPass}; diff --git a/crates/utils/src/text/mod.rs b/crates/utils/src/text/mod.rs @@ -0,0 +1,13 @@ +#![forbid(unsafe_code)] + +pub const ROOT_SYMBOL: &str = "»`,-"; + +#[cfg(test)] +mod tests { + use super::ROOT_SYMBOL; + + #[test] + fn root_symbol_matches_spec() { + assert_eq!(ROOT_SYMBOL, "»`,-"); + } +}