rust-bitcoin / rust-bitcoinconsensus

Bitcoin's libbitcoinconsenus.a with Rust binding. Built from Bitcoin sources with cargo.
Apache License 2.0
46 stars 33 forks source link

Remove libc dependency #59

Closed tcharding closed 2 years ago

tcharding commented 2 years ago

As we do in rust-secp256k1 we can create type aliases for C integer types instead of depending on libc.

Create type aliases (copied from rust-secp256k1) and remove libc dependency.

Please note, this crate is copyright'ed to Tamas using Apache, but for this new file we use CC license since I copied it from rust-secp256k1 (although its only a few trivial lines). Probably being overly paranoid but wanted to flag it.

Fixes: #57

apoelstra commented 2 years ago

Thanks for flagging the copyright thing. I think it's fine as long as the copyright differs between individual files. (Let's not attempt to mix copyrights within a file!)

CC0 does, of course, allow relicensing to Apache. But I wouldn't bother here.