forked from rust-bitcoin/rust-bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge rust-bitcoin#3204: Do many cleanups (and bug fix)
dae42be do not enable bitcoin-io by default (Antoni Spaanderman) a14cdaf don't enable std by default when testing (Antoni Spaanderman) e83830d use slice instead of array to not have to hardcode the length (Antoni Spaanderman) 55749d6 use `hash.to_byte_array` to check equality with `test.output` (Antoni Spaanderman) 969864e use fixed size array if possible, otherwise `&'static [u8]` (Antoni Spaanderman) 28ccf70 remove unnecesarry borrow operator (`&`) (Antoni Spaanderman) fa3a3af remove unnecessary slicing (Antoni Spaanderman) 22e42ab fix test code being unnecessarily feature gated (Antoni Spaanderman) Pull request description: - remove 2 unnecessary cfg attributes from tests left over from rust-bitcoin#3167 (it made them not dependent on `alloc` anymore) - simplify assertion logic by removing unnecessary conversions before comparing - make tests `no_std` compatible by adding imports to alloc or std - feature gate tests behind the `alloc` feature if they use anything from the alloc crate (like the `format!` macro) - `schemars` feature enables `alloc` because (for example) its trait wants implementations to return `String` - fix `bitcoin-io` always enabling when `std` is enabled (only useful if people depend on `hashes` only, `bitcoin` depends on `bitcoin-io` already) ACKs for top commit: tcharding: ACK dae42be Kixunil: ACK dae42be apoelstra: ACK dae42be successfully ran local tests Tree-SHA512: 622fd4963ef21530a98af89bcfc71abe8723aac12d363ab88d9bd30dcf2f75392711bec10e2901fab5f1a30e11897d1aae36e22892738aa1e5670166f91fddd4
- Loading branch information
Showing
18 changed files
with
131 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.