ayrat555 / fang

Background processing for Rust
https://fang.badykov.com/
MIT License
609 stars 25 forks source link

Use `dep:` prefix in feature dependencies #135

Closed Dopplerian closed 1 year ago

Dopplerian commented 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:

[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.