gdesmott / system-deps

Run pkg-config from declarative dependencies in Cargo.toml
Apache License 2.0
89 stars 21 forks source link

"no field `ld_args` on type `pkg_config::Library`" on nightly #94

Closed dimbleby closed 4 months ago

dimbleby commented 4 months ago

running a CI pipeline against nightly rust

error[E0609]: no field `ld_args` on type `pkg_config::Library`
    --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/system-deps-7.0.0/src/lib.rs:1068:24
     |
1068 |             ld_args: l.ld_args,
     |                        ^^^^^^^ unknown field
     |
     = note: available fields are: `libs`, `link_paths`, `frameworks`, `framework_paths`, `include_paths` ... and 2 others

For more information about this error, try `rustc --explain E0609`.
error: could not compile `system-deps` (lib) due to 1 previous error

maybe you already know about this, maybe this is a nightly rust problem and not a system-deps problem, certainly it's not important to me so long as it is happening only on nightly - but I figured I should let you know about it in case work is needed

gdesmott commented 4 months ago

Thanks for the info, I was not aware of this problem.

That's really strange, why would Library.ld_args be missing with nightly?

@sdroege @amyspark : any idea?

sdroege commented 4 months ago

I don't know. It's always there since pkg-config-rs 0.3.24. Maybe that CI is using an ancient pkg-config-rs version?

gdesmott commented 4 months ago

Good point, we should have bumped the minimal version required!

Looks like it's from 0.3.25 actually.

dimbleby commented 4 months ago

ah yes, I also test with minimal versions - I hadn't realised that was the specific test that was failing

thanks!