-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat: extended AddOns with functions that can modify the StageSet(wip) #16039
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
base: main
Are you sure you want to change the base?
Conversation
R: Future<Output = eyre::Result<E>> + Send, | ||
E: Future<Output = eyre::Result<()>> + Send, | ||
{ | ||
self.add_ons.stage_installer = None; |
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.
kept this as none for now
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.
nice, I only have a small nit,
then I likely need to try this a bit to figure out how to finalize this
/// Custom stage installers | ||
pub stage_installer: Option<Box<dyn BoxedInstallStages<Node>>>, |
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.
nice
/// Installs custom stages into the stage set builder with a boxed future. | ||
fn on_stages( | ||
self: Box<Self>, | ||
stages: StageSetBuilder<Node>, |
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.
same
crates/node/builder/src/lib.rs
Outdated
@@ -46,6 +46,9 @@ pub use aliases::*; | |||
/// Support for installing the ExExs (execution extensions) in a node. | |||
pub mod exex; | |||
|
|||
/// Support for installing the stages in a node. | |||
pub mod install_stages; |
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.
let's just call this stages
fixes #16032