-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make otp-cache a binary target of nitrocli
Upon its inception, the common nitrocli extension glue code was put into a crate, nitrocli-ext. Doing so comes with a slew of challenges in terms of distribution, versioning, and compatibility with the main program. Because a different crate is used, that property transfers to extensions, meaning that they also have to be separate crates, for example. Packaging of Rust programs on some Linux distributions is based on content downloaded from crates.io, effectively forcing us to publish the extension crates, which in turn forces us to publish nitrocli-ext and to commit to a stable API. Then we get into questions of how to version separately published creates and how to ensure or enforce compatibility. In short, nitrocli-ext being a crate has trickle down effects that introduce additional complications that we did not anticipate initially. To that end, with this change we make nitrocli-ext a mere module of the crate and the otp-cache core extension a binary target. This implies that both are versioned as the main program is and are also available when pulling the published archive from crates.io, circumventing most if not all of the aforementioned problems.
- Loading branch information
1 parent
0153941
commit 51f9d66
Showing
7 changed files
with
12 additions
and
88 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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