Skip to content

Yoga 0.4.0 build failing (unable to read binding.rs from OUT_DIR) #2017

Closed as not planned
@nicoburns

Description

@nicoburns

Crate name

yoga

Build failure link

https://docs.rs/crate/yoga/0.4.0/builds/705324

Additional details

The error is:

[INFO] [stderr] Documenting yoga v0.4.0 (/opt/rustwide/workdir)
[INFO] [stderr] error: couldn't read /opt/rustwide/target/x86_64-unknown-linux-gnu/debug/build/yoga-4b1fce5c61a680df/out/bindings.rs: No such file or directory (os error 2)
[INFO] [stderr] --> src/lib.rs:16:5
[INFO] [stderr] |
[INFO] [stderr] 16 | include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] = note: this error originates in the macro include (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] error: could not document yoga

So it seems that it is unable to find the bindings.rs file in the OUT_DIR (which should be generated by bindgen in the build.rs), but there is not indication that the generation failed. I am unable to reproduce this locally either by running cargo doc in a cloned version of the yoga-rs repo or by adding the published version of the crate as a dependency and running cargo doc (both work fine).

Any ideas? It looks like it ought to work fine to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions