Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Make certain structs derive Copy #41

@qdot

Description

@qdot

I'm working on https://github.com/qdot/libappindicator-sys, which will use gtk-sys for some of the symbols it needs to fill in for function arguments. I'd like to use other g*-sys crates to fill in things like GObject/GType/GTypeClass/etc that are used as struct field types.

The problem is that I'm using bindgen for my library, and it creates all structs as #[derive(Debug, Copy)]. Since none of the G* structs impl Copy, I'm stuck using the versions that bindgen creates. It works, but it'd be nice to have everything provided from the g*-sys crates if possible.

Here's the commit where I brought this up on the project

wusyong/libappindicator-sys@e3f9ce6#commitcomment-21061033

cc @jonhoo

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