Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to use build --all and test --all together with --features #7218

Closed
sdroege opened this issue Aug 6, 2019 · 7 comments
Closed
Labels
A-features Area: features — conditional compilation C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@sdroege
Copy link
Contributor

sdroege commented Aug 6, 2019

Describe the problem you are trying to solve

On the CI I'd like to build/test all crates in my workspace with specific feature sets.

--all-features is not an option because some features are conflicting with each other, but otherwise it would work.

Building each crate individually and specifying the relevant --features is an option but increases build times considerably.

Creating a dummy subcrate that depends on all the other crates with the corresponding features is not an option as that does not allow running tests, or building all examples/tests/bins of the other crates (--examples, etc)

Describe the solution you'd like

cargo build --all --features crate1/feature1,crate2/feature2 should build all crates in the workspace and enable the corresponding features of the subcrates.

Same thing for cargo test --all --features ....

@sdroege sdroege added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Aug 6, 2019
@ehuss ehuss added the A-features Area: features — conditional compilation label Aug 7, 2019
@sdroege
Copy link
Contributor Author

sdroege commented Aug 7, 2019

Building each crate individually and specifying the relevant --features is an option but increases build times considerably.

As discussed on Discord, testcase for the increase of build times. Problem is that building e.g. gstreamer and then gstreamer-base individually with the same features causes gstreamer to be built twice (and build times are approximately the same).

Can be reproduced with https://gitlab.freedesktop.org/gstreamer/gstreamer-rs, simply run

cd gstreamer && cargo build --features=v1_16
cd gstreamer-base && cargo build --features=v1_16

Some relevant output of the cargo fingerprinting calculations below

first build of gstreamer:

