init_default_registry

Function init_default_registry 

Source
pub fn init_default_registry()
Expand description

Initialize DEFAULT_OPERATOR_REGISTRY with enabled services.

This function is safe to call multiple times and will only perform initialization once.

ยงNotes

Some bindings link opendal as a staticlib, where #[ctor::ctor] initializers may not be executed due to linker behavior. Those bindings should call this function explicitly before using Operator::from_uri or Operator::via_iter.