forked from mirrors/gstreamer-rs
cd56d60352
There are different implementations and signatures for `get_pollfd` depending on whether the target platform is unix or windows. When generating the doc, we need both implementations to appear regardless of the target platform. This commit is inspired by the way Rust `std` library deals with `process::Command` OS dependent variants (https://doc.rust-lang.org/std/process/struct.Command.html#impl-CommandExt). Documentation can't be accurate though as we can't use the`std::os::windows` on `unix` and vice versa. As a workaround a fake fd class matching the other platform is declared. This could be further enhanced once `#[doc(cfg(...))]` is stabilized (https://github.com/rust-lang/rust/issues/43781) by declaring `#[doc(cfg(unix))]` or `#[doc(cfg(windows))]` instead of the hard coded comments `This is supported on **Windows/Unix** only`. Unfortunately, these comments disappear when generating will `--all-features` because they are not part of the documentation in the gir file.
42 lines
1.4 KiB
TOML
42 lines
1.4 KiB
TOML
[package]
|
|
name = "gstreamer"
|
|
version = "0.11.0"
|
|
authors = ["Sebastian Dröge <sebastian@centricular.com>"]
|
|
categories = ["api-bindings", "multimedia"]
|
|
description = "Rust bindings for GStreamer"
|
|
repository = "https://github.com/sdroege/gstreamer-rs"
|
|
license = "MIT/Apache-2.0"
|
|
readme = "README.md"
|
|
homepage = "https://gstreamer.freedesktop.org"
|
|
documentation = "https://sdroege.github.io/rustdoc/gstreamer/gstreamer"
|
|
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
|
|
build = "build.rs"
|
|
|
|
[dependencies]
|
|
bitflags = "1.0"
|
|
cfg-if = "0.1"
|
|
libc = "0.2"
|
|
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
|
gobject-sys = { git = "https://github.com/gtk-rs/sys" }
|
|
gstreamer-sys = { git = "https://github.com/sdroege/gstreamer-sys", features = ["v1_8"], branch = "1.14" }
|
|
glib = { git = "https://github.com/gtk-rs/glib" }
|
|
num-rational = { version = "0.1.38", default-features = false, features = [] }
|
|
lazy_static = "1.0"
|
|
futures = { version = "0.1", optional = true }
|
|
muldiv = "0.1.1"
|
|
|
|
[build-dependencies.rustdoc-stripper]
|
|
version = "0.1"
|
|
optional = true
|
|
|
|
[features]
|
|
v1_10 = ["gstreamer-sys/v1_10"]
|
|
v1_12 = ["gstreamer-sys/v1_12", "v1_10"]
|
|
v1_14 = ["gstreamer-sys/v1_14", "v1_12"]
|
|
embed-lgpl-docs = ["rustdoc-stripper"]
|
|
purge-lgpl-docs = ["rustdoc-stripper"]
|
|
dox = ["gstreamer-sys/dox", "glib/dox", "futures"]
|
|
default-features = []
|
|
|
|
[badges]
|
|
travis-ci = { repository = "sdroege/gstreamer-rs", branch = "master" }
|