Closed lu-zero closed 2 months ago
Can you elaborate what cinstall
is and how it should be used?
It is part of cargo-c, it builds and install the C-API crate as a normal C-library (both static and shared) including the pkg-config file.
It uses the metadata I added to Cargo.toml to find the crate(s) that should be made libraries and optionally generates the C header or install pre-made ones.
Can you add a note about it to crates/c-api/README.md
? So people would know how to use it.
I don't want to add a random stuff to Cargo.toml. Since it will only confuse people.
Here an update with another commit to convert the example to use the uninstalled pkg-config.
This time it's too much. Most people should still use just a regular cargo build
.
Let's keep just the Cargo.toml
changes. I will update the readme later.
Thanks.
Fixes #592
The default
cargo cinstall --destdir some/path
produces on macos: