Skip to content

Docs suggests document-features as an optional feature #7

Closed
@emilk

Description

@emilk

Hi, and thanks for a great crate!

The docs suggests adding this to your Cargo.toml:

## Enable this when building the docs
document-features = { version = "0.2", optional = true }

The problem with this is that it breaks cargo check:

7 | #![doc = document_features::document_features!()]
  |          ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `document_features`

I would suggest updating the docs to instead just have

document-features = "0.2"

unless there is some way to get around the cargo check issue that I'm not aware of

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions