Demo editing tools with js bindings
  • Rust 94%
  • Nix 2.4%
  • JavaScript 2.2%
  • TypeScript 1.4%
Find a file
2022-10-23 20:28:48 +02:00
js document rust api 2022-10-23 20:28:48 +02:00
src document rust api 2022-10-23 20:28:48 +02:00
.envrc init 2022-09-10 16:46:33 +02:00
.gitignore js bindings 2022-10-23 17:01:34 +02:00
Cargo.toml cleanup 2022-10-23 16:07:58 +02:00
flake.lock init 2022-09-10 16:46:33 +02:00
flake.nix init 2022-09-10 16:46:33 +02:00
LICENSE_APACHE init 2022-09-10 16:46:33 +02:00
LICENSE_MIT init 2022-09-10 16:46:33 +02:00
out.txt init 2022-09-10 16:46:33 +02:00
package-lock.json js bindings 2022-10-23 17:01:34 +02:00
package.json js bindings 2022-10-23 17:01:34 +02:00
README.md document rust api 2022-10-23 20:28:48 +02:00
tsconfig.json js bindings 2022-10-23 17:01:34 +02:00
webpack.config.js js bindings 2022-10-23 17:01:34 +02:00

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();
}