Skip to content

Commit

Permalink
Move examples out of the library
Browse files Browse the repository at this point in the history
There's no need for sub-crates actually. We can simply flags the examples as
such in the build manifest.

Fixes #2
  • Loading branch information
philn authored and gdesmott committed Jun 18, 2019
1 parent 2adc9cd commit 277c591
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 4 deletions.
22 changes: 21 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,28 @@ itertools = "0.7"
gstreamer = "0.12"
regex = "1.0"
lazy_static = "1.0"

[[example]]
name = "dump"

[[example]]
name = "flow"

[[example]]
name = "latency"

[[example]]
name = "omx-perf"

[[example]]
name = "track-frames-omx"

[[example]]
name = "ts-diff"

[dev-dependencies]
structopt = "0.2"
structopt-derive = "0.2"
colored = "1.6"
failure = "0.1.5"
gnuplot = "0.0.30"
failure = "0.1.5"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# gst-log-parser [![Build Status](https://travis-ci.org/gdesmott/gst-log-parser.svg?branch=master)](https://travis-ci.org/gdesmott/gst-log-parser)
Simple Rust library to parse GStreamer logs.

See [the examples](https://github.com/gdesmott/gst-log-parser/tree/master/src/bin) demonstrating how to use it.
See [the examples](https://github.com/gdesmott/gst-log-parser/tree/master/examples) demonstrating how to use it.

## Quick start

- [Install Rust](https://www.rust-lang.org/en-US/install.html) if needed
- `cargo build --release`
- Parsing tools can be executed using `cargo run --release --bin` and are also available in `target/release/`
- Parsing tools can be executed using `cargo run --release --example` and are also available in `target/release/examples/`

## Tools

`src/bin` contains a few log parsers. They can be used as examples demonstrating how to use this crate
`examples` contains a few log parsers. They can be used as examples demonstrating how to use this crate
but also should be useful when debugging specific issues.

### flow
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 277c591

Please sign in to comment.