gstreamer-rs/examples/src
Marijn Suijten ce98a4755e examples: Return anyhow::Result out of main()
It is annoying to see only a single line of error when debugging a chain
of (e.g. `anyhow::Context::context()`-created) errors, and have a
zero exit-code while at it.

Instead Rust supports returning a `Result` type straight from main which
is `Debug`- instead of `Display`-printed, so that - in the case of
`anyhow::Error` - all nested (via `.source()`) `Error`s are printed in
backtrace-like form, and the exit code is appropriately non-zero.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1336>
2023-11-10 12:53:08 +01:00
..
bin examples: Return anyhow::Result out of main() 2023-11-10 12:53:08 +01:00
examples-common.rs Group and merge imports in all manual code 2023-01-04 13:25:17 +02:00
glupload.rs gl: export GLMemory getter methods on GLVideoFrame 2023-10-02 11:33:57 +02:00