-
Notifications
You must be signed in to change notification settings - Fork 523
split bin and lib targets of solana-faucet out to separate crates #6326
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: master
Are you sure you want to change the base?
Conversation
how do we feel about doing this? i don't think either target from this crate is technically public api |
665487f
to
f39a16c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6326 +/- ##
=========================================
- Coverage 82.8% 82.8% -0.1%
=========================================
Files 848 848
Lines 379050 379050
=========================================
- Hits 314049 314027 -22
- Misses 65001 65023 +22 🚀 New features to boost your workflow:
|
|
n/m there doesn't seem to be a clean way to omit a single crate target from the workspace without also breaking |
confirmed that |
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.
The changes look good to me!
Just on naming, I'd be inclined to keep solana-faucet
as the library to avoid breaking users, and make solana-faucet-cli
or solana-faucet-server
as the binary.
On the other hand, there aren't too many direct users of the crate, and I think we know them all personally: https://crates.io/crates/solana-faucet/reverse_dependencies
The only info about best practices I could find for a bin+lib was a forum answer: https://users.rust-lang.org/t/publishing-crate-with-lib-and-binary/124519/2
that's what i wanted to do, but then we can't stub the bin to offer migration guidance for anyone attempting to
i saw both
seems like only two are even using modern crates
|
i went ahead and reserved |
f39a16c
to
64419b8
Compare
Problem
dependency version pinning for
solana-faucet
bin target unnecessarily restricts dependency resolution for the lib targetSummary of Changes
solana-faucet
tosolana-faucet-interface
(ala sdk naming convention)solana-faucet
bin target to it's own crate (solana-faucet-bin
)solana-faucet-interface
dependency specificationsTODO: one time publish
solana-faucet
as a stub crate with guidance for migrating to new crates