rsan

Crates.iorsan
lib.rsrsan
version1.1.0
created_at2025-02-08 20:39:24.399387+00
updated_at2025-04-10 16:46:02.597959+00
descriptionFile Format for easy, fast and lightweight Array notation
homepage
repositoryhttps://github.com/Wagamundi/RSAN
max_upload_size
id1548388
size18,401
(Wagamundi)

documentation

README

RSAN

A File Format for easy, fast and lightweight Array notation.

General Information

  • Grew on a Notepad Projekt
  • Is there to Help save arrays in a easy to read way
  • makes it possible to edit data fast in a normal text editor
  • Completly written in Rust
  • IsnĀ“t there to replace things like JSON or YML

Examples:

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"]
}

Flaws

  • Possibly some, but for my usecase, I couldn't find any, so please report them to me

License

RSAN is dual-licensed under Apache-2.0 and MIT.

Commit count: 18

cargo fmt