Skip to content

Mention that crate_type attribute is ignored when using Cargo #890

@RalfJung

Description

@RalfJung

https://rustbyexample.com/attribute/crate.html is the first search hit when I look for information on the crate_type attribute. Unfortunately, that site fails to mention that the attribute has no effect whatsoever when using Cargo.

Given that this means the attribute is hardly ever useful, I think this is worth mentioning.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions