Skip to content

Provide pkg-config file with the C library #592

Closed
@sdroege

Description

@sdroege

Providing a pkg-config file makes it easier for users of the library to actually find it, check its version and get the correct compiler and linker flags.

cargo-c could be helpful here for generating the pkg-config file and also to provide a mechanism for installing it, the library itself and the header. It also ensures that the library has a valid and correct soname set, which cargo doesn't set at all when building a cdylib.

cargo-c also allows running cbindgen automatically but AFAIU you're manually editing the output of it so that's maybe not very useful here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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