Use subtree again to allow publishing the crate #34
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
cargo package
is not currently working becausecargo package
ignores subfolders withCargo.toml
in them. We can't work around that with submodules since they don't allow making local changes (and I couldn't get it to work in conjunction withsparse-checkout
).This reverts to using
subtree
(which in practice makes this PR include the entirezcash
tree, so it looks much bigger than it is).We were using
subtree
(exactly to solve this issue) but we had reverted tosubmodule
becausesubtree
behaves strangely if you use squash-and-merge. For this reason, please do not squash-and-merge this PR (though if that ends up happening it's easy to fix, and it's now documented in the README).I also did not use
cargo release
for this PR because I only noticed later that we were supposed to use it. So I manually made the changes. I'm not sure if we want to keep using it from now on.