错误处理

  1. anyhow

    基于 std::error::Error 的灵活的具体错误类型

    v1.0.86 10.1M #error #error-handling #idiomatic #flexible #concrete #built #applications
  2. thiserror

    derive(Error)

    v1.0.63 11.6M #derive-error #error #macro-derive #derive #error-handling
  3. error-stack

    支持任意附加用户数据的上下文感知错误处理库

    v0.5.0 87K #error #report #error-context #error-handling #debugging #derive-debug
  4. testresult

    简洁精确的测试失败类型

    v0.4.1 12K #testing #error #error-handling #points
  5. thiserror-core

    derive(Error)

    v1.0.50 175K #derive-error #error #macro-derive #error-handling #derive #derive-debug
  6. tracing-error

    使用 tracing 丰富错误

    v0.2.0 639K #tracing #error-context #backtrace #error-handling #exception-reporting #object
  7. manyhow

    类似于 anyhow x proc-macro-error 的过程宏错误处理

    v0.11.3 63K #proc-macro #error #token-stream #error-handling #input #anyhow #emitter
  8. terrors

    基于类型级别集合算术的优雅且精确的错误处理

    v0.3.0 600 #error #type-level #error-handling #anonymous #sum
  9. culpa

    Rust 中的错误处理语法

    v1.0.2 1.6K #exception #error #error-handling #throw #return #proc-macro #attributes
  10. ffi_helpers

    帮助简化与 FFI 的工作

    v0.3.0 366K #foreign #error-handling #extern #ffi #gui-applications
  11. lazy_errors

    轻松创建、分组和嵌套任意错误,并优雅地延迟错误处理

    v0.7.0 #error #error-handling #multiple #tree
  12. miden-thiserror

    支持无标准库的 derive(Error)

    v1.0.59 800 #derive-error #error #error-handling #derive
  13. wallee

    基于 std::error::Error 的灵活具体错误类型,具有调用者位置跟踪

    v0.2.1 #error #error-handling #caller #location #line-column #file-line #tracking
  14. error_mapper

    在所有项目中标准化处理 Results 和 Errors

    v0.3.11 150 #error #error-handling #macro #simple #handling
  15. tighterror

    一个简约的错误表示框架

    v0.0.21 400 #error #error-reporting #error-handling #standard-error #no-alloc #no-std
  16. error_set

    一个错误集合宏,通过提供定义错误和轻松在它们之间转换的简化方法来简化错误管理。受 Zig 的错误集合类型启发。

    v0.4.5 400 #error #error-management #error-handling #macro #debugging
  17. axum-route-error

    Axum 服务器的通用错误响应

    v5.0.1 230 #error-response #error #axum #json-error #error-handling #json-response #error-message
  18. thiserror-ext

    thiserror 提供有用扩展工具

    v0.2.0 3.4K #error #error-handling #derive
  19. typederror

    anyhow 的包装器,允许使用主要错误类型

    v0.2.2 #error #thiserror #error-handling #primary #variant #aims #glue
  20. stacked_errors

    具有编程回溯的高级错误传播

    v0.5.2 280 #error #error-handling #backtrace #error-message #stack #debugging #high
  21. fallible_map

    使用可以返回 Result 的函数,在 Option 和迭代器上进行可失败映射

    v0.1.1 250 #fallible #mapping #result #error-handling #options
  22. bigerror

    处理大错误 ¯\_(ツ)_/¯

    v0.9.0-alpha 110 #error #reusable #parts #compose #big #error-handling
  23. parsa

    一个功能组合解析库

    v1.1.1 #parser-combinator #parser #string #parsing #error-handling
  24. iex

    惯用异常

    v0.2.0 280 #error #panic #ergonomics #ergonomic #error-handling
  25. wherr

    使用 #[wherr] 宏增强 Rust 错误,提供文件和行详细信息,以便更清晰的调试

    v0.1.7 140 #file-line #error #line-numbers #debugging #error-handling #enhance #details
  26. woah

    一个区分本地错误(可以处理)和致命错误(无法处理)的结果类型

    v0.4.5 #error #error-handling #local #fatal #result #nightly #enums
  27. tosserror

    derive(Toss)

    v0.1.2 #derive-error #error #io-error #derive #error-handling
  28. thiserror-nostd-notrait

    derive(Error)

    v1.0.57 800 #derive-error #error #macro-derive #derive #error-handling #standard-error
  29. sqlx-error

    包装 sqlx::Error 以提供错误路径和附加上下文

    v0.5.0 190 #error #error-context #sqlx #path #query #debugging #error-handling
  30. oofs

    错误处理库,为您生成和注入上下文

    v0.2.3 #error #error-context #error-handling #bubble-up #generate
  31. multiple_errors

    传播多个错误,而不仅仅是第一个

    v1.1.0 #error #multiple #error-handling #macro #propagate #action
  32. onlyerror

    痴迷于极小的错误 derive 宏

    v0.1.4 550 #error-derive #macro-derive #error #derive #error-handling
  33. trasy

    带有跟踪和回溯支持的错误处理

    v0.1.4 #backtrace #tracing #error-handling
  34. therror

    基于 thiserror 的 derive(Error) 的变种

    v0.0.48 #derive-error #error #macro-derive #io-error #error-handling #derive
  35. utils-results

    最简单、最直观的错误处理解决方案

    v5.3.0 260 #error #result #utility #error-handling
  36. axum-ctx

    Axum中的错误处理,灵感来源于anyhow

    v0.4.0 #error #axum #error-handling
  37. rancor

    无需类型组合的可伸缩和高效错误处理

    v0.1.0-pre8 290 #error #error-handling #composition #scalable #introspection #programmatic #most
  38. erdp

    显示错误及其嵌套错误

    v0.1.1 160 #error #display #nested #error-handling
  39. stated-scope-guard

    用于声明资源管理的更灵活的RAII模式

    v0.1.0 #raii #error-handling #scopeguard
  40. turboscan

    快速可靠的基于Rust的端口扫描CLI

    v0.1.4 #port-scanner #port-scanning #open-ports #ip-address #networking #progress-bar #error-handling
  41. pingora-error

    Pingora的错误类型和错误处理API

    v0.3.0 4.0K #pingora #error #error-handling #networking
  42. replace_err

    Result添加一个replace_err方法,用于丢弃当前错误并替换它

    v1.0.0 #error #replace #throw #away #error-handling #value #err
  43. error_handling

    用于在异步过程中清理和集中化错误处理的宏

    v1.0.0 #error #async #macro #processes #clean #within #centralize
  44. no-std-thiserror

    thiserror的no_std兼容版本

    v0.1.0 #derive-error #error #error-handling #derive #standard-error
  45. failchain

    失败的便捷伴侣库

    v0.1018.2 #error #error-handling #error-chain #failure #handling
  46. exun

    处理意外错误

    v0.2.0 #error #no-std #error-handling #utility #send-sync
  47. ctxerr

    在thiserror中嵌入回溯和位置的微小包装器

    v0.2.8 #error-context #error #backtrace #error-handling #thiserror #context #handling
  48. fallible-option

    Fallible是一个具有反转Try语法的Option

    v0.1.3 #fallible #try #result #error-handling
  49. 融合错误

    处理可组合错误

    v0.1.2 #error #error-handling #composable #accumulator #iterator #proc-macro #fused
  50. 匿名枚举

    具有完全泛型变体的枚举类型

    v1.1.0 #sum #error-handling #anonymous-enum #anon #no-alloc
  51. dynerr

    动态错误处理的宏

    v0.1.24 #error #error-handling #dynamic #log #logging #handling #debugging
  52. meticulous

    Result 扩展,为解包添加更多意义

    v0.2.0-pre.1 12K #expect #unwrap #error #error-handling #result
  53. errjson

    简单直观的 Rust 错误 json

    v0.0.6 #json-error #error #error-handling
  54. jsonerr

    宏和构建器

    v0.0.3 #json-error #error #error-handling
  55. 使用 DuckDuckGo 搜索。

  56. error-ex

    为那些希望创建和处理错误清晰、明确且易于使用的人设计

    v0.1.3 #error #error-handling #macro #define
  57. ees

    错误处理库

    v1.0.0 #error #error-handling #error-chain #convenience #owned #functions #type
  58. thistermination

    将 Termination 特性添加到错误枚举中,灵感来自 thiserror

    v1.1.0 #error #termination #derive-error #error-handling #derive #debugging
  59. oops

    轻量级错误处理。提供 Option<T> -> std::io::Result<T>.

    v0.2.0 #io #error-handling #value #option-t #str
  60. justerror

    扩展 thiserror 以帮助减少手写的数量

    v1.1.0 550 #error #error-handling #amount #reduce #helps #extension #handwriting
  61. ez-err

    支持舒适且快速错误处理的错误处理库

    v0.1.3 #error #macro #tracing #error-handling #file-io
  62. partial-result

    返回非关键错误成功的结果

    v0.1.0 #error-handling #result #partial-success #non-fatal-error
  63. inputparser

    终端输入伪代码简单,类似于Python的简单……可能吧 XDD

    v0.1.72 140 #input #terminal #error-handling #recoverable-errors #custom-messages
  64. borked

    为Rust提供方便的错误处理库

    v0.1.2 #error #error-handling #wrapper #handling
  65. error_generator

    使用属性将结构体和枚举转换为完全限定错误

    v1.2.1 #error #attributes #error-handling #code-generation #proc-macro
  66. lifterr

    一组扩展Rust错误处理能力的适配器

    v0.4.1 #error #adapter #capabilities #extending #error-handling #combinator #options
  67. precisej-printable-errno

    为nix打印系统调用错误

    v0.2.2 #error #nix #errno #libc #error-handling #error-message
  68. enum_from_variant

    宏用于为枚举变体生成 From 特征实现,简化错误转换和枚举映射

    v0.1.1 #enums #conversion #macro #error-handling #from-trait #convert #derive-debug
  69. rocket-errors

    在Rocket应用程序中使用anyhow和eyre处理错误

    v0.1.0 #rocket #error-handling #web-programming-rocket
  70. rewrap

    Result<Result<T, E>, F> -> Result<T, F>

    v1.0.1 #error #error-handling #derive-error #enums #debug #convert #transparent
  71. jsonerr2array

    jsonerr转换为数组

    v0.0.2 #json-error #error-handling #error #errorjson
  72. error_log

    基于结构的错误处理

    v0.1.3 #error #log #log-messages #error-handling #error-message
  73. image-effects

    使用image对图像应用一系列效果

    v0.1.0 #effect #image #dither #effects #error-handling
  74. raise

    yeet! 所有事物

    v2.0.0 #error #throw #yeet #error-handling
  75. fullerror

    显示完整源树的错误类型

    v1.0.0 #error #trace #error-handling
  76. rewind

    强异常保证支持类型

    v0.1.0 #exception #error-handling #guarentee
  77. err-into

    为Results和Options使用core::convert::Into的扩展特性

    v1.0.1 #error #error-handling #no-std #no-alloc
  78. u32err

    用于FFI函数的整洁错误类型(非零表示失败)

    v0.1.1 #failure #error #no-alloc #error-handling #no-std
  79. macro-map

    无闭包的Result::map_errOption::ok_or_else

    v0.2.0 330 #map #macro #error-handling
  80. fatal-error

    区分错误和致命错误

    v1.0.1 #error #fatal #error-handling #differentiate
  81. beginnerror

    适合初学者的错误处理crate

    v0.1.2 #beginner #error-handling #top #add #toml #go
  82. error-type

    构造统一错误类型的宏

    v0.1.2 100 #error #macro #error-handling #constructing #unifying #io-error #type
  83. bruh_moment

    重新导出anyhow crate,但使用Bruh作为错误类型

    v0.1.1 #error #error-handling #re-exports #anyhow #bruh
  84. enum-code

    通过提供易于使用的错误代码枚举来简化错误处理 derive(Code)

    v0.1.1 #error #enums #error-handling #derive #macro-derive
  85. expect-dialog

    使用对话框进行通知,而不是仅仅使用stdout的错误处理

    v1.0.1 #dialog #error #error-handling #utility #notifications #handling #gui
  86. fehler

    Rust 中的错误处理语法

    v1.0.0 34K #exception #error-handling #throw #syntax
  87. miette_helper

    为miette提供辅助宏

    v0.1.0 #helper #miette #macro #error-handling
  88. derive_jserror

    #[derive(JsError)]

    v0.1.0 #derive #error-handling #wasm #derive-error
  89. very-bad-error-propagation

    使用恐慌系统实现错误传播(请勿实际使用此方法)

    v0.1.1 #propagation #error #system #dont #error-handling
  90. aud

    Sagas 的最小实现

    v0.1.3 #saga #error-handling #transaction
  91. actix-error-mapper-middleware

    允许您将 actix-web 错误映射到您自己的自定义错误类型。例如,您可以返回一个 HTML 包装的错误。

    v0.1.1 #actix-web #web #error-handling #future #utility
  92. violet_mail

    violet 的包装器

    v0.1.0 #email #log #http-api #error-handling #violet
  93. clierr

    小型 CLI 脚本的非恐慌错误处理

    v0.7.0 #error #minimalist #cli #error-handling #small #handling
  94. eyre-span

    捕获追踪范围的轻量级 eyre 处理器

    v0.1.0 #spans #tracing #error-handling #eyre #capturing #handler