Skip to content

Choice between binding category for improved library surface #1458

@edsko

Description

@edsko

We generate safe and unsafe function imports in the preprocessor (and allow users to choose in TH mode). This ticket is about not generating some of those; it might be that library authors know that some functions must be used in safe or must be used in unsafe mode, and that offering both might suggest a choice that is really not there. Thus not generating those bindings would be less likely to result in problems.

This is obviously not essential; users can simply choose not to use the functions that should not be used; and anyway, probably most hs-bindgen generated bindings will then be used to generate higher level bindings. But it's nonetheless worth considering.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions