• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rust-bitcoin / rust-bitcoin / 11644180478
83%

Build:
DEFAULT BRANCH: master
Ran 02 Nov 2024 04:28PM UTC
Jobs 1
Files 113
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Nov 2024 04:27PM UTC coverage: 82.531% (+0.03%) from 82.501%
11644180478

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#2861: Introduce `impl_bytelike_traits` macro

<a class=hub.com/rust-bitcoin/rust-bitcoin/commit/90b2ac03e3560b0e9f78f52b198c869773b5816e">90b2ac03e hashes: Introduce impl_bytelike_traits macro (Tobin C. Harding)

Pull request description:

  We have a couple of problems:

  1. There are two macros currently for fmt stuff that do similar things, `arr_newtype_fmt_impl` and `hex_fmt_impl` - the difference is not immediately obvious, its the way that the byte array is iterated.

  2. Our hash types are missing `AsRef<[u8; len]>` and `Borrow<[u8; len]>`.

  Introduce a new macro and remove a bunch of other macros. Include extensive docs but hide the macro from public docs because its not really for consumers of the library.

  The macro requires `$crate::hex` to point to `hex-conservative`.

  Note the macro is pretty generic (as in general purpose), `hashes` might not be the right home for it. Potentially a better place would be in `hex` itself?

ACKs for top commit:
  apoelstra:
    ACK 90b2ac03e3560b0e9f78f52b198c869773b5816e; successfully ran local tests

Tree-SHA512: 4d8778c578f1269d28e7236ac656347f75d

15 of 16 new or added lines in 2 files covered. (93.75%)

19696 of 23865 relevant lines covered (82.53%)

18253.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11644180478.1 02 Nov 2024 04:28PM UTC 0
82.53
GitHub Action Run
Source Files on build 11644180478
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #11644180478
  • 973071f6 on github
  • Prev Build on master (#11643465233)
  • Next Build on master (#11652402274)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc