[package]
edition = "2024"
rust-version = "1.89"
name = "oopsie-core"
version = "0.1.0-rc.20"
authors = ["Gaƫtan Schwartz"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core error types and trace capture for the oopsie error-handling library"
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",
"dep:chrono",
]
default = ["std"]
extras = [
"std",
"dep:pastey",
]
jiff = [
"std",
"dep:jiff",
]
serde = [
"dep:serde",
"dep:serde_json",
"tracing-subscriber?/json",
]
std = [
"dep:backtrace",
"serde?/std",
"serde_json?/std",
]
test-utils = [
"std",
"dep:insta",
"dep:target-triple",
"dep:konst",
]
tracing = [
"std",
"dep:tracing",
"dep:tracing-error",
"dep:tracing-subscriber",
]
unstable = ["unstable-error-generic-member-access"]
unstable-error-generic-member-access = []
[lib]
name = "oopsie_core"
path = "src/lib.rs"
[dependencies.backtrace]
version = "0.3.76"
features = ["coresymbolication"]
optional = true
[dependencies.chrono]
version = "0.4.45"
features = ["clock"]
optional = true
default-features = false
[dependencies.insta]
version = "1.47.2"
features = [
"filters",
"json",
"redactions",
]
optional = true
[dependencies.jiff]
version = "0.2.28"
optional = true
[dependencies.konst]
version = "0.4.3"
features = ["alloc"]
optional = true
[dependencies.pastey]
version = "0.2.3"
optional = true
[dependencies.serde]
version = "1"
features = [
"derive",
"alloc",
]
optional = true
default-features = false
[dependencies.serde_json]
version = "1"
features = ["alloc"]
optional = true
default-features = false
[dependencies.target-triple]
version = "1.0.0"
optional = true
[dependencies.tracing]
version = "0.1"
optional = true
[dependencies.tracing-error]
version = "0.2"
optional = true
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"registry",
]
optional = true
[dev-dependencies.tracing]
version = "0.1"
[dev-dependencies.tracing-error]
version = "0.2"
[dev-dependencies.tracing-subscriber]
version = "0.3"
[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"