feat: Add sal-text crate
Some checks failed
Rhai Tests / Run Rhai Tests (push) Has been cancelled

- Add a new crate `sal-text` for text manipulation utilities.
- Integrate `sal-text` into the main `sal` crate.
- Remove the previous `text` module from `sal`.  This improves
  organization and allows for independent development of the
  `sal-text` library.
This commit is contained in:
Mahmoud-Emad
2025-06-19 14:43:27 +03:00
parent 4a8d3bfd24
commit a7a7353aa1
19 changed files with 1808 additions and 369 deletions

22
text/Cargo.toml Normal file
View File

@@ -0,0 +1,22 @@
[package]
name = "sal-text"
version = "0.1.0"
edition = "2021"
authors = ["PlanetFirst <info@incubaid.com>"]
description = "SAL Text - Text processing and manipulation utilities with regex, templating, and normalization"
repository = "https://git.threefold.info/herocode/sal"
license = "Apache-2.0"
[dependencies]
# Regex support for text replacement
regex = "1.8.1"
# Template engine for text rendering
tera = "1.19.0"
# Serialization support for templates
serde = { version = "1.0", features = ["derive"] }
# Rhai scripting support
rhai = { version = "1.12.0", features = ["sync"] }
[dev-dependencies]
# For temporary files in tests
tempfile = "3.5"