Skip to content

Commit 240f561

Browse files
committed
Clarify intended use of WasiTlsCtxBuilder::provider
1 parent b8d0572 commit 240f561

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

crates/wasi-tls/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ impl WasiTlsCtxBuilder {
129129
}
130130

131131
/// Sets the TLS provider to use for this context.
132+
///
133+
/// By default, this is set to the [`DefaultProvider`] which is picked at
134+
/// compile time based on feature flags. If this crate is compiled with
135+
/// multiple TLS providers, this method can be used to specify the provider
136+
/// at runtime.
132137
pub fn provider(mut self, provider: Box<dyn TlsProvider>) -> Self {
133138
self.provider = provider;
134139
self

0 commit comments

Comments
 (0)