Skip to content

Commit e312580

Browse files
committed
add readme to edl crate
1 parent 051b002 commit e312580

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

edl/Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
name = "edl"
33
version = "1.1.0"
44
edition = "2021"
5+
description = "Parse EDL (edit decision list) files."
6+
license = "MIT"
7+
docs = "https://docs.rs/edl"
8+
readme = "README.md"
59

610
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
711

edl/README.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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!

0 commit comments

Comments
 (0)