Skip to content

#[swift_bridge(Sendable)] does not work on transparent Structs. #365

Description

@georgemp

If we try to use the Sendable attribute on transparent structs, we get an error Did not recognize struct attribute "Sendable".

Example

#[swift_bridge(swift_repr = "struct", Sendable)]
struct TextAttrs {
  traits: u8,
}

It would be nice to have Rust Send + Sync structs be Sendable in swift.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions