Skip to content

The attribute serde is currently unknown to the compiler #1261

@thijsc

Description

@thijsc

I've been trying to use attributes on Rust stable 1.26.0, but the compiler won't allow it:

error[E0658]: The attribute `serde` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
  --> / .../src/data.rs:16:5
   |
16 |     #[serde(serialize_with = "ordered_map")]
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The documentation on https://serde.rs/attributes.html says:

They require a Rust compiler version 1.15 or newer.

This statement seems incorrect. Or am I misunderstanding something?

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