-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
We currently rely on the typed-builder crate to generate the builders for our options structs, which is really nice for us as developers of the driver as it saves a ton of boilerplate. The unfortunate drawback is that the generated builder() method and any actual field builder methods (e.g. .write_concern()) do not place nicely with rust-analyzer, and thus do not appear is user's autocompletion. This can make option discovery and entry a cumbersome experience.
We should consider manually generating the code for these builders instead and checking it into the repository so that it will play nicely with IDE tooling.
Note that this would technically be a breaking change as we wouldn't be mimicking the typed-builder API exactly, but in practice it seems extremely unlikely that it will actually break any code if done right.
- is related to
-
RUST-1695 Use consistent defaults for TypedBuilder implementations
- Closed