-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
In lib.rs, we currently have a macro that only conditionally defines the modules of the driver if only a single runtime is enabled. This was done to allow for a nice compile error message in case a user accidentally enables both. Due to a recent update to docs.rs, there is now a warning on every method that a specific feature flag needs to be enabled. e.g. for Collection: https://docs.rs/mongodb/2.0.1/mongodb/struct.Collection.html#implementations
While its nice to present users with a legible compile error when possible, it doesn't seem worth the visual noise it generates in our documentation. We should remove these conditional defines so that the documentation can omit the feature flag warnings again.