Skip to content

No way to disable autobins #6205

@ehuss

Description

@ehuss

A user on Discord noted that there is no way to completely disable automatic target discovery. Example:

src/lib.rs:

pub mod bin;

src/bin/mod.rs:

// empty

Currently this fails because it thinks there is a bin target called mod, regardless of whether autobins is specified.

I'd like to propose that autobins=false should disable autodiscovery, even if you don't specify any [[bin]] targets.

Metadata

Metadata

Assignees

Labels

C-bugCategory: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions