nfd 0.0.4

Rust bindings to nativefiledialog
Documentation
Build #1495334 2024-11-05T06:06:05.014853+00:00
# rustc version
rustc 1.84.0-nightly (fbab78289 2024-11-04)# docs.rs version
docsrs 0.6.0 (fd0fad95 2024-11-04)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/nfd-0.0.4/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/nfd-0.0.4/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20241104-1.84.0-nightly-fbab78289\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/i686-pc-windows-msvc\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "i686-pc-windows-msvc", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 75282b56df759be4ef18854a43dba19a092d0fc311348fbc48df0c92ce2c18b3
[INFO] running `Command { std: "docker" "start" "-a" "75282b56df759be4ef18854a43dba19a092d0fc311348fbc48df0c92ce2c18b3", kill_on_drop: false }`
[INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021
[INFO] [stderr] warning: trailing semicolon in macro used in expression position
[INFO] [stderr]   --> build.rs:29:47
[INFO] [stderr]    |
[INFO] [stderr] 29 |         concat!("nativefiledialog/src/", $suf);
[INFO] [stderr]    |                                               ^
[INFO] [stderr] ...
[INFO] [stderr] 37 |     cfg.include(nfd!("include"));
[INFO] [stderr]    |                 --------------- in this macro invocation
[INFO] [stderr]    |
[INFO] [stderr]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stderr]    = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
[INFO] [stderr]    = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default
[INFO] [stderr]    = note: this warning originates in the macro `nfd` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: trailing semicolon in macro used in expression position
[INFO] [stderr]   --> build.rs:29:47
[INFO] [stderr]    |
[INFO] [stderr] 29 |         concat!("nativefiledialog/src/", $suf);
[INFO] [stderr]    |                                               ^
[INFO] [stderr] ...
[INFO] [stderr] 38 |     cfg.file(nfd!("nfd_common.c"));
[INFO] [stderr]    |              -------------------- in this macro invocation
[INFO] [stderr]    |
[INFO] [stderr]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stderr]    = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
[INFO] [stderr]    = note: this warning originates in the macro `nfd` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: trailing semicolon in macro used in expression position
[INFO] [stderr]   --> build.rs:29:47
[INFO] [stderr]    |
[INFO] [stderr] 29 |         concat!("nativefiledialog/src/", $suf);
[INFO] [stderr]    |                                               ^
[INFO] [stderr] ...
[INFO] [stderr] 41 |         cfg.file(nfd!("nfd_cocoa.m"));
[INFO] [stderr]    |                  ------------------- in this macro invocation
[INFO] [stderr]    |
[INFO] [stderr]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stderr]    = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
[INFO] [stderr]    = note: this warning originates in the macro `nfd` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: trailing semicolon in macro used in expression position
[INFO] [stderr]   --> build.rs:29:47
[INFO] [stderr]    |
[INFO] [stderr] 29 |         concat!("nativefiledialog/src/", $suf);
[INFO] [stderr]    |                                               ^
[INFO] [stderr] ...
[INFO] [stderr] 46 |         cfg.file(nfd!("nfd_win.cpp"));
[INFO] [stderr]    |                  ------------------- in this macro invocation
[INFO] [stderr]    |
[INFO] [stderr]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stderr]    = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
[INFO] [stderr]    = note: this warning originates in the macro `nfd` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: trailing semicolon in macro used in expression position
[INFO] [stderr]   --> build.rs:29:47
[INFO] [stderr]    |
[INFO] [stderr] 29 |         concat!("nativefiledialog/src/", $suf);
[INFO] [stderr]    |                                               ^
[INFO] [stderr] ...
[INFO] [stderr] 71 |         cfg.file(nfd!("nfd_gtk.c"));
[INFO] [stderr]    |                  ----------------- in this macro invocation
[INFO] [stderr]    |
[INFO] [stderr]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[INFO] [stderr]    = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
[INFO] [stderr]    = note: this warning originates in the macro `nfd` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated type alias `gcc::Config`: gcc::Config has been renamed to gcc::Build
[INFO] [stderr]   --> build.rs:34:24
[INFO] [stderr]    |
[INFO] [stderr] 34 |     let mut cfg = gcc::Config::new();
[INFO] [stderr]    |                        ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(deprecated)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated associated function `gcc::Build::new`: crate has been renamed to `cc`, the `gcc` name is not maintained
[INFO] [stderr]   --> build.rs:34:32
[INFO] [stderr]    |
[INFO] [stderr] 34 |     let mut cfg = gcc::Config::new();
[INFO] [stderr]    |                                ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `nfd` (build script) generated 7 warnings
[INFO] [stderr]    Compiling nfd v0.0.4 (/opt/rustwide/workdir)
[INFO] [stderr] warning: nfd@0.0.4: In file included from /usr/include/c++/11/stdlib.h:36,
[INFO] [stderr] warning: nfd@0.0.4:                  from nativefiledialog/src/nfd_common.c:7:
[INFO] [stderr] warning: nfd@0.0.4: /usr/include/c++/11/cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory
[INFO] [stderr] warning: nfd@0.0.4:    41 | #include <bits/c++config.h>
[INFO] [stderr] warning: nfd@0.0.4:       |          ^~~~~~~~~~~~~~~~~~
[INFO] [stderr] warning: nfd@0.0.4: compilation terminated.
[INFO] [stderr] error: failed to run custom build command for `nfd v0.0.4 (/opt/rustwide/workdir)`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/target/debug/build/nfd-569670b50d187d70/build-script-build` (exit status: 101)
[INFO] [stderr]   --- stdout
[INFO] [stderr]   TARGET = Some("i686-pc-windows-msvc")
[INFO] [stderr]   OPT_LEVEL = Some("0")
[INFO] [stderr]   TARGET = Some("i686-pc-windows-msvc")
[INFO] [stderr]   HOST = Some("x86_64-unknown-linux-gnu")
[INFO] [stderr]   TARGET = Some("i686-pc-windows-msvc")
[INFO] [stderr]   TARGET = Some("i686-pc-windows-msvc")
[INFO] [stderr]   HOST = Some("x86_64-unknown-linux-gnu")
[INFO] [stderr]   CXX_i686-pc-windows-msvc = None
[INFO] [stderr]   CXX_i686_pc_windows_msvc = None
[INFO] [stderr]   TARGET_CXX = None
[INFO] [stderr]   CXX = None
[INFO] [stderr]   HOST = Some("x86_64-unknown-linux-gnu")
[INFO] [stderr]   CROSS_COMPILE = None
[INFO] [stderr]   TARGET = Some("i686-pc-windows-msvc")
[INFO] [stderr]   HOST = Some("x86_64-unknown-linux-gnu")
[INFO] [stderr]   CXXFLAGS_i686-pc-windows-msvc = None
[INFO] [stderr]   CXXFLAGS_i686_pc_windows_msvc = None
[INFO] [stderr]   TARGET_CXXFLAGS = None
[INFO] [stderr]   CXXFLAGS = None
[INFO] [stderr]   DEBUG = Some("true")
[INFO] [stderr]   running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m32" "-I" "nativefiledialog/src/include" "-Wall" "-Wextra" "/Fo/opt/rustwide/target/i686-pc-windows-msvc/debug/build/nfd-607f049ea17d1db8/out/nativefiledialog/src/nfd_common.o" "/c" "nativefiledialog/src/nfd_common.c"
[INFO] [stderr]   cargo:warning=In file included from /usr/include/c++/11/stdlib.h:36,
[INFO] [stderr]   cargo:warning=                 from nativefiledialog/src/nfd_common.c:7:
[INFO] [stderr]   cargo:warning=/usr/include/c++/11/cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory
[INFO] [stderr]   cargo:warning=   41 | #include <bits/c++config.h>
[INFO] [stderr]   cargo:warning=      |          ^~~~~~~~~~~~~~~~~~
[INFO] [stderr]   cargo:warning=compilation terminated.
[INFO] [stderr]   exit status: 1
[INFO] [stderr] 
[INFO] [stderr]   --- stderr
[INFO] [stderr]   thread 'main' panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/gcc-0.3.55/src/lib.rs:1672:5:
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stderr]   Internal error occurred: Command "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m32" "-I" "nativefiledialog/src/include" "-Wall" "-Wextra" "/Fo/opt/rustwide/target/i686-pc-windows-msvc/debug/build/nfd-607f049ea17d1db8/out/nativefiledialog/src/nfd_common.o" "/c" "nativefiledialog/src/nfd_common.c" with args "c++" did not execute successfully (status code exit status: 1).
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stderr]   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[INFO] running `Command { std: "docker" "inspect" "75282b56df759be4ef18854a43dba19a092d0fc311348fbc48df0c92ce2c18b3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "75282b56df759be4ef18854a43dba19a092d0fc311348fbc48df0c92ce2c18b3", kill_on_drop: false }`
[INFO] [stdout] 75282b56df759be4ef18854a43dba19a092d0fc311348fbc48df0c92ce2c18b3