Skip to content

Allow to use symbols from another sys crate #1929

@gdesmott

Description

@gdesmott

I have 2 C libraries, let's call them A and B and I'm generating low levels bindings for both using bindgen. B is using A's symbols in its API. As a result the bindings generated in B-sys are using B namespaced types instead of A's.

It would be great to be able to ask bindgen to depends on A-sys and use those symbols, saving users to cast between B::some_type to A::some_type when using API from A-sys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions