Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add Builder provider interface #6626
This change abstracts out the Builder API into a provider model, in readiness for adding a new API provider in the builder-api-client crate. Functionality wise, it is a no-op. There's a bit of change that spills out from the builder-api-client due to managing the DisplayProgress trait in the provider, but its fairly minor.
Signed-off-by: Salim Alam email@example.com
@baumanj The bulk of the API code is just moved over from lib.rs to builder.rs. The changes there - if you look at the deleted code in lib.rs, there are some APIs that had generic params - those were modified to be non-generic when moved to builder.rs. There's only a few of those. Other than that, some things that were unused were removed - eg, fetch_origin_secret_key (which is not used by hab - and builder has its own mini-API so it doesn't use this interface).
From the caller's perspective, the main change is the return type from Client::new, and the type of UIWriter::progress.