Skip to content

Remove unneeded extern crate serde #350

Closed
@dtolnay

Description

@dtolnay

Since rust-lang/rust#42588, Rust warns by default on unused extern crates. Some of the readme example code, as well as possibly other examples in rustdoc, has extern crate serde but does not refer to anything from it. It is there as a reminder that the generated code requires serde to be listed as a dependency in Cargo.toml.

I imagine we can make up for it by providing an explicit Cargo.toml snippet instead.

[dependencies]
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"

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