``` [2019-08-07T15:23:21Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) Compiling libc v0.2.60 Compiling autocfg v0.1.5 Compiling pkg-config v0.3.15 Compiling bitflags v1.1.0 Compiling lazy_static v1.3.0 Compiling gstreamer v0.15.0 (/home/slomo/Projects/rust/gstreamer-rs/gstreamer) Compiling cfg-if v0.1.9 Compiling muldiv v0.2.0 [2019-08-07T15:23:21Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (777ea6b3c77cf230) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/cfg-if-10b2716709bec080/lib-cfg_if-10b2716709bec080 [2019-08-07T15:23:21Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (5a3a5898fc239af4) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/lazy_static-a483656c2f7d8f9e/lib-lazy_static-a483656c2f7d8f9e [2019-08-07T15:23:21Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (252b312fd444ea98) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-f6ef2822bfffbca7/build-script-build_script_build-f6ef2822bfffbca7 [2019-08-07T15:23:21Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (4a575702d3a475d5) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/bitflags-25b8828303b24b95/build-script-build_script_build-25b8828303b24b95 [2019-08-07T15:23:21Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (91d71e06ae469dbb) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/muldiv-640e8ecc477fa6c9/lib-muldiv-640e8ecc477fa6c9 [2019-08-07T15:23:21Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (ba7236d73ad2ace8) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/bitflags-5254301a115d858b/run-build-script-build_script_build-5254301a115d858b [2019-08-07T15:23:21Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (29910b1f52536a30) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/libc-8c49944139e1936d/build-script-build_script_build-8c49944139e1936d [2019-08-07T15:23:21Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (12ea2440d621bca1) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/libc-6147417c938c52ff/run-build-script-build_script_build-6147417c938c52ff [2019-08-07T15:23:21Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (e4811316c35da295) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/autocfg-137db1f252bc2c62/lib-autocfg-137db1f252bc2c62 Compiling num-traits v0.2.8 Compiling num-integer v0.1.41 [2019-08-07T15:23:21Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (7f695f129f60f2a0) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/bitflags-5ca6c24c5331372d/lib-bitflags-5ca6c24c5331372d Compiling num-rational v0.2.2 [2019-08-07T15:23:21Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (4c472bb61628d836) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/pkg-config-855d1867cea201df/lib-pkg_config-855d1867cea201df Compiling glib-sys v0.9.0 (https://github.com/gtk-rs/sys#2bc42df1) Compiling gobject-sys v0.9.0 (https://github.com/gtk-rs/sys#2bc42df1) Compiling gstreamer-sys v0.9.0 (https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys#51ea339a) [2019-08-07T15:23:21Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (a2b502215fd2b69) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-traits-50130298154fbe85/build-script-build_script_build-50130298154fbe85 [2019-08-07T15:23:21Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (68486ef7f890e821) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-integer-c8074e45fad778e9/build-script-build_script_build-c8074e45fad778e9 [2019-08-07T15:23:21Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (a539b87eb172c523) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-rational-e88e6facd3c3e038/build-script-build_script_build-e88e6facd3c3e038 [2019-08-07T15:23:22Z DEBUG cargo::core::compiler::fingerprint] new local fingerprints deps(build.rs), glib-sys(build.rs), num-int... [2019-08-07T15:23:22Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (4ac838db93cdc233) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-integer-ae2dd5ee942b3618/run-build-script-build_script_build-ae2dd5ee942b3618 [2019-08-07T15:23:22Z DEBUG cargo::core::compiler::fingerprint] new local fingerprints deps(build.rs), glib-sys(build.rs), num-rat... [2019-08-07T15:23:22Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (7006f40aa8ab5573) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-rational-490ce9adcb0aff70/run-build-script-build_script_build-490ce9adcb0aff70 [2019-08-07T15:23:22Z DEBUG cargo::core::compiler::fingerprint] new local fingerprints deps [2019-08-07T15:23:22Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (2bdcc87af1380fc1) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-traits-edfb4a3ee020a190/run-build-script-build_script_build-edfb4a3ee020a190 [2019-08-07T15:23:22Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (7555a70d49058faf) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/libc-ea90c3b471b381b2/lib-libc-ea90c3b471b381b2 [2019-08-07T15:23:22Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (1ca26ca1644c9396) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/glib-sys-2397b5b9a5c21ad8/build-script-build_script_build-2397b5b9a5c21ad8 [2019-08-07T15:23:22Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (a6ab93c9a4e56d11) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/glib-sys-73ce614c3738412e/run-build-script-build_script_build-73ce614c3738412e [2019-08-07T15:23:22Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (6707736a28e935eb) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gobject-sys-19e58f626cc7ecfc/build-script-build_script_build-19e58f626cc7ecfc [2019-08-07T15:23:22Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (646d996e96ee069a) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gobject-sys-9ebf2e2ca652e87d/run-build-script-build_script_build-9ebf2e2ca652e87d [2019-08-07T15:23:22Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (c09919bd399a1263) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-sys-2576e266d89017fb/build-script-build_script_build-2576e266d89017fb [2019-08-07T15:23:22Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (412c620cc700e1ec) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-sys-8ee4640010fa2a2d/run-build-script-build_script_build-8ee4640010fa2a2d [2019-08-07T15:23:22Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (e5fef8955d1910d1) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-4f64aaa8f63fc3cd/run-build-script-build_script_build-4f64aaa8f63fc3cd [2019-08-07T15:23:23Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (b231c1fc47ac08be) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/glib-sys-a1386dedbe6b6aa2/lib-glib_sys-a1386dedbe6b6aa2 [2019-08-07T15:23:23Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (d943b5bbf5e0cace) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-traits-a4878a1a132bb1e9/lib-num_traits-a4878a1a132bb1e9 [2019-08-07T15:23:23Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (e8724ffecdd0a5e6) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gobject-sys-fe476fb97713d06c/lib-gobject_sys-fe476fb97713d06c Compiling glib v0.8.0 (https://github.com/gtk-rs/glib#73bac1a3) [2019-08-07T15:23:24Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (19f4d2d59ae473c8) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-integer-df7ef3ec3ac233d8/lib-num_integer-df7ef3ec3ac233d8 [2019-08-07T15:23:24Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (b76793a3fea5214d) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-sys-0a57cf86fee2b35b/lib-gstreamer_sys-0a57cf86fee2b35b [2019-08-07T15:23:25Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (5372a18e2049a79) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-rational-ccbe864327b9d73f/lib-num_rational-ccbe864327b9d73f [2019-08-07T15:23:29Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (ee91848cd8108b42) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/glib-ac32f13c714f6e21/lib-glib-ac32f13c714f6e21 [2019-08-07T15:23:43Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (6d53d60cace9aee6) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-78c2685dd0a6cd29/lib-gstreamer-78c2685dd0a6cd29 Finished dev [unoptimized + debuginfo] target(s) in 22.25s ```

second build from gstreamer-base:

