Skip to content

Commit

Permalink
Mark AsyncConfigBuilder deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
  • Loading branch information
ijackson authored and matthiasbeyer committed Oct 23, 2023
1 parent ce27cc0 commit c494cd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ pub struct DefaultState {
//
// In a future release, we should have
// type AsyncConfigBuilder = ConfigBuilder<AsyncState>;
#[deprecated = "AsyncConfigBuilder is useless. Use ConfigBuilder<AsyncState>"]
#[doc(hidden)]
#[derive(Debug, Clone, Default)]
pub struct AsyncConfigBuilder {}
Expand Down
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mod ser;
mod source;
mod value;

pub use crate::builder::{AsyncConfigBuilder, ConfigBuilder};
pub use crate::builder::ConfigBuilder;
pub use crate::config::Config;
pub use crate::env::Environment;
pub use crate::error::ConfigError;
Expand All @@ -46,6 +46,9 @@ pub use crate::source::AsyncSource;
pub use crate::source::Source;
pub use crate::value::{Value, ValueKind};

#[allow(deprecated)]
pub use crate::builder::AsyncConfigBuilder;

// Re-export
#[cfg(feature = "convert-case")]
pub use convert_case::Case;

0 comments on commit c494cd8

Please sign in to comment.