| Crates.io | rsan |
| lib.rs | rsan |
| version | 1.1.0 |
| created_at | 2025-02-08 20:39:24.399387+00 |
| updated_at | 2025-04-10 16:46:02.597959+00 |
| description | File Format for easy, fast and lightweight Array notation |
| homepage | |
| repository | https://github.com/Wagamundi/RSAN |
| max_upload_size | |
| id | 1548388 |
| size | 18,401 |
A File Format for easy, fast and lightweight Array notation.
Structure
[Notes]
"Do laundry"
"Eat the dogs"
"Run away from Trump"
[Important Notes]
"Buy a new Coffe Machine"
"Cat food is needed ASAP"
Usage (Reading)
pub async fn example() -> () {
let file = match rsan::RSANFile::read("Test.rsan") {
Err(e) => {
println!("{}", e);
return;
}
Ok(f) => f,
};
}
Usage (Writing)
pub async fn example() -> () {
let mut file = rsan::RSANFile::new();
file.add_to("Test", "First");
file.add_to("Test", "Second");
file.write("Test.rsan").unwrap();
}
Usage (deleting and get)
pub async fn example() -> () {
let file = match rsan::RSANFile::read("Test.rsan") {
Err(e) => {
println!("{}", e);
return;
}
Ok(f) => f,
};
let get = file.get("Test");
println!("{:?}", get); // ["First", "Second"]
}
RSAN is dual-licensed under Apache-2.0 and MIT.