gstreamer-rs documentation

Sebastian Dröge sebastian at centricular.com
Mon Apr 8 18:22:24 UTC 2019


On Mon, 2019-04-01 at 07:23 +0100, Russel Winder wrote:
> Hi,
> 
> The Gstreamer_Rs documentation often presents the API but fails to have the
> commentary and examples. Is there any chance of just copying in the C
> documentation for each struct, method, and function where there is no manual
> documentation so as to avoid having to have both the Rust API documentation
> and the C documentation open and manually collating information?

Yes, check here:
 https://slomo.pages.freedesktop.org/rustdocs/gstreamer/gstreamer/

Or if you build yourself the documentation, enable the
"embed-lgpl-docs" cargo feature.


rustdoc requires the documentation to be embedded in the code, but as
GStreamer is LGPL (and there is no separate license for the gtk-doc
documentation) this would also make the Rust bindings covered by the
LGPL (and that's suboptimal because of static linking). With this hack,
the gtk-doc based documentation that is extracted from the .gir file is
kept separate and only injected into the code when when explicitly
requested.

-- 
Sebastian Dröge, Centricular Ltd · https://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190408/c76bc637/attachment.sig>


More information about the gstreamer-devel mailing list