1
0
Fork 0
mirror of https://github.com/alfg/mp4-rust.git synced 2024-06-02 13:39:54 +00:00

Fix docs tests and update to 0.7.0.

This commit is contained in:
Alf 2020-09-14 19:45:22 -07:00
parent 493d897957
commit b7e0d0d420
2 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ use std::io::{BufReader};
use mp4::{Result};
fn main() -> Result<()> {
let f = File::open("example.mp4").unwrap();
let f = File::open("tests/samples/minimal.mp4").unwrap();
let size = f.metadata()?.len();
let reader = BufReader::new(f);
@ -61,7 +61,7 @@ See [examples/](examples/) for more examples.
#### Install
Add to your `Cargo.toml`:
```toml
mp4 = "<version>"
mp4 = "0.7.0"
```
#### Documentation

View file

@ -15,7 +15,7 @@
//! use mp4::{Result};
//!
//! fn main() -> Result<()> {
//! let f = File::open("example.mp4").unwrap();
//! let f = File::open("tests/samples/minimal.mp4").unwrap();
//! let size = f.metadata()?.len();
//! let reader = BufReader::new(f);
//!
@ -58,7 +58,7 @@
//!
//! ```toml
//! [dependencies]
//! mp4 = "<version>"
//! mp4 = "0.7.0"
//! ```
//!
//! [mp4box]: https://github.com/alfg/mp4-rust/blob/master/src/mp4box/mod.rs