-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
cargo-gpu
right now is both a library and a binary.
When used as a library, some dependencies like env_logger
and clap
are pulled and compiled, but are not actually used.
It'd be nice to be able to use the library and not pull binary-only dependencies.
Unfortunately, right now Cargo doesn't support binary-only dependencies. The closest to that without splitting the crate might be to have a feature like binary
that would add necessary dependencies and enabled by default, while library users could use default-features = false
, here is an example of me doing the same in one of the crates: https://github.com/autonomys/subspace/blob/202d3abd67461fc6425e2e27303e46722e4b6397/crates/subspace-farmer/Cargo.toml#L14-L16
schell
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers