Latest / Developer tools

Unbug

github.com · Package · Maintained

Rust macros for programmatic breakpoints and debug assertions

Visit github.com ↗Share

  • rust debug assertions
  • rust breakpoint macro
  • rust ensure macro
  • nostd debugging
  • rust debugger assert
Stars
222
Forks
3
Open issues
0
Last commit
Releases
4
Found
2 years ago

GitHub figures as of . They are context, not a ranking.

Unbug is a Rust crate of macros that invoke breakpoints and assertions programmatically, inspired by Unreal Engine's asserts. Development requires nightly Rust, but stubs let production builds use stable Rust. Version 0.2 adds no_std support and optional log arguments for its ensure macro. It suits Rust developers who want breakpoint-style checks in their code.

Repository description on GitHub: “Debug breakpoint assertions for Rust”

What it does

  • Breakpoint and ensure macros that trigger a debugger
  • Shims compile the macros out of release builds
  • Version 0.2 adds no_std support and optional log arguments to ensure

Good for

  • Trigger a debugger breakpoint when a Rust condition fails
  • Catch unexpected states in a debugger without panicking

Suits: Rust developers who want breakpoint-style checks in their code.

Worth knowing: Development needs nightly Rust, while stub macros let production builds use stable Rust.

What you can try

Read the README on GitHub and install from source.

Install

cargo add unbug

Confirmed against the package registry. Read the project’s own instructions before running anything.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw Unbug on , when BrainBacon posted it to Show HN. The oldest published release on GitHub is 0.2, dated . Its first tagged release landed the same day it was found. 4 releases have been published in total; the latest is 0.5 ().

Day-7 and day-30 updates

Day 7 1 release shipped

  • 1 release in the first 7 days: 0.3 (21 Nov 2024)
  • Show HN discussion at check time: 96 points, 40 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 2 releases shipped

  • 2 releases in the first 30 days: 0.3 (21 Nov 2024), 0.4 (9 Dec 2024)
  • Show HN discussion at check time: 96 points, 40 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (1 in total, busiest month 1).
  1. Repository created on GitHub: greymattergames/unbug
  2. Release 0.2
  3. Found: BrainBacon posted it to Show HN. Show HN
  4. Release 0.3
  5. Release 0.4
  6. Release 0.5
  7. Day-7 check recorded by Kip (details)
  8. Day-30 check recorded by Kip (details)

Quick answers

When was Unbug released?
Its first tagged release on GitHub is dated 20 Nov 2024. Kip found it on Show HN on 20 Nov 2024.
Is Unbug open source?
Its source is public on GitHub at greymattergames/unbug under the Apache-2.0 licence.
What does Unbug run on?
Library.
Is Unbug free?
It is open source, so the code is free to read and run; check the licence for terms.
Is Unbug still maintained?
It had a commit or release in the last year, though not in the last 90 days, as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositorygreymattergames/unbug
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-42193793. Summary written by KipFound’s editor.

Share

Similar tools

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.