Skip to content

feat: Allow deferred initialization of subcommands#4792

Merged
epage merged 1 commit intoclap-rs:masterfrom
epage:defer
Jun 9, 2023
Merged

feat: Allow deferred initialization of subcommands#4792
epage merged 1 commit intoclap-rs:masterfrom
epage:defer

Conversation

@epage
Copy link
Copy Markdown
Member

@epage epage commented Mar 27, 2023

This is mostly targeted at reducing startup time for no-op commands
within very large applications, like deno (see #4774).

This comes at the cost of 1.1 KiB of binary size

@epage epage marked this pull request as draft March 27, 2023 18:41
Comment thread clap_builder/src/builder/command.rs
Comment thread clap_builder/src/builder/command.rs
This is mostly targeted at reducing startup time for no-op commands
within *very* large applications, like deno (see clap-rs#4774).

This comes at the cost of 1.1 KiB of binary size
@epage epage marked this pull request as ready for review June 9, 2023 14:20
@epage epage changed the title feat: Allow defer initialization of subcommands feat: Allow deferred initialization of subcommands Jun 9, 2023
@epage epage merged commit 13534b6 into clap-rs:master Jun 9, 2023
@epage epage deleted the defer branch June 9, 2023 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant