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

rust-bitcoin / rust-bitcoin / 16302071048
83%

Build:
DEFAULT BRANCH: master
Ran 15 Jul 2025 07:07PM UTC
Jobs 1
Files 129
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

15 Jul 2025 06:31PM UTC coverage: 83.551% (-0.03%) from 83.578%
16302071048

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#4640: Remove `non_exhausive` from `Network`

<a class=hub.com/rust-bitcoin/rust-bitcoin/commit/<a class="double-link" href="https://git"><a class=hub.com/rust-bitcoin/rust-bitcoin/commit/bcf0c3d92bd890b8b40f96cb010f2366805d77da">bcf0c3d92<a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/a8e6ab7b0f332305a9af8ce86dd9fdb81232f403"> bitcoin: Add a test for matching on network (Tobin C. Harding)
<a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/1e69e63367b57eaa12c07752760d6a7c486bc62b">1e69e6336</a> Remove non_exhausive from Network (Tobin C. Harding)

Pull request description:

  Note that Kix is AWOL at the moment so we will need to let this sit for a good while so he gets a chance to see it since he is central to the debate in #2225.
  
  Issue #2225 is long and has many valid opposing opinions. The main argument for having non_exhaustive is that it helps future proof the ecosystem at the cost of pain now. The main argument against having non_exhaustive is why have pain now when adding a network is so rare that having pain then is ok.
  
  At the end of the thread Andrew posts:
  
  > I continue to think we should have an exhaustive enum, with a bunch of
  > documentation about how to use it properly. I am warming up to the
  > "don't have an enum, just have rules for defining your own" but I think
  > this would be needless work for people who just want to grab an
  > off-the-shelf set of networks or people who want to make their own enum
  > but want to see an example of how to do it first.
  
  In order to make some forward progress lets remove the `non_exhaustive` now and backport this change to 0.32, 0.31, an 0.30.
  
  Later we can add, and release in 0.33, whatever forward protection / libapocalyse protection we want to add.
  
  This removes the pain now and gives us a path to prevent future pain - that should keep all parties happy.


ACKs for top commit:
  apoelstra:
    ACK bcf0c3d92bd890b8b40f96cb010f2366805d77da; successfully ran local tests
  luisschwab:
    ACK bcf0c3d92bd890b8b40f96cb010f2366805d77da


Tree-SHA512: d8c24e8d2dfcbd55977fa9dc4f63a2231b1

21303 of 25497 relevant lines covered (83.55%)

15300.7 hits per line

Coverage Regressions

Lines Coverage ∆ File
7
86.65
-0.46% bitcoin/src/psbt/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 16302071048.1 15 Jul 2025 07:07PM UTC 129
83.55
GitHub Action Run
Source Files on build 16302071048
  • Tree
  • List 129
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16302071048
  • a8e6ab7b on github
  • Prev Build on master (#16296500634)
  • Next Build on master (#16320411796)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc