Skip to content

[Bug] extra_derives doesn't apply to periphery structs #1009

Closed

Description

@squadgazzz

Component

sol! macro

What version of Alloy are you on?

1.3.0

Operating System

macOS (Apple Silicon)

Describe the bug

Problem

When generating SC rust binding with sol! macro and adding extra_derives, those derives apply only to the SC instance Rust struct, and currently there is no direct way to do the same for periphery structs such as SC events and the enum that contains all of them, which gets generated altogether with the SC instance.

Acceptance criteria

extra_derives applies to all the generated SC instance-related structs, such as events, an enum of events, etc.

Activity

  1. added
    bug
    on Sep 16, 2025
  2. mattsse commented on Sep 16, 2025

    @mattsse
    Member

    @squadgazzz ah I think this was actually just added recently

    #1003

    can trigger a new patch, maybe we want more impls?

    feel free to send a pr

  3. squadgazzz commented on Sep 17, 2025

    @squadgazzz
    ContributorAuthor

    @mattsse thanks, but the mentioned PR only adds Clone, right?

    Ok, I'll try to open a PR asap.

  4. moved this from Todo to Done in Alloyon Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions