Skip to content

Add whitelist to [export] #484

@benma

Description

@benma

Hi

By default cbindgen exports everything, and a blacklist can be added by setting exclude in the [export] section.

In my current use, it would be great if I could set a whitelist instead of a blacklist, as I'd like to export subsets of the crate depending on the compilation target.

In general I like explicit lists (whitelist) over implicit lists (blacklist).

We also tried using feature attributes to enable/disable functions based on the target, but that did not seem work.

cc @NickeZ

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