joshtriplett / metadeps

Run pkg-config from declarative dependencies in Cargo.toml
28 stars 29 forks source link

Re-export pkg-config #10

Open lu-zero opened 6 years ago

lu-zero commented 6 years ago

I'm currently making -sys crates so that if a build feature is present the package builds an internal version of the dependency, otherwise it relies on metadeps.

In the build case I'd need to statically link the library.

Would be nice to either have a config() function available so statik() and other parameters can be passed or just use Library and Config from the same pkg-config used by metadeps.

misos1 commented 6 years ago

Without Config::cargo_metadata() is this package not so usable: https://github.com/alexcrichton/pkg-config-rs/issues/69

joshtriplett commented 5 years ago

I don't plan to expose pkg-config; eventually, metadeps may support dependency mechanisms other than pkg-config. However, I'm open to the idea of supporting optional vendored versions of dependencies (along with a standard mechanism to disable them).