Add helper macros to Rust - #7014
Open
logan-gatlin wants to merge 1 commit into
Open
Conversation
Contributor
|
APIError: Invalid Anthropic API Key |
2 similar comments
Contributor
|
APIError: Invalid Anthropic API Key |
Contributor
|
APIError: Invalid Anthropic API Key |
Contributor
|
@logan-gatlin Bonk workflow failed. Check the logs for details. View workflow run · To retry, trigger Bonk again. |
logan-gatlin
force-pushed
the
logan/jsg-rust-macros
branch
from
August 14, 2026 18:12
35c5d62 to
6efde75
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7014 +/- ##
==========================================
- Coverage 68.49% 67.79% -0.70%
==========================================
Files 438 468 +30
Lines 130184 132593 +2409
Branches 21422 21515 +93
==========================================
+ Hits 89167 89897 +730
- Misses 27977 29594 +1617
- Partials 13040 13102 +62 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jasnell
approved these changes
Aug 15, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
kj::KjErrorconstruction macrosAdds Rust macros for building
cxx::KjErrorvalues, mirroring C++'sKJ_EXCEPTION/KJ_FAIL_REQUIRE/KJ_UNIMPLEMENTEDmacros (kj/debug.h). Onepair per
kj::Exception::Typevariant: a construct-only macro that evaluatesto a
KjErrorvalue, and an early-return macro that doesreturn Err(...)from the enclosing function.
Failedkj::failed!kj::fail_require!Overloadedkj::overloaded!kj::overloaded_require!Disconnectedkj::disconnected!kj::disconnected_require!Unimplementedkj::not_implemented!kj::not_implemented_require!The
Unimplementedpair is namednot_implemented!rather thanunimplemented!to avoid shadowingstd::unimplemented!at anyuse kj::unimplemented;import site.