[package]
edition = "2024"
rust-version = "1.89"
name = "oopsie-macros"
version = "0.1.0-rc.20"
authors = ["Gaƫtan Schwartz"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Procedural macros for the oopsie error-handling library: the #[oopsie] attribute and Oopsie derive"
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]
default = []
settings = [
"dep:__serde",
"dep:toml_edit",
"dep:glob",
]
unstable = ["unstable-error-generic-member-access"]
unstable-error-generic-member-access = []
[lib]
name = "oopsie_macros"
path = "src/lib.rs"
proc-macro = true
[dependencies.__serde]
version = "1.0.228"
features = ["derive"]
optional = true
package = "serde"
[dependencies.convert_case]
version = "0.11"
[dependencies.darling]
version = "0.23"
[dependencies.derive-syn-parse]
version = "0.2.0"
[dependencies.glob]
version = "0.3.3"
optional = true
[dependencies.proc-macro2]
version = "1"
[dependencies.quote]
version = "1"
[dependencies.syn]
version = "2"
features = [
"full",
"visit",
]
[dependencies.toml_edit]
version = "0.25.12"
features = [
"parse",
"serde",
]
optional = true
default-features = false
[dev-dependencies.insta]
version = "1.46.3"
[dev-dependencies.pretty_assertions]
version = "1.4.1"
[dev-dependencies.rstest]
version = "0.26.1"
[dev-dependencies.tempfile]
version = "3.27.0"
[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"