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:
parent
493d897957
commit
b7e0d0d420
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue