#processor #file #extremely

seven

A simple and small file processor

1 unstable release

Uses old Rust 2015

0.1.0 May 26, 2018

#38 in #extremely

AGPL-3.0+

14KB
68 lines

seven.rs

seven is an extremely small file processor. It's currently not finished, and API changes could happen at any minor version increment.

Installation

cargo add seven

Usage

Currently, the way you'd use it is somewhat like this:

extern crate seven;

use seven::*;

fn main() {
  seven(vec![
    Box::new(|files: &mut Vec<SimpleFile>| {
      let file: &mut SimpleFile = &mut files[0];
      file.content = "test hello".to_string();
    })
  ])
}

This reads all files from a directory, and replaces the content of the first one with "test hello". That's about all it can do for now!

License

Licensed under the AGPL-3.0+. See LICENSE.

Dependencies

~0.1–6.5MB
~37K SLoC