Skip to content

--crate-type metadata overrides binary-ness of crates #38273

Closed
@nrc

Description

@nrc

If you make a crate metadata, then it treats the crate as a library in all cases. This causes problems because the compiler will think that any non-public code is dead and issue warnings.

I'm not exactly sure the fix here - I don't want to always silence these warnings because they are valid for library crates. OTOH, I don't really want metadata-bin as another crate type, that might be the best thing to do though.

cc @alexcrichton

Metadata

Metadata

Assignees

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