[package]
edition = "2024"
rust-version = "1.88"
name = "ohno"
version = "0.3.0"
authors = ["The Oxidizer Project Authors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-quality Rust error handling."
homepage = "https://github.com/microsoft/oxidizer"
readme = "README.md"
keywords = [
"oxidizer",
"error",
"backtrace",
]
categories = ["data-structures"]
license = "MIT"
repository = "https://github.com/microsoft/oxidizer"
resolver = "2"
[package.metadata.cargo_check_external_types]
allowed_external_types = ["ohno_macros::*"]
[package.metadata.docs.rs]
all-features = true
[features]
app-err = []
test-util = []
[lib]
name = "ohno"
path = "src/lib.rs"
[[example]]
name = "app-err_root_cause"
path = "examples/app/root_cause.rs"
required-features = ["app-err"]
[[example]]
name = "app_err_automatic_conversion"
path = "examples/app/automatic_conversion.rs"
required-features = ["app-err"]
[[example]]
name = "app_err_backtrace"
path = "examples/app/backtrace.rs"
required-features = ["app-err"]
[[example]]
name = "app_err_construction"
path = "examples/app/construction.rs"
required-features = ["app-err"]
[[example]]
name = "app_err_enrichment"
path = "examples/app/enrich_err.rs"
required-features = ["app-err"]
[[example]]
name = "app_err_into_std_error"
path = "examples/app/into_std_error.rs"
required-features = ["app-err"]
[[example]]
name = "bail"
path = "examples/app/bail.rs"
required-features = ["app-err"]
[[example]]
name = "basic_a"
path = "examples/basic_a.rs"
[[example]]
name = "basic_b"
path = "examples/basic_b.rs"
[[example]]
name = "chained"
path = "examples/chained.rs"
[[example]]
name = "clonable"
path = "examples/clonable.rs"
[[example]]
name = "comprehensive_from_syntax"
path = "examples/comprehensive_from_syntax.rs"
[[example]]
name = "default_constructors"
path = "examples/default_constructors.rs"
[[example]]
name = "derive_default"
path = "examples/derive_default.rs"
[[example]]
name = "derive_with_fields"
path = "examples/derive_with_fields.rs"
[[example]]
name = "display_error_complex"
path = "examples/display_error_complex.rs"
[[example]]
name = "display_error_override"
path = "examples/display_error_override.rs"
[[example]]
name = "enrich_err_async"
path = "examples/enrich_err_async.rs"
[[example]]
name = "enrich_err_future"
path = "examples/enrich_err_future.rs"
[[example]]
name = "enrich_err_interpolation"
path = "examples/enrich_err_interpolation.rs"
[[example]]
name = "enrich_err_macro"
path = "examples/enrich_err_macro.rs"
[[example]]
name = "enrich_err_methods"
path = "examples/enrich_err_methods.rs"
[[example]]
name = "error_type_attr"
path = "examples/error_type_attr.rs"
[[example]]
name = "from_attribute"
path = "examples/from_attribute.rs"
[[example]]
name = "from_attribute_with_extra"
path = "examples/from_attribute_with_extra.rs"
[[example]]
name = "into_app_err"
path = "examples/app/into_app_err.rs"
required-features = ["app-err"]
[[example]]
name = "lifetime_with_format_specifier"
path = "examples/lifetime_with_format_specifier.rs"
[[example]]
name = "message_example"
path = "examples/message_example.rs"
[[example]]
name = "multiple_core_fields"
path = "examples/multiple_core_fields.rs"
[[example]]
name = "no_constructors"
path = "examples/no_constructors.rs"
[[example]]
name = "tuple_from_syntax"
path = "examples/tuple_from_syntax.rs"
[[test]]
name = "app"
path = "tests/app.rs"
[[test]]
name = "caused_by_temp_str"
path = "tests/caused_by_temp_str.rs"
[[test]]
name = "constructor_integration"
path = "tests/constructor_integration.rs"
[[test]]
name = "core"
path = "tests/core.rs"
[[test]]
name = "debug_implementation_comparison"
path = "tests/debug_implementation_comparison.rs"
[[test]]
name = "default_constructors_behavior"
path = "tests/default_constructors_behavior.rs"
[[test]]
name = "derive_auto_debug"
path = "tests/derive_auto_debug.rs"
[[test]]
name = "derive_constructors"
path = "tests/derive_constructors.rs"
[[test]]
name = "derive_from"
path = "tests/derive_from.rs"
[[test]]
name = "derive_tuple_structs"
path = "tests/derive_tuple_structs.rs"
[[test]]
name = "display_error_override"
path = "tests/display_error_override.rs"
[[test]]
name = "enrich_err"
path = "tests/enrich_err.rs"
[[test]]
name = "enrich_err_async"
path = "tests/enrich_err_async.rs"
[[test]]
name = "error_ext_find_source"
path = "tests/error_ext_find_source.rs"
[[test]]
name = "from_attribute"
path = "tests/from_attribute.rs"
[[test]]
name = "size_test"
path = "tests/size_test.rs"
[[test]]
name = "source_behavior"
path = "tests/source_behavior.rs"
[dependencies.ohno_macros]
version = "0.3.0"
default-features = false
[dependencies.typeid]
version = "1.0.3"
default-features = false
[dev-dependencies.futures]
version = "0.3.31"
default-features = false
[dev-dependencies.mutants]
version = "0.0.3"
default-features = false
[dev-dependencies.regex]
version = "1.12.2"
features = ["unicode-perl"]
default-features = false
[dev-dependencies.thiserror]
version = "2.0.17"
default-features = false
[dev-dependencies.tokio]
version = "1.48.0"
features = [
"macros",
"rt",
"time",
"rt-multi-thread",
]
default-features = false
[lints.clippy]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
as_pointer_underscore = "warn"
assertions_on_result_states = "warn"
clone_on_ref_ptr = "warn"
deref_by_slicing = "warn"
disallowed_script_idents = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
fn_to_numeric_cast_any = "warn"
if_then_some_else_none = "warn"
map_err_ignore = "warn"
missing_const_for_fn = "allow"
multiple_crate_versions = "allow"
multiple_unsafe_ops_per_block = "warn"
option_if_let_else = "allow"
panic = "warn"
redundant_pub_crate = "allow"
redundant_type_annotations = "warn"
renamed_function_params = "warn"
semicolon_outside_block = "warn"
should_panic_without_expect = "allow"
significant_drop_tightening = "allow"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unneeded_field_pattern = "warn"
unused_result_ok = "warn"
unwrap_used = "warn"
wildcard_imports = "allow"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
ambiguous_negative_literals = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
trivial_numeric_casts = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_lifetimes = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(coverage,coverage_nightly)"]
[lints.rustdoc]
missing_crate_level_docs = "warn"
unescaped_backticks = "warn"