Improve features selection in Cargo.toml

All dependencies now also are compiled with the same version feature as
the crate itself, allowing for more caching of build results by cargo.
This commit is contained in:
Sebastian Dröge 2019-08-13 16:23:05 +03:00
parent f8cebe8aa9
commit da9db6b80d
16 changed files with 113 additions and 106 deletions

View file

@ -18,14 +18,14 @@ shell-words = "0.1.0"
tempdir = "0.3" tempdir = "0.3"
[features] [features]
v1_2 = [] v1_2 = ["gstreamer-sys/v1_2", "gstreamer-base-sys/v1_2"]
v1_4 = ["v1_2"] v1_4 = ["v1_2", "gstreamer-sys/v1_4", "gstreamer-base-sys/v1_4"]
v1_6 = ["v1_4"] v1_6 = ["v1_4", "gstreamer-sys/v1_6", "gstreamer-base-sys/v1_6"]
v1_8 = ["v1_6"] v1_8 = ["v1_6", "gstreamer-sys/v1_8", "gstreamer-base-sys/v1_8"]
v1_10 = ["v1_8"] v1_10 = ["v1_8", "gstreamer-sys/v1_10", "gstreamer-base-sys/v1_10"]
v1_12 = ["v1_10"] v1_12 = ["v1_10", "gstreamer-sys/v1_12", "gstreamer-base-sys/v1_12"]
v1_14 = ["v1_12"] v1_14 = ["v1_12", "gstreamer-sys/v1_14", "gstreamer-base-sys/v1_14"]
v1_16 = ["v1_14"] v1_16 = ["v1_14", "gstreamer-sys/v1_16", "gstreamer-base-sys/v1_16"]
dox = [] dox = []
[lib] [lib]

View file

@ -21,14 +21,14 @@ shell-words = "0.1.0"
tempdir = "0.3" tempdir = "0.3"
[features] [features]
v1_2 = [] v1_2 = ["gstreamer-sys/v1_2", "gstreamer-base-sys/v1_2"]
v1_4 = ["v1_2"] v1_4 = ["v1_2", "gstreamer-sys/v1_4", "gstreamer-base-sys/v1_4"]
v1_6 = ["v1_4"] v1_6 = ["v1_4", "gstreamer-sys/v1_6", "gstreamer-base-sys/v1_6"]
v1_8 = ["v1_6"] v1_8 = ["v1_6", "gstreamer-sys/v1_8", "gstreamer-base-sys/v1_8"]
v1_10 = ["v1_8"] v1_10 = ["v1_8", "gstreamer-sys/v1_10", "gstreamer-base-sys/v1_10"]
v1_12 = ["v1_10"] v1_12 = ["v1_10", "gstreamer-sys/v1_12", "gstreamer-base-sys/v1_12"]
v1_14 = ["v1_12"] v1_14 = ["v1_12", "gstreamer-sys/v1_14", "gstreamer-base-sys/v1_14"]
v1_16 = ["v1_14"] v1_16 = ["v1_14", "gstreamer-sys/v1_16", "gstreamer-base-sys/v1_16"]
dox = [] dox = []
[lib] [lib]

View file

@ -19,17 +19,17 @@ tempdir = "0.3"
[features] [features]
v1_0_1 = [] v1_0_1 = []
v1_2 = ["v1_0_1"] v1_2 = ["v1_0_1", "gstreamer-sys/v1_2"]
v1_4 = ["v1_2"] v1_4 = ["v1_2", "gstreamer-sys/v1_4"]
v1_6 = ["v1_4"] v1_6 = ["v1_4", "gstreamer-sys/v1_6"]
v1_8 = ["v1_6"] v1_8 = ["v1_6", "gstreamer-sys/v1_8"]
v1_10 = ["v1_8"] v1_10 = ["v1_8", "gstreamer-sys/v1_10"]
v1_12 = ["v1_10"] v1_12 = ["v1_10", "gstreamer-sys/v1_12"]
v1_12_1 = ["v1_12"] v1_12_1 = ["v1_12"]
v1_14 = ["v1_12_1"] v1_14 = ["v1_12_1", "gstreamer-sys/v1_14"]
v1_14_1 = ["v1_14"] v1_14_1 = ["v1_14"]
v1_14_3 = ["v1_14_1"] v1_14_3 = ["v1_14_1"]
v1_16 = ["v1_14_3"] v1_16 = ["v1_14_3", "gstreamer-sys/v1_16"]
dox = [] dox = []
[lib] [lib]

View file

@ -19,14 +19,14 @@ tempdir = "0.3"
[features] [features]
dox = [] dox = []
v1_2 = [] v1_2 = ["gstreamer-sys/v1_2"]
v1_4 = ["v1_2"] v1_4 = ["v1_2", "gstreamer-sys/v1_4"]
v1_6 = ["v1_4"] v1_6 = ["v1_4", "gstreamer-sys/v1_6"]
v1_8 = ["v1_6"] v1_8 = ["v1_6", "gstreamer-sys/v1_8"]
v1_10 = ["v1_8"] v1_10 = ["v1_8", "gstreamer-sys/v1_10"]
v1_12 = ["v1_10"] v1_12 = ["v1_10", "gstreamer-sys/v1_12"]
v1_14 = ["v1_12"] v1_14 = ["v1_12", "gstreamer-sys/v1_14"]
v1_16 = ["v1_14"] v1_16 = ["v1_14", "gstreamer-sys/v1_16"]
[lib] [lib]
name = "gstreamer_check_sys" name = "gstreamer_check_sys"

View file

@ -28,12 +28,12 @@ tempdir = "0.3"
[features] [features]
dox = [] dox = []
v1_6 = [] v1_6 = ["gstreamer-sys/v1_6", "gstreamer-base-sys/v1_6", "gstreamer-pbutils-sys/v1_6"]
v1_8 = ["v1_6"] v1_8 = ["v1_6", "gstreamer-sys/v1_8", "gstreamer-base-sys/v1_8", "gstreamer-pbutils-sys/v1_8"]
v1_10 = ["v1_8"] v1_10 = ["v1_8", "gstreamer-sys/v1_10", "gstreamer-base-sys/v1_10", "gstreamer-pbutils-sys/v1_10"]
v1_12 = ["v1_10"] v1_12 = ["v1_10", "gstreamer-sys/v1_12", "gstreamer-base-sys/v1_12", "gstreamer-pbutils-sys/v1_12"]
v1_14 = ["v1_12"] v1_14 = ["v1_12", "gstreamer-sys/v1_14", "gstreamer-base-sys/v1_14", "gstreamer-pbutils-sys/v1_14"]
v1_16 = ["v1_14"] v1_16 = ["v1_14", "gstreamer-sys/v1_16", "gstreamer-base-sys/v1_16", "gstreamer-pbutils-sys/v1_16"]
[lib] [lib]
name = "gstreamer_editing_services_sys" name = "gstreamer_editing_services_sys"

View file

@ -12,12 +12,15 @@ git = "https://github.com/gtk-rs/sys"
[dependencies.gstreamer-base-sys] [dependencies.gstreamer-base-sys]
path = "../gstreamer-base-sys" path = "../gstreamer-base-sys"
features = ["v1_14"]
[dependencies.gstreamer-sys] [dependencies.gstreamer-sys]
path = "../gstreamer-sys" path = "../gstreamer-sys"
features = ["v1_14"]
[dependencies.gstreamer-video-sys] [dependencies.gstreamer-video-sys]
path = "../gstreamer-video-sys" path = "../gstreamer-video-sys"
features = ["v1_14"]
[dev-dependencies] [dev-dependencies]
shell-words = "0.1.0" shell-words = "0.1.0"
@ -28,7 +31,7 @@ dox = []
egl = [] egl = []
x11 = [] x11 = []
wayland = [] wayland = []
v1_16 = [] v1_16 = ["gstreamer-sys/v1_16", "gstreamer-base-sys/v1_16", "gstreamer-video-sys/v1_16"]
[lib] [lib]
name = "gstreamer_gl_sys" name = "gstreamer_gl_sys"

View file

@ -21,14 +21,14 @@ shell-words = "0.1.0"
tempdir = "0.3" tempdir = "0.3"
[features] [features]
v1_2 = [] v1_2 = ["gstreamer-sys/v1_2", "gstreamer-base-sys/v1_2"]
v1_4 = ["v1_2"] v1_4 = ["v1_2", "gstreamer-sys/v1_4", "gstreamer-base-sys/v1_4"]
v1_6 = ["v1_4"] v1_6 = ["v1_4", "gstreamer-sys/v1_6", "gstreamer-base-sys/v1_6"]
v1_8 = ["v1_6"] v1_8 = ["v1_6", "gstreamer-sys/v1_8", "gstreamer-base-sys/v1_8"]
v1_10 = ["v1_8"] v1_10 = ["v1_8", "gstreamer-sys/v1_10", "gstreamer-base-sys/v1_10"]
v1_12 = ["v1_10"] v1_12 = ["v1_10", "gstreamer-sys/v1_12", "gstreamer-base-sys/v1_12"]
v1_14 = ["v1_12"] v1_14 = ["v1_12", "gstreamer-sys/v1_14", "gstreamer-base-sys/v1_14"]
v1_16 = ["v1_14"] v1_16 = ["v1_14", "gstreamer-sys/v1_16", "gstreamer-base-sys/v1_16"]
dox = [] dox = []
[lib] [lib]

View file

@ -21,14 +21,14 @@ shell-words = "0.1.0"
tempdir = "0.3" tempdir = "0.3"
[features] [features]
v1_2 = [] v1_2 = ["gstreamer-sys/v1_2"]
v1_4 = ["v1_2"] v1_4 = ["v1_2", "gstreamer-sys/v1_4"]
v1_6 = ["v1_4"] v1_6 = ["v1_4", "gstreamer-sys/v1_6"]
v1_8 = ["v1_6"] v1_8 = ["v1_6", "gstreamer-sys/v1_8"]
v1_10 = ["v1_8"] v1_10 = ["v1_8", "gstreamer-sys/v1_10"]
v1_12 = ["v1_10"] v1_12 = ["v1_10", "gstreamer-sys/v1_12"]
v1_14 = ["v1_12"] v1_14 = ["v1_12", "gstreamer-sys/v1_14"]
v1_16 = ["v1_14"] v1_16 = ["v1_14", "gstreamer-sys/v1_16"]
dox = [] dox = []
[lib] [lib]

View file

@ -24,14 +24,14 @@ shell-words = "0.1.0"
tempdir = "0.3" tempdir = "0.3"
[features] [features]
v1_2 = [] v1_2 = ["gstreamer-sys/v1_2", "gstreamer-audio-sys/v1_2", "gstreamer-video-sys/v1_2"]
v1_4 = ["v1_2"] v1_4 = ["v1_2", "gstreamer-sys/v1_4", "gstreamer-audio-sys/v1_4", "gstreamer-video-sys/v1_4"]
v1_6 = ["v1_4"] v1_6 = ["v1_4", "gstreamer-sys/v1_6", "gstreamer-audio-sys/v1_6", "gstreamer-video-sys/v1_6"]
v1_8 = ["v1_6"] v1_8 = ["v1_6", "gstreamer-sys/v1_8", "gstreamer-audio-sys/v1_8", "gstreamer-video-sys/v1_8"]
v1_10 = ["v1_8"] v1_10 = ["v1_8", "gstreamer-sys/v1_10", "gstreamer-audio-sys/v1_10", "gstreamer-video-sys/v1_10"]
v1_12 = ["v1_10"] v1_12 = ["v1_10", "gstreamer-sys/v1_12", "gstreamer-audio-sys/v1_12", "gstreamer-video-sys/v1_12"]
v1_14 = ["v1_12"] v1_14 = ["v1_12", "gstreamer-sys/v1_14", "gstreamer-audio-sys/v1_14", "gstreamer-video-sys/v1_14"]
v1_16 = ["v1_14"] v1_16 = ["v1_14", "gstreamer-sys/v1_16", "gstreamer-audio-sys/v1_16", "gstreamer-video-sys/v1_16"]
dox = [] dox = []
[lib] [lib]

View file

@ -12,18 +12,19 @@ git = "https://github.com/gtk-rs/sys"
[dependencies.gstreamer-sys] [dependencies.gstreamer-sys]
path = "../gstreamer-sys" path = "../gstreamer-sys"
features = ["v1_12"]
[dependencies.gstreamer-video-sys] [dependencies.gstreamer-video-sys]
path = "../gstreamer-video-sys" path = "../gstreamer-video-sys"
features = ["v1_12"]
[dev-dependencies] [dev-dependencies]
shell-words = "0.1.0" shell-words = "0.1.0"
tempdir = "0.3" tempdir = "0.3"
[features] [features]
v1_12 = [] v1_14 = ["gstreamer-sys/v1_14", "gstreamer-video-sys/v1_14"]
v1_14 = ["v1_12"] v1_16 = ["v1_14", "gstreamer-sys/v1_16", "gstreamer-video-sys/v1_16"]
v1_16 = ["v1_14"]
dox = [] dox = []
[lib] [lib]

View file

@ -31,13 +31,14 @@ tempdir = "0.3"
[features] [features]
dox = [] dox = []
v1_4 = [] v1_2 = ["gstreamer-sys/v1_2", "gstreamer-net-sys/v1_2", "gstreamer-rtsp-sys/v1_2", "gstreamer-sdp-sys/v1_2"]
v1_6 = ["v1_4"] v1_4 = ["v1_2", "gstreamer-sys/v1_4", "gstreamer-net-sys/v1_4", "gstreamer-rtsp-sys/v1_4", "gstreamer-sdp-sys/v1_4"]
v1_8 = ["v1_6"] v1_6 = ["v1_4", "gstreamer-sys/v1_6", "gstreamer-net-sys/v1_6", "gstreamer-rtsp-sys/v1_6", "gstreamer-sdp-sys/v1_6"]
v1_10 = ["v1_8"] v1_8 = ["v1_6", "gstreamer-sys/v1_8", "gstreamer-net-sys/v1_8", "gstreamer-rtsp-sys/v1_8", "gstreamer-sdp-sys/v1_8"]
v1_12 = ["v1_10"] v1_10 = ["v1_8", "gstreamer-sys/v1_10", "gstreamer-net-sys/v1_10", "gstreamer-rtsp-sys/v1_10", "gstreamer-sdp-sys/v1_10"]
v1_14 = ["v1_12"] v1_12 = ["v1_10", "gstreamer-sys/v1_12", "gstreamer-net-sys/v1_12", "gstreamer-rtsp-sys/v1_12", "gstreamer-sdp-sys/v1_12"]
v1_16 = ["v1_14"] v1_14 = ["v1_12", "gstreamer-sys/v1_14", "gstreamer-net-sys/v1_14", "gstreamer-rtsp-sys/v1_14", "gstreamer-sdp-sys/v1_14"]
v1_16 = ["v1_14", "gstreamer-sys/v1_16", "gstreamer-net-sys/v1_16", "gstreamer-rtsp-sys/v1_16", "gstreamer-sdp-sys/v1_16"]
[lib] [lib]
name = "gstreamer_rtsp_server_sys" name = "gstreamer_rtsp_server_sys"

View file

@ -25,15 +25,15 @@ tempdir = "0.3"
[features] [features]
dox = [] dox = []
v1_2 = [] v1_2 = ["gstreamer-sys/v1_2", "gstreamer-sdp-sys/v1_2"]
v1_2_1 = ["v1_2"] v1_2_1 = ["v1_2"]
v1_4 = ["v1_2_1"] v1_4 = ["v1_2_1", "gstreamer-sys/v1_4", "gstreamer-sdp-sys/v1_4"]
v1_6 = ["v1_4"] v1_6 = ["v1_4", "gstreamer-sys/v1_6", "gstreamer-sdp-sys/v1_6"]
v1_8 = ["v1_6"] v1_8 = ["v1_6", "gstreamer-sys/v1_8", "gstreamer-sdp-sys/v1_8"]
v1_10 = ["v1_8"] v1_10 = ["v1_8", "gstreamer-sys/v1_10", "gstreamer-sdp-sys/v1_10"]
v1_12 = ["v1_10"] v1_12 = ["v1_10", "gstreamer-sys/v1_12", "gstreamer-sdp-sys/v1_12"]
v1_14 = ["v1_12"] v1_14 = ["v1_12", "gstreamer-sys/v1_14", "gstreamer-sdp-sys/v1_14"]
v1_16 = ["v1_14"] v1_16 = ["v1_14", "gstreamer-sys/v1_16", "gstreamer-sdp-sys/v1_16"]
[lib] [lib]
name = "gstreamer_rtsp_sys" name = "gstreamer_rtsp_sys"

View file

@ -19,15 +19,15 @@ tempdir = "0.3"
[features] [features]
dox = [] dox = []
v1_2 = [] v1_2 = ["gstreamer-sys/v1_2"]
v1_4 = ["v1_2"] v1_4 = ["v1_2", "gstreamer-sys/v1_4"]
v1_6 = ["v1_4"] v1_6 = ["v1_4", "gstreamer-sys/v1_6"]
v1_8 = ["v1_4"] v1_8 = ["v1_4", "gstreamer-sys/v1_8"]
v1_8_1 = ["v1_8"] v1_8_1 = ["v1_8"]
v1_10 = ["v1_8_1"] v1_10 = ["v1_8_1", "gstreamer-sys/v1_10"]
v1_12 = ["v1_10"] v1_12 = ["v1_10", "gstreamer-sys/v1_12"]
v1_14 = ["v1_12"] v1_14 = ["v1_12", "gstreamer-sys/v1_14"]
v1_16 = ["v1_14"] v1_16 = ["v1_14", "gstreamer-sys/v1_16"]
[lib] [lib]
name = "gstreamer_sdp_sys" name = "gstreamer_sdp_sys"

View file

@ -21,14 +21,14 @@ shell-words = "0.1.0"
tempdir = "0.3" tempdir = "0.3"
[features] [features]
v1_2 = [] v1_2 = ["gstreamer-sys/v1_2", "gstreamer-base-sys/v1_2"]
v1_4 = ["v1_2"] v1_4 = ["v1_2", "gstreamer-sys/v1_4", "gstreamer-base-sys/v1_4"]
v1_6 = ["v1_4"] v1_6 = ["v1_4", "gstreamer-sys/v1_6", "gstreamer-base-sys/v1_6"]
v1_8 = ["v1_6"] v1_8 = ["v1_6", "gstreamer-sys/v1_8", "gstreamer-base-sys/v1_8"]
v1_10 = ["v1_8"] v1_10 = ["v1_8", "gstreamer-sys/v1_10", "gstreamer-base-sys/v1_10"]
v1_12 = ["v1_10"] v1_12 = ["v1_10", "gstreamer-sys/v1_12", "gstreamer-base-sys/v1_12"]
v1_14 = ["v1_12"] v1_14 = ["v1_12", "gstreamer-sys/v1_14", "gstreamer-base-sys/v1_14"]
v1_16 = ["v1_14"] v1_16 = ["v1_14", "gstreamer-sys/v1_16", "gstreamer-base-sys/v1_16"]
dox = [] dox = []
[lib] [lib]

View file

@ -22,15 +22,15 @@ tempdir = "0.3"
[features] [features]
v1_0_3 = [] v1_0_3 = []
v1_2 = ["v1_0_3"] v1_2 = ["v1_0_3", "gstreamer-sys/v1_2", "gstreamer-base-sys/v1_2"]
v1_2_2 = ["v1_2"] v1_2_2 = ["v1_2"]
v1_4 = ["v1_2_2"] v1_4 = ["v1_2_2", "gstreamer-sys/v1_4", "gstreamer-base-sys/v1_4"]
v1_6 = ["v1_4"] v1_6 = ["v1_4", "gstreamer-sys/v1_6", "gstreamer-base-sys/v1_6"]
v1_8 = ["v1_6"] v1_8 = ["v1_6", "gstreamer-sys/v1_8", "gstreamer-base-sys/v1_8"]
v1_10 = ["v1_8"] v1_10 = ["v1_8", "gstreamer-sys/v1_10", "gstreamer-base-sys/v1_10"]
v1_12 = ["v1_10"] v1_12 = ["v1_10", "gstreamer-sys/v1_12", "gstreamer-base-sys/v1_12"]
v1_14 = ["v1_12"] v1_14 = ["v1_12", "gstreamer-sys/v1_14", "gstreamer-base-sys/v1_14"]
v1_16 = ["v1_14"] v1_16 = ["v1_14", "gstreamer-sys/v1_16", "gstreamer-base-sys/v1_16"]
dox = [] dox = []
[lib] [lib]

View file

@ -12,9 +12,11 @@ git = "https://github.com/gtk-rs/sys"
[dependencies.gstreamer-sdp-sys] [dependencies.gstreamer-sdp-sys]
path = "../gstreamer-sdp-sys" path = "../gstreamer-sdp-sys"
features = ["v1_14"]
[dependencies.gstreamer-sys] [dependencies.gstreamer-sys]
path = "../gstreamer-sys" path = "../gstreamer-sys"
features = ["v1_14"]
[dev-dependencies] [dev-dependencies]
shell-words = "0.1.0" shell-words = "0.1.0"
@ -22,7 +24,7 @@ tempdir = "0.3"
[features] [features]
dox = [] dox = []
v1_16 = [] v1_16 = ["gstreamer-sys/v1_16", "gstreamer-sdp-sys/v1_16"]
[lib] [lib]
name = "gstreamer_webrtc_sys" name = "gstreamer_webrtc_sys"