Replies: 1 comment 3 replies
-
|
Nice, new submission for most bike sheddable discussion! I'll start: As far as The |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The rust-bitcoin/rust-bitcoin workspace has a convention to refer to packages using the directory name it lives in over the name specified in the package's manifest. So
consensus_encodinginstead ofbitcoin-consensus-encoding. You can see this in stuff like the PR labels and the old CI config scripts. I am not sure of the exact reasons here, possibly to avoid all thebitcoin-*prefixes, quicker to find in the file system, but I would guess it is just easier when shell scripting things.With cargo-rbmt, I have been preferring the manifest name instead of the directory. This matches
cargo's--packagearg which is used often by rbmt. It is also easier in rbmt to retrieve the package names under the hood withcargo metadata.Now the question is if cargo-rbmt should force rust-bitcoin to change a bit and adopt more manifest name usage to simplify cargo-rbmt. One place I am considering now is how we store APIs under
api/$PACKAGE/*, should package be the directory (like it is in rust-bitcoin) or the manifest name?Beta Was this translation helpful? Give feedback.
All reactions