-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
daemon: make all components optional
In addition to having routing protocols as optional features, make the base components optional as well for extra modularity. The optional feature dependency graph is as follows: * keychain * interface <- routing <- policy protocols By default, all features remain enabled. This change allows users to customize the daemon according to their specific requirements, reducing binary size on systems where certain components are unnecessary (e.g., keychains and routing policies). NOTE: some #[allow(...)] annotations were added to silence build warnings when --no-default-features is passed. Suggested-by: Frederic LOUI <[email protected]> Signed-off-by: Renato Westphal <[email protected]>
- Loading branch information
Showing
3 changed files
with
78 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters