Skip to content

Rust: Support path-specific additional_derives #1386

@tomasol

Description

@tomasol

Currently additional_derives can only be set globally, which feels too broad.
For use cases like adding serde annotations it would be better if the derives could be scoped per type or interface. Would it make sense to extend the generate! macro to accept a map of path -> derives?

Metadata

Metadata

Assignees

No one assigned

    Labels

    gen-rustRelated to bindings for Rust-compiled-to-WebAssembly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions