edl/lib.rs
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!
26
27pub mod entry;
28pub mod errors;
29pub mod parser;