``` warning: /home/slomo/Projects/rust/gstreamer-rs/examples/Cargo.toml: unused manifest key: bin.26.features [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-096acd0349ca860c/lib-gstreamer_base-096acd0349ca860c [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] old local fingerprints deps [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] old local fingerprints deps [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] old local fingerprints deps [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] old local fingerprints deps [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] old local fingerprints deps [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/gstreamer-e7e6fddf87e1bac8/build_script_build-e7e6fddf87e1bac8": failed to stat `/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/gstreamer-e7e6fddf87e1bac8/build_script_build-e7e6fddf87e1bac8` [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] old local fingerprints deps [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/gstreamer-a5a7c9fbee41f48d/output": failed to stat `/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/gstreamer-a5a7c9fbee41f48d/output` [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] old local fingerprints deps [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/num-integer-1de667a13591bf38/build_script_build-1de667a13591bf38": failed to stat `/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/num-integer-1de667a13591bf38/build_script_build-1de667a13591bf38` [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/num-integer-060c82a70b162e2e/output": failed to stat `/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/num-integer-060c82a70b162e2e/output` [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] old local fingerprints deps [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/num-traits-145acb1d9bc45e9a/build_script_build-145acb1d9bc45e9a": failed to stat `/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/num-traits-145acb1d9bc45e9a/build_script_build-145acb1d9bc45e9a` [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/num-traits-25bb1b9a4b871acd/output": failed to stat `/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/num-traits-25bb1b9a4b871acd/output` [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/home/slomo/Projects/rust/gstreamer-rs/target/debug/deps/libnum_traits-4ecb08c51bf45215.rlib": failed to stat `/home/slomo/Projects/rust/gstreamer-rs/target/debug/deps/libnum_traits-4ecb08c51bf45215.rlib` [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/home/slomo/Projects/rust/gstreamer-rs/target/debug/deps/libnum_integer-692b19206dc236e6.rlib": failed to stat `/home/slomo/Projects/rust/gstreamer-rs/target/debug/deps/libnum_integer-692b19206dc236e6.rlib` [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] new local fingerprints deps [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/home/slomo/Projects/rust/gstreamer-rs/target/debug/deps/libnum_rational-3fa0f9e0dcf48d4c.rlib": failed to stat `/home/slomo/Projects/rust/gstreamer-rs/target/debug/deps/libnum_rational-3fa0f9e0dcf48d4c.rlib` [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/home/slomo/Projects/rust/gstreamer-rs/target/debug/deps/libgstreamer-d9fbb7020cd90fcc.rlib": failed to stat `/home/slomo/Projects/rust/gstreamer-rs/target/debug/deps/libgstreamer-d9fbb7020cd90fcc.rlib` [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] old local fingerprints deps [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/gstreamer-base-b9a7d93fc632b110/build_script_build-b9a7d93fc632b110": failed to stat `/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/gstreamer-base-b9a7d93fc632b110/build_script_build-b9a7d93fc632b110` [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] old local fingerprints deps [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/gstreamer-base-sys-41a5360bf373bd25/build_script_build-41a5360bf373bd25": failed to stat `/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/gstreamer-base-sys-41a5360bf373bd25/build_script_build-41a5360bf373bd25` [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/gstreamer-base-sys-3fee14bc800a9e5f/output": failed to stat `/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/gstreamer-base-sys-3fee14bc800a9e5f/output` [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/gstreamer-base-fc9927b047410982/output": failed to stat `/home/slomo/Projects/rust/gstreamer-rs/target/debug/build/gstreamer-base-fc9927b047410982/output` [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/home/slomo/Projects/rust/gstreamer-rs/target/debug/deps/libgstreamer_base_sys-597db3dedc19a43b.rlib": failed to stat `/home/slomo/Projects/rust/gstreamer-rs/target/debug/deps/libgstreamer_base_sys-597db3dedc19a43b.rlib` [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] failed to get mtime of "/home/slomo/Projects/rust/gstreamer-rs/target/debug/deps/libgstreamer_base-096acd0349ca860c.rlib": failed to stat `/home/slomo/Projects/rust/gstreamer-rs/target/debug/deps/libgstreamer_base-096acd0349ca860c.rlib` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] fingerprint error for gstreamer-base v0.15.0 (/home/slomo/Projects/rust/gstreamer-rs/gstreamer-base)/Build/Target { ..: lib_target("gstreamer-base", ["lib"], "/home/slomo/Projects/rust/gstreamer-rs/gstreamer-base/src/lib.rs", Edition2015) } [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] err: failed to read `/home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-096acd0349ca860c/lib-gstreamer_base-096acd0349ca860c` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/bitflags-5ca6c24c5331372d/lib-bitflags-5ca6c24c5331372d [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/bitflags-5254301a115d858b/run-build-script-build_script_build-5254301a115d858b [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/bitflags-25b8828303b24b95/build-script-build_script_build-25b8828303b24b95 [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/glib-ac32f13c714f6e21/lib-glib-ac32f13c714f6e21 [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/glib-sys-a1386dedbe6b6aa2/lib-glib_sys-a1386dedbe6b6aa2 [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/glib-sys-73ce614c3738412e/run-build-script-build_script_build-73ce614c3738412e [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/glib-sys-2397b5b9a5c21ad8/build-script-build_script_build-2397b5b9a5c21ad8 [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/pkg-config-855d1867cea201df/lib-pkg_config-855d1867cea201df [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/libc-ea90c3b471b381b2/lib-libc-ea90c3b471b381b2 [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/libc-6147417c938c52ff/run-build-script-build_script_build-6147417c938c52ff [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/libc-8c49944139e1936d/build-script-build_script_build-8c49944139e1936d [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gobject-sys-fe476fb97713d06c/lib-gobject_sys-fe476fb97713d06c [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gobject-sys-9ebf2e2ca652e87d/run-build-script-build_script_build-9ebf2e2ca652e87d [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gobject-sys-19e58f626cc7ecfc/build-script-build_script_build-19e58f626cc7ecfc [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/lazy_static-a483656c2f7d8f9e/lib-lazy_static-a483656c2f7d8f9e [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-d9fbb7020cd90fcc/lib-gstreamer-d9fbb7020cd90fcc [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] fingerprint error for gstreamer v0.15.0 (/home/slomo/Projects/rust/gstreamer-rs/gstreamer)/Build/Target { ..: lib_target("gstreamer", ["lib"], "/home/slomo/Projects/rust/gstreamer-rs/gstreamer/src/lib.rs", Edition2015) } [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] err: failed to read `/home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-d9fbb7020cd90fcc/lib-gstreamer-d9fbb7020cd90fcc` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/cfg-if-10b2716709bec080/lib-cfg_if-10b2716709bec080 [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-a5a7c9fbee41f48d/run-build-script-build_script_build-a5a7c9fbee41f48d [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] fingerprint error for gstreamer v0.15.0 (/home/slomo/Projects/rust/gstreamer-rs/gstreamer)/RunCustomBuild/Target { ..: custom_build_target("build-script-build", "/home/slomo/Projects/rust/gstreamer-rs/gstreamer/build.rs", Edition2015) } [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] err: failed to read `/home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-a5a7c9fbee41f48d/run-build-script-build_script_build-a5a7c9fbee41f48d` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-e7e6fddf87e1bac8/build-script-build_script_build-e7e6fddf87e1bac8 [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] fingerprint error for gstreamer v0.15.0 (/home/slomo/Projects/rust/gstreamer-rs/gstreamer)/Build/Target { ..: custom_build_target("build-script-build", "/home/slomo/Projects/rust/gstreamer-rs/gstreamer/build.rs", Edition2015) } [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] err: failed to read `/home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-e7e6fddf87e1bac8/build-script-build_script_build-e7e6fddf87e1bac8` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-sys-8ee4640010fa2a2d/run-build-script-build_script_build-8ee4640010fa2a2d [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-sys-2576e266d89017fb/build-script-build_script_build-2576e266d89017fb [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-sys-0a57cf86fee2b35b/lib-gstreamer_sys-0a57cf86fee2b35b [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/muldiv-640e8ecc477fa6c9/lib-muldiv-640e8ecc477fa6c9 [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-rational-3fa0f9e0dcf48d4c/lib-num_rational-3fa0f9e0dcf48d4c [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] fingerprint error for num-rational v0.2.2/Build/Target { ..: lib_target("num-rational", ["lib"], "/home/slomo/.cargo/registry/src/github.com-1ecc6299db9ec823/num-rational-0.2.2/src/lib.rs", Edition2015) } [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] err: failed to read `/home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-rational-3fa0f9e0dcf48d4c/lib-num_rational-3fa0f9e0dcf48d4c` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-integer-692b19206dc236e6/lib-num_integer-692b19206dc236e6 [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] fingerprint error for num-integer v0.1.41/Build/Target { ..: lib_target("num-integer", ["lib"], "/home/slomo/.cargo/registry/src/github.com-1ecc6299db9ec823/num-integer-0.1.41/src/lib.rs", Edition2015) } [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] err: failed to read `/home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-integer-692b19206dc236e6/lib-num_integer-692b19206dc236e6` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-integer-060c82a70b162e2e/run-build-script-build_script_build-060c82a70b162e2e [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] fingerprint error for num-integer v0.1.41/RunCustomBuild/Target { ..: custom_build_target("build-script-build", "/home/slomo/.cargo/registry/src/github.com-1ecc6299db9ec823/num-integer-0.1.41/build.rs", Edition2015) } [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] err: failed to read `/home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-integer-060c82a70b162e2e/run-build-script-build_script_build-060c82a70b162e2e` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-integer-1de667a13591bf38/build-script-build_script_build-1de667a13591bf38 [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] fingerprint error for num-integer v0.1.41/Build/Target { ..: custom_build_target("build-script-build", "/home/slomo/.cargo/registry/src/github.com-1ecc6299db9ec823/num-integer-0.1.41/build.rs", Edition2015) } [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] err: failed to read `/home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-integer-1de667a13591bf38/build-script-build_script_build-1de667a13591bf38` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/autocfg-137db1f252bc2c62/lib-autocfg-137db1f252bc2c62 [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-traits-4ecb08c51bf45215/lib-num_traits-4ecb08c51bf45215 [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] fingerprint error for num-traits v0.2.8/Build/Target { ..: lib_target("num-traits", ["lib"], "/home/slomo/.cargo/registry/src/github.com-1ecc6299db9ec823/num-traits-0.2.8/src/lib.rs", Edition2015) } [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] err: failed to read `/home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-traits-4ecb08c51bf45215/lib-num_traits-4ecb08c51bf45215` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-traits-25bb1b9a4b871acd/run-build-script-build_script_build-25bb1b9a4b871acd [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] fingerprint error for num-traits v0.2.8/RunCustomBuild/Target { ..: custom_build_target("build-script-build", "/home/slomo/.cargo/registry/src/github.com-1ecc6299db9ec823/num-traits-0.2.8/build.rs", Edition2015) } [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] err: failed to read `/home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-traits-25bb1b9a4b871acd/run-build-script-build_script_build-25bb1b9a4b871acd` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-traits-145acb1d9bc45e9a/build-script-build_script_build-145acb1d9bc45e9a [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] fingerprint error for num-traits v0.2.8/Build/Target { ..: custom_build_target("build-script-build", "/home/slomo/.cargo/registry/src/github.com-1ecc6299db9ec823/num-traits-0.2.8/build.rs", Edition2015) } [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] err: failed to read `/home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-traits-145acb1d9bc45e9a/build-script-build_script_build-145acb1d9bc45e9a` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-rational-490ce9adcb0aff70/run-build-script-build_script_build-490ce9adcb0aff70 [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-rational-e88e6facd3c3e038/build-script-build_script_build-e88e6facd3c3e038 [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-fc9927b047410982/run-build-script-build_script_build-fc9927b047410982 [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] fingerprint error for gstreamer-base v0.15.0 (/home/slomo/Projects/rust/gstreamer-rs/gstreamer-base)/RunCustomBuild/Target { ..: custom_build_target("build-script-build", "/home/slomo/Projects/rust/gstreamer-rs/gstreamer-base/build.rs", Edition2015) } [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] err: failed to read `/home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-fc9927b047410982/run-build-script-build_script_build-fc9927b047410982` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-b9a7d93fc632b110/build-script-build_script_build-b9a7d93fc632b110 [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] fingerprint error for gstreamer-base v0.15.0 (/home/slomo/Projects/rust/gstreamer-rs/gstreamer-base)/Build/Target { ..: custom_build_target("build-script-build", "/home/slomo/Projects/rust/gstreamer-rs/gstreamer-base/build.rs", Edition2015) } [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] err: failed to read `/home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-b9a7d93fc632b110/build-script-build_script_build-b9a7d93fc632b110` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-sys-3fee14bc800a9e5f/run-build-script-build_script_build-3fee14bc800a9e5f [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] fingerprint error for gstreamer-base-sys v0.9.0 (https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys#51ea339a)/RunCustomBuild/Target { ..: custom_build_target("build-script-build", "/home/slomo/.cargo/git/checkouts/gstreamer-rs-sys-a0589130b777aa70/51ea339/gstreamer-base-sys/build.rs", Edition2015) } [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] err: failed to read `/home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-sys-3fee14bc800a9e5f/run-build-script-build_script_build-3fee14bc800a9e5f` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-sys-41a5360bf373bd25/build-script-build_script_build-41a5360bf373bd25 [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] fingerprint error for gstreamer-base-sys v0.9.0 (https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys#51ea339a)/Build/Target { ..: custom_build_target("build-script-build", "/home/slomo/.cargo/git/checkouts/gstreamer-rs-sys-a0589130b777aa70/51ea339/gstreamer-base-sys/build.rs", Edition2015) } [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] err: failed to read `/home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-sys-41a5360bf373bd25/build-script-build_script_build-41a5360bf373bd25` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] fingerprint at: /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-sys-597db3dedc19a43b/lib-gstreamer_base_sys-597db3dedc19a43b [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] fingerprint error for gstreamer-base-sys v0.9.0 (https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys#51ea339a)/Build/Target { ..: lib_target("gstreamer_base_sys", ["lib"], "/home/slomo/.cargo/git/checkouts/gstreamer-rs-sys-a0589130b777aa70/51ea339/gstreamer-base-sys/src/lib.rs", Edition2015) } [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] err: failed to read `/home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-sys-597db3dedc19a43b/lib-gstreamer_base_sys-597db3dedc19a43b` [2019-08-07T15:24:02Z INFO cargo::core::compiler::fingerprint] cause: No such file or directory (os error 2) Compiling gstreamer v0.15.0 (/home/slomo/Projects/rust/gstreamer-rs/gstreamer) Compiling gstreamer-base v0.15.0 (/home/slomo/Projects/rust/gstreamer-rs/gstreamer-base) Compiling gstreamer-base-sys v0.9.0 (https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys#51ea339a) Compiling num-traits v0.2.8 Compiling num-integer v0.1.41 [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (254a41b56eeaee46) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-b9a7d93fc632b110/build-script-build_script_build-b9a7d93fc632b110 [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (16fc2db57d214f2f) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-e7e6fddf87e1bac8/build-script-build_script_build-e7e6fddf87e1bac8 [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (86af641e34601ffb) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-a5a7c9fbee41f48d/run-build-script-build_script_build-a5a7c9fbee41f48d [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (cfc3415989d7e4a0) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-integer-1de667a13591bf38/build-script-build_script_build-1de667a13591bf38 [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (ab454748207ef340) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-traits-145acb1d9bc45e9a/build-script-build_script_build-145acb1d9bc45e9a [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (5c1c962a3ff422cf) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-sys-41a5360bf373bd25/build-script-build_script_build-41a5360bf373bd25 [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (244e414ae51ca59) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-sys-3fee14bc800a9e5f/run-build-script-build_script_build-3fee14bc800a9e5f [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (c03f4f4f46905253) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-fc9927b047410982/run-build-script-build_script_build-fc9927b047410982 [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] new local fingerprints depsbuild), gstreamer-base-sys, num-integer... [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (472256e0c4f73b52) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-integer-060c82a70b162e2e/run-build-script-build_script_build-060c82a70b162e2e [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] new local fingerprints deps [2019-08-07T15:24:02Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (229d000c3f1ebfed) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-traits-25bb1b9a4b871acd/run-build-script-build_script_build-25bb1b9a4b871acd [2019-08-07T15:24:03Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (fa23252ed1380f2c) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-sys-597db3dedc19a43b/lib-gstreamer_base_sys-597db3dedc19a43b [2019-08-07T15:24:03Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (fd54bbe2cd1a20fd) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-traits-4ecb08c51bf45215/lib-num_traits-4ecb08c51bf45215 [2019-08-07T15:24:04Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (ef27fc900ce3ccc9) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-integer-692b19206dc236e6/lib-num_integer-692b19206dc236e6 Compiling num-rational v0.2.2 [2019-08-07T15:24:04Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (137e7ba95bafb125) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/num-rational-3fa0f9e0dcf48d4c/lib-num_rational-3fa0f9e0dcf48d4c warning: unused import: `std::mem` --> gstreamer/src/functions.rs:11:5 | 11 | use std::mem; | ^^^^^^^^ | = note: #[warn(unused_imports)] on by default

[2019-08-07T15:24:17Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (576af547ea283993) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-d9fbb7020cd90fcc/lib-gstreamer-d9fbb7020cd90fcc
[2019-08-07T15:24:19Z DEBUG cargo::core::compiler::fingerprint] write fingerprint (cc76f14e3e9157d0) : /home/slomo/Projects/rust/gstreamer-rs/target/debug/.fingerprint/gstreamer-base-096acd0349ca860c/lib-gstreamer_base-096acd0349ca860c
Finished dev [unoptimized + debuginfo] target(s) in 16.74s

</details>

@sdroege
Copy link
Contributor Author

sdroege commented Aug 7, 2019

Also related #5364

@sdroege
Copy link
Contributor Author

sdroege commented Aug 8, 2019

Happens with latest nightly and 1.37 btw

@ehuss
Copy link
Contributor

ehuss commented Aug 11, 2019

I took a look, and there are a few reasons why gstreamer-base builds gstreamer differently:

  • gstreamer-base should re-export the same features to gstreamer. Otherwise gstreamer will be built with a different feature set. Something like this:
     v1_10 = ["gstreamer/v1_10", "gstreamer-sys/v1_10", "gstreamer-base-sys/v1_10"]
     v1_12 = ["gstreamer/v1_12", "gstreamer-sys/v1_12", "gstreamer-base-sys/v1_12", "v1_10"]
     v1_14 = ["gstreamer/v1_14", "gstreamer-sys/v1_14", "gstreamer-base-sys/v1_14", "v1_12"]
     v1_14_1 = ["gstreamer/v1_14", "gstreamer-sys/v1_14", "gstreamer-base-sys/v1_14_1", "v1_14"]
     v1_16 = ["gstreamer/v1_16", "gstreamer-sys/v1_16", "gstreamer-base-sys/v1_16", "v1_14_1"]
  • Unfortunately num_traits and num_integer get built with different features. When built from gstreamer they have the default and std features set because they are a dependency from serde-pickle which defines them that way. When built from gstreamer-base, they don't have any features set because serde-pickle isn't part of gstreamer-base. This is an oft-reported problem with dev-dependencies causing features to infect regular dependencies (Incorrect dev-dependency feature resolution #1796). -Zavoid-dev-deps is one way to work around this (Stabilize -Z avoid-dev-deps as --minimal-cargo-lock #5133). The only other way I can think of is to just allow default features in num-rational, but that may not be what you want.

One way to diagnose this kind of stuff is to run cargo build -v, and then for each command, diff the command-line arguments between two different invocations. You can quickly see when different commands have different --cfg arguments. If the metadata of a dependency is different, then you repeat the process for those dependencies.

@sdroege
Copy link
Contributor Author

sdroege commented Aug 12, 2019

Thanks for debugging this. I don't see how to solve that on my side though without changing behaviour in an undesirable way. The first one is clear and fine, the second is a bit problematic :)

@TriplEight
Copy link

I also faced a similar issue in a CI of a big workspace project. I have some tests that are only run when you cd crate.dir; cargo test --workspace --no-default-features --feature myfeature. And this obviously requres the whole project to be compiled for a handful of those tests. That's because --feature cannot be run in the root of a virtual workspace.

And I tried to optimize that, lining all the small tests after the main cargo test --workspace, but they are recompiling a third of a project and ruining the cache usage for this job.

The thing that worked for me was -Zpackage-features --features myfeatureA,myfeatureB which works from the root of the virtual wsp, does not require recompiling the parts of the project before the tests, hence does not ruin the cache, almost perfect. But it comes with the new rust everyday, which would force the cache recreation every day.

In the other words, when #5364 ?

@weihanglo
Copy link
Member

weihanglo commented Oct 13, 2023

This is seemly resolved since -Zpackage-features has been stabilized in 1.51. You can use the exact syntax package-name/feature-name to --features/-F flag.

Going to close this. If I understand something wrong or there is still something unresolved, please tell us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-features Area: features — conditional compilation C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

No branches or pull requests

4 participants