Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gstreamer-rs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zeeshan Ali
gstreamer-rs
Commits
e29eae4d
Commit
e29eae4d
authored
Aug 01, 2017
by
Sebastian Dröge
🍵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for docs generation
parent
7e6de739
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13056 additions
and
3 deletions
+13056
-3
Cargo.lock
Cargo.lock
+7
-0
docs/gstreamer/docs.md
docs/gstreamer/docs.md
+13006
-0
gstreamer/Cargo.toml
gstreamer/Cargo.toml
+9
-3
gstreamer/build.rs
gstreamer/build.rs
+34
-0
No files found.
Cargo.lock
View file @
e29eae4d
...
...
@@ -10,6 +10,7 @@ dependencies = [
"lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.28 (registry+https://github.com/rust-lang/crates.io-index)",
"num-rational 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)",
"rustdoc-stripper 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
...
...
@@ -390,6 +391,11 @@ name = "pkg-config"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "rustdoc-stripper"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "scoped-tls"
version = "0.1.0"
...
...
@@ -481,6 +487,7 @@ dependencies = [
"checksum pango 0.1.3 (git+https://github.com/gtk-rs/pango)" = "<none>"
"checksum pango-sys 0.3.4 (git+https://github.com/gtk-rs/sys)" = "<none>"
"checksum pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "3a8b4c6b8165cd1a1cd4b9b120978131389f64bdaf456435caa41e630edba903"
"checksum rustdoc-stripper 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "ab70973988ecb752bc19e28e47bb3913bd98a8db8abe2dbd0f862067b176cf95"
"checksum scoped-tls 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f417c22df063e9450888a7561788e9bd46d3bb3c1466435b4eccb903807f147d"
"checksum slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "17b4fcaed89ab08ef143da37bc52adbcc04d4a69014f4c1208d6b51f0c47bc23"
"checksum tokio-core 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "e85d419699ec4b71bfe35bbc25bb8771e52eff0471a7f75c853ad06e200b4f86"
...
...
docs/gstreamer/docs.md
0 → 100644
View file @
e29eae4d
This diff is collapsed.
Click to expand it.
gstreamer/Cargo.toml
View file @
e29eae4d
...
...
@@ -8,6 +8,7 @@ repository = "https://github.com/sdroege/gstreamer-rs"
license
=
"MIT"
documentation
=
"https://gstreamer.freedesktop.org"
keywords
=
[
"gstreamer"
,
"multimedia"
,
"audio"
,
"video"
,
"gnome"
]
build
=
"build.rs"
[dependencies]
bitflags
=
"0.9"
...
...
@@ -19,8 +20,13 @@ glib = { version = "0.1.3", git = "https://github.com/gtk-rs/glib" }
num-rational
=
{
version
=
"0.1.38"
,
default-features
=
false
,
features
=
[]
}
lazy_static
=
"0.2"
[build-dependencies.rustdoc-stripper]
version
=
"0.1"
optional
=
true
[features]
v1_10
=
[
"gstreamer-sys/v1_10"
,
"v1_8"
]
v1_10
=
["gstreamer-sys/v1_10"]
v1_12
=
[
"gstreamer-sys/v1_12"
,
"v1_10"
]
v1_8
=
["gstreamer-sys/v1_8"]
embed-lgpl-docs
=
["rustdoc-stripper"]
purge-lgpl-docs
=
["rustdoc-stripper"]
default-features
=
[]
gstreamer/build.rs
0 → 100644
View file @
e29eae4d
fn
main
()
{
manage_docs
();
}
#[cfg(any(feature
=
"embed-lgpl-docs"
,
feature
=
"purge-lgpl-docs"
))]
fn
manage_docs
()
{
extern
crate
stripper_lib
;
use
std
::
io
;
let
path
=
"src"
;
let
ignores
:
&
[
&
str
]
=
&
[];
stripper_lib
::
loop_over_files
(
path
.as_ref
(),
&
mut
|
w
,
s
|
stripper_lib
::
strip_comments
(
w
,
s
,
&
mut
io
::
sink
(),
true
),
&
ignores
,
false
,
);
#[cfg(feature
=
"embed-lgpl-docs"
)]
{
let
docs
=
include_str!
(
"../docs/gstreamer/docs.md"
);
let
mut
infos
=
stripper_lib
::
parse_cmts
(
docs
.lines
(),
true
);
stripper_lib
::
loop_over_files
(
path
.as_ref
(),
&
mut
|
w
,
s
|
stripper_lib
::
regenerate_comments
(
w
,
s
,
&
mut
infos
,
true
,
true
),
&
ignores
,
false
,
);
}
}
#[cfg(not(any(feature
=
"embed-lgpl-docs"
,
feature
=
"purge-lgpl-docs"
)))]
fn
manage_docs
()
{}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment