-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplifying the client API and refactoring federation #268
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only critical question is about interaction in client.
let package_name = &packages.get(log_id).unwrap().name; | ||
|
||
if self.auto_accept_federation_hints | ||
|| Confirm::with_theme(&ColorfulTheme::default()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having this kind of interaction deep in the client like this means it isn't a general purpose client any more, it is specialized to CLIs. Given recent discussions should we give up on this crate being a general-purpose client library?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this crate is only being used for CLIs at the moment. I was leaning towards simplifying this crate for that use case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lann Fine as is? Feature flag?
If refactored into a callback, it would need be async
. Started looking complex and wasn't sure it was worthwhile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be refactored later.
…package if not initialized and doing a package publish
This PR starts to simplify the client API and enables using federation in importing crates such as
cargo-component
andwac
.Draft PR for
cargo-component
Draft PR for
wac