Skip to main content

Module extensions

Module extensions 

Source
Expand description

Local glue between cli’s dispatch and the WeftExtensions trait surface.

In OSS builds without the client feature, main.rs constructs a NoopWeftExtensions from the shim crate directly. With client enabled, this module provides EnabledWeftExtensions, which downcasts the trait’s opaque arguments back to cli::cli::AuthCommands and delegates to the hosted client implementation.

Step 5 of the OSS extraction plan moves the underlying command implementations out of cli into a separate client crate that ships the closed build. At that point this adapter goes away and the closed crate implements WeftExtensions directly.

Structs§

EnabledWeftExtensions