Skip to content

Cfgs from build script not passed to rustdoc #1980

@gkoz

Description

@gkoz

The cfg directives returned by the build script via the cargo:rustc-cfg=foo convention are not passed to rustdoc when invoking cargo doc.

rustdoc seems to accept them just fine i.e. invoking it manually with --cfg foo produces the expected results.

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