File tree 2 files changed +29
-0
lines changed
2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 2
2
name = " edl"
3
3
version = " 1.1.0"
4
4
edition = " 2021"
5
+ description = " Parse EDL (edit decision list) files."
6
+ license = " MIT"
7
+ docs = " https://docs.rs/edl"
8
+ readme = " README.md"
5
9
6
10
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7
11
Original file line number Diff line number Diff line change
1
+ # EDL
2
+
3
+ A very simple library to parse EDL (edit decision list) files.
4
+
5
+ ## Usage
6
+
7
+ Add the edl crate to your ` Cargo.toml ` .
8
+ ``` toml
9
+ [dependencies ]
10
+ edl = " 1"
11
+ ```
12
+
13
+ ``` rust
14
+ let mut f = fs :: File :: open (Path :: new (" timeline.edl" )). unwrap ();
15
+
16
+ let mut data = String :: new ();
17
+ f . read_to_string (& mut data ). unwrap ();
18
+
19
+ let mut entries = edl :: parser :: parse (& data , 60 )? ;
20
+ entries . sort_by_key (| e | e . index);
21
+ ```
22
+
23
+ ** Attention**
24
+ Any read EDL contents passed to the ` parse ` function must have
25
+ CRLF line endings!
You can’t perform that action at this time.
0 commit comments