Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Latest commit

 

History

History
23 lines (19 loc) · 472 Bytes

File metadata and controls

23 lines (19 loc) · 472 Bytes

Demo editor

Rust api

use edit::{edit, EditOptions, TickRange};

fn main() {
    let options = EditOptions {
        unlock_pov: true,
        cut: Some(TickRange {
            from: 1000.into(),
            to: 2000.into(),
        }),
        ..EditOptions::default()
    };
    let input = fs::read("in.demo").unwrap();
    let output = edit(&input, options);
    fs::write("out.dem", output).unwrap();
}