[package]
edition = "2024"
rust-version = "1.89"
name = "oopsie"
version = "0.1.0-rc.20"
authors = ["Gaƫtan Schwartz"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ergonomic, structured error handling: context selectors, traced errors, and rich colorized reports"
readme = "README.md"
keywords = [
"error",
"error-handling",
"diagnostics",
"backtrace",
"spantrace",
]
categories = [
"rust-patterns",
"development-tools::debugging",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/gaetschwartz/oopsie"
[package.metadata.docs.rs]
all-features = true
[features]
chrono = [
"std",
"oopsie-core/chrono",
]
default = ["std"]
extras = [
"std",
"oopsie-core/extras",
]
fancy = [
"std",
"dep:owo-colors",
"dep:linkme",
]
jiff = [
"std",
"oopsie-core/jiff",
]
serde = [
"oopsie-core/serde",
"dep:serde_json",
]
settings = ["oopsie-macros/settings"]
std = [
"oopsie-core/std",
"serde_json?/std",
]
tracing = [
"std",
"oopsie-core/tracing",
]
unstable = [
"unstable-error-generic-member-access",
"unstable-try-trait-v2",
"oopsie-core/unstable",
]
unstable-error-generic-member-access = [
"oopsie-macros/unstable-error-generic-member-access",
"oopsie-core/unstable-error-generic-member-access",
]
unstable-try-trait-v2 = []
[lib]
name = "oopsie"
path = "src/lib.rs"
[[example]]
name = "complete"
path = "examples/complete.rs"
required-features = [
"fancy",
"tracing",
"serde",
]
[[example]]
name = "erased_json"
path = "examples/erased_json.rs"
required-features = ["serde"]
[[example]]
name = "panic_hook"
path = "examples/panic_hook.rs"
required-features = [
"fancy",
"tracing",
"serde",
]
[[example]]
name = "quickstart"
path = "examples/quickstart.rs"
[[example]]
name = "traced"
path = "examples/traced.rs"
required-features = ["fancy"]
[[example]]
name = "welp"
path = "examples/welp.rs"
required-features = ["fancy"]
[[test]]
name = "color_env"
path = "tests/color_env.rs"
[[test]]
name = "compile_fail"
path = "tests/compile_fail.rs"
[[test]]
name = "derive_auto"
path = "tests/derive_auto.rs"
[[test]]
name = "derive_cfg"
path = "tests/derive_cfg.rs"
[[test]]
name = "derive_display"
path = "tests/derive_display.rs"
[[test]]
name = "derive_error"
path = "tests/derive_error.rs"
[[test]]
name = "derive_ext"
path = "tests/derive_ext.rs"
[[test]]
name = "derive_forward"
path = "tests/derive_forward.rs"
[[test]]
name = "derive_from"
path = "tests/derive_from.rs"
[[test]]
name = "derive_generics"
path = "tests/derive_generics.rs"
[[test]]
name = "derive_hygiene"
path = "tests/derive_hygiene.rs"
[[test]]
name = "derive_module"
path = "tests/derive_module.rs"
[[test]]
name = "derive_selectors"
path = "tests/derive_selectors.rs"
[[test]]
name = "derive_size"
path = "tests/derive_size.rs"
[[test]]
name = "derive_source"
path = "tests/derive_source.rs"
[[test]]
name = "derive_suffix_vis"
path = "tests/derive_suffix_vis.rs"
[[test]]
name = "derive_transparent"
path = "tests/derive_transparent.rs"
[[test]]
name = "erased"
path = "tests/erased.rs"
[[test]]
name = "keyword_docs"
path = "tests/keyword_docs.rs"
[[test]]
name = "marker"
path = "tests/marker.rs"
[[test]]
name = "panic_hook"
path = "tests/panic_hook.rs"
[[test]]
name = "report"
path = "tests/report.rs"
[[test]]
name = "settings"
path = "tests/settings.rs"
[[test]]
name = "spantrace"
path = "tests/spantrace.rs"
[[test]]
name = "traced_attr"
path = "tests/traced_attr.rs"
[[test]]
name = "traced_location"
path = "tests/traced_location.rs"
[[test]]
name = "welp"
path = "tests/welp.rs"
[[bench]]
name = "capture"
path = "benches/capture.rs"
harness = false
[[bench]]
name = "construct"
path = "benches/construct.rs"
harness = false
[[bench]]
name = "erased"
path = "benches/erased.rs"
harness = false
required-features = ["serde"]
[[bench]]
name = "propagate"
path = "benches/propagate.rs"
harness = false
[[bench]]
name = "render"
path = "benches/render.rs"
harness = false
required-features = ["fancy"]
[[bench]]
name = "vs_ecosystem"
path = "benches/vs_ecosystem.rs"
harness = false
required-features = [
"fancy",
"tracing",
]
[dependencies.linkme]
version = "0.3.36"
optional = true
[dependencies.oopsie-core]
version = "0.1.0-rc.20"
default-features = false
[dependencies.oopsie-macros]
version = "0.1.0-rc.20"
[dependencies.owo-colors]
version = "4"
optional = true
[dependencies.serde_json]
version = "1"
features = ["alloc"]
optional = true
default-features = false
[dev-dependencies.anyhow]
version = "1.0.102"
[dev-dependencies.backtrace]
version = "0.3.76"
[dev-dependencies.chrono]
version = "0.4.44"
[dev-dependencies.color-eyre]
version = "0.6.5"
[dev-dependencies.criterion]
version = "0.8.2"
[dev-dependencies.eyre]
version = "0.6.12"
[dev-dependencies.insta]
version = "1.46.3"
features = [
"filters",
"json",
"redactions",
]
[dev-dependencies.miette]
version = "7.6.0"
features = ["fancy"]
[dev-dependencies.oopsie-core]
version = "0.1.0-rc.20"
features = ["test-utils"]
default-features = false
[dev-dependencies.rstest]
version = "0.26.1"
[dev-dependencies.rustversion]
version = "1.0.22"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.snafu]
version = "0.9.1"
features = ["backtrace"]
[dev-dependencies.strip-ansi-escapes]
version = "0.2.1"
[dev-dependencies.test-with]
version = "0.16.1"
default-features = false
[dev-dependencies.thiserror]
version = "2.0.18"
[dev-dependencies.toml_edit]
version = "0.25.12"
[dev-dependencies.tracing]
version = "0.1.44"
[dev-dependencies.tracing-subscriber]
version = "0.3.22"
features = ["env-filter"]
[dev-dependencies.trybuild]
version = "1.0.116"
[lints.clippy]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
approx_constant = "allow"
as_underscore = "warn"
assertions_on_result_states = "allow"
await_holding_lock = "warn"
await_holding_refcell_ref = "warn"
borrow_interior_mutable_const = "deny"
branches_sharing_code = "warn"
cast_possible_truncation = "allow"
clear_with_drain = "warn"
clone_on_ref_ptr = "warn"
collection_is_never_read = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
declare_interior_mutable_const = "deny"
deref_by_slicing = "warn"
derive_partial_eq_without_eq = "warn"
doc_markdown = "allow"
empty_drop = "warn"
empty_line_after_doc_comments = "warn"
empty_line_after_outer_attr = "warn"
empty_structs_with_brackets = "warn"
equatable_if_let = "warn"
error_impl_error = "warn"
exit = "warn"
fallible_impl_from = "warn"
fn_to_numeric_cast_any = "warn"
format_push_string = "warn"
get_unwrap = "warn"
if_then_some_else_none = "warn"
inline_always = "allow"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_with_drain = "warn"
large_types_passed_by_value = "warn"
lossy_float_literal = "warn"
map_err_ignore = "warn"
map_with_unused_argument_over_ranges = "warn"
match_same_arms = "allow"
mem_forget = "warn"
missing_const_for_fn = "warn"
missing_errors_doc = "allow"
needless_collect = "warn"
needless_pass_by_ref_mut = "warn"
non_zero_suggestions = "warn"
nonstandard_macro_braces = "warn"
or_fun_call = "warn"
path_buf_push_overwrite = "warn"
print_stderr = "warn"
print_stdout = "warn"
pub_without_shorthand = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
read_zero_byte_vec = "warn"
redundant_clone = "warn"
redundant_pub_crate = "warn"
redundant_type_annotations = "warn"
ref_patterns = "warn"
renamed_function_params = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_and_then = "warn"
search_is_some = "warn"
set_contains_or_insert = "warn"
significant_drop_in_scrutinee = "warn"
significant_drop_tightening = "warn"
similar_names = "allow"
single_option_map = "warn"
str_to_string = "warn"
string_add = "warn"
string_lit_as_bytes = "warn"
string_lit_chars_any = "warn"
struct_field_names = "allow"
todo = "warn"
too_many_lines = "allow"
trait_duplication_in_bounds = "warn"
try_err = "warn"
tuple_array_conversions = "warn"
type_repetition_in_bounds = "warn"
unimplemented = "warn"
unnecessary_safety_comment = "warn"
unnecessary_self_imports = "warn"
unreadable_literal = "allow"
unsafe_derive_deserialize = "allow"
unused_peekable = "warn"
unused_trait_names = "warn"
unwrap_or_default = "warn"
use_self = "warn"
useless_let_if_seq = "warn"
verbose_file_reads = "warn"
wildcard_imports = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
meta_variable_misuse = "warn"
redundant_lifetimes = "warn"
unit_bindings = "warn"
unnameable_types = "warn"
unsafe_code = "deny"
unused_features = "allow"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
[lints.rustdoc]
broken_intra_doc_links = "warn"
private_intra_doc_links = "warn"
unescaped_backticks = "warn"