Closed Dopplerian closed 1 year ago
This prevents users from manually enabling optional dependencies as if they were features.
Without this, the following Cargo.toml would be valid:
Cargo.toml
[package] name = "some-package" version = "0.1.0" [dependencies] fang = { version = "0.10.4" , default-features = false, features = ["bb8-postgres"]}
The Cargo Book recomends this.
This prevents users from manually enabling optional dependencies as if they were features.
Without this, the following
Cargo.toml
would be valid:The Cargo Book recomends this.