@@ -103,23 +103,18 @@ pub struct DefaultState {
103
103
sources : Vec < Box < dyn Source + Send + Sync > > ,
104
104
}
105
105
106
- /// The asynchronous configuration builder.
107
- ///
108
- /// Similar to a [`ConfigBuilder`] it maintains a set of defaults, a set of sources, and overrides.
109
- ///
110
- /// Defaults do not override anything, sources override defaults, and overrides override anything else.
111
- /// Within those three groups order of adding them at call site matters - entities added later take precedence.
112
- ///
113
- /// For more detailed description and examples see [`ConfigBuilder`].
114
- /// [`AsyncConfigBuilder`] is just an extension of it that takes async functions into account.
115
- ///
116
- /// To obtain a [`Config`] call [`build`](AsyncConfigBuilder::build) or [`build_cloned`](AsyncConfigBuilder::build_cloned)
117
- ///
118
- /// # Example
119
- /// Since this library does not implement any [`AsyncSource`] an example in rustdocs cannot be given.
120
- /// Detailed explanation about why such a source is not implemented is in [`AsyncSource`]'s documentation.
121
- ///
122
- /// Refer to [`ConfigBuilder`] for similar API sample usage or to the examples folder of the crate, where such a source is implemented.
106
+ // Dummy useless struct
107
+ //
108
+ // This struct exists only to avoid the semver break
109
+ // which would be implied by removing it.
110
+ //
111
+ // This struct cannot be used for anything useful.
112
+ // (Nor can it be extended without a semver break, either.)
113
+ //
114
+ // In a future release, we should have
115
+ // type AsyncConfigBuilder = ConfigBuilder<AsyncState>;
116
+ #[ deprecated = "AsyncConfigBuilder is useless. Use ConfigBuilder<AsyncState>" ]
117
+ #[ doc( hidden) ]
123
118
#[ derive( Debug , Clone , Default ) ]
124
119
pub struct AsyncConfigBuilder { }
125
120
0 commit comments