Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-1076

Remove conditional definition of driver modules

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.0
    • 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.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: