Skip to content
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

Why re-publishing hwi crate as bitcoin_hwi ? #38

Open
notmandatory opened this issue Jun 13, 2022 · 10 comments
Open

Why re-publishing hwi crate as bitcoin_hwi ? #38

notmandatory opened this issue Jun 13, 2022 · 10 comments

Comments

@notmandatory
Copy link

Hi @dr-orlovsky I see that you have re-published the hwi crate from bitcoindevkit/rust-hwi as a new bitcoin_hwi crate with some small additional commits. Would you be willing to add these changes to the original project by submitting a PR and yank your bitcoin_hwi crate so we don't have two nearly identical projects published to crates.io?

@dr-orlovsky
Copy link
Member

Hi! My plan is to rewrite the crate from scratch over the summer. I started with cloning for now not to wait for the PRs to be merged - I have to do a lot of releases over the summer.

Feel free to pick up the commits from here for now to the upstream.

@notmandatory
Copy link
Author

Where can I find your fork ? I don't mind opening PRs to try and upstream your commits if they're generally useful to other users of rust-hwi.

@dr-orlovsky
Copy link
Member

Hm, I am confused, I thought it is here, should be in hwi subdirectory of this repo. Ok, searching for it...

@dr-orlovsky
Copy link
Member

Seems like I changed it somewhere locally and didn't pushed to GitHub :( Now I can't find it even on disk.

Anyway, the change was in adding more derives to a Error type and adding Copy/Clone to some of the data types, so it was ultra-trivial.

The purpose of my future crate rewrite will be using libusb directly from rust, avoiding interface through command line

@notmandatory
Copy link
Author

OK for now I'll put in a PR to rust-hwi to add the missing derived traits but of course it's up to you if you want to use it in your project or use your own lib. I do think you should provide a link to the source for your current bitcoind_hwi crate so that the original MIT license copyright requirement is respected.

@dr-orlovsky
Copy link
Member

Absolutely. I have very tight schedule until the 26th of June (releasing RGB after 3 yrs of work), but after I will download source from the crates.io and re-create the repo with my changes - and will do a PR against the original repo.

@notmandatory
Copy link
Author

notmandatory commented Jun 14, 2022

Thanks, I'll review your PR when you're ready.

@dr-orlovsky
Copy link
Member

@notmandatory can you please add license information to the rust-hwi crate since it currently misses one and it is unclear which conditions for its use and code modification apply

@dr-orlovsky
Copy link
Member

I found the repo, here it is: https://github.com/mycitadel/bitcoin_hwi
I checked - most of my changes there were already done in the main repo in the last weeks. The rest are related to a dependency I've added (amplify) to do Display derives for the error types, which probably would not be accepted upstream. Let me know if you need it.

@notmandatory
Copy link
Author

notmandatory commented Jul 8, 2022

@notmandatory can you please add license information to the rust-hwi crate since it currently misses one and it is unclear which conditions for its use and code modification apply

Hi sorry for the delay. The Cargo.toml for the rust-hwi repo specifies the license is MIT. I've created a small PR to make it more explicit, does this help? bitcoindevkit/rust-hwi#38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants