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

rust-bitcoin / rust-bitcoin / 11644180478 / 1
83%
master: 83%

Build:
DEFAULT BRANCH: master
Ran 02 Nov 2024 04:28PM UTC
Files 113
Run time 2s
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.1

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

19696 of 23865 relevant lines covered (82.53%)

18253.74 hits per line

Source Files on job 11644180478.1
  • Tree
  • List 0
  • Changed 12
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 11644180478
  • 973071f6 on github
  • Prev Job for on master (#11643465233.1)
  • Next Job for on master (#11652402274.1)
  • 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