[package]
edition = "2024"
rust-version = "1.93"
name = "cow-errors"
version = "0.1.2"
authors = ["CoW Protocol Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared error type for the CoW Protocol SDK workspace."
homepage = "https://github.com/deltartificial/cow-rs"
readme = "README.md"
keywords = [
"cow",
"cowprotocol",
"defi",
"ethereum",
"sdk",
]
categories = [
"api-bindings",
"cryptography::cryptocurrencies",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/deltartificial/cow-rs"
[package.metadata.workspace.layer]
layer = 0
[lib]
name = "cow_errors"
path = "src/lib.rs"
[dependencies.reqwest]
version = "0.13"
features = ["json"]
default-features = false
[dependencies.thiserror]
version = "2"
[lints.clippy]
allow_attributes_without_reason = "warn"
as_ptr_cast_mut = "allow"
await_holding_lock = "warn"
borrow_as_ptr = "warn"
branches_sharing_code = "warn"
checked_conversions = "warn"
clear_with_drain = "warn"
clone_on_ref_ptr = "warn"
cloned_instead_of_copied = "warn"
cognitive_complexity = "allow"
collection_is_never_read = "warn"
create_dir = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "allow"
default_trait_access = "warn"
deref_by_slicing = "warn"
derive_partial_eq_without_eq = "warn"
doc_markdown = "warn"
empty_drop = "warn"
empty_line_after_doc_comments = "warn"
empty_line_after_outer_attr = "warn"
enum_glob_use = "warn"
equatable_if_let = "warn"
exit = "warn"
expect_used = "deny"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
fallible_impl_from = "allow"
filter_map_next = "warn"
flat_map_option = "warn"
fn_params_excessive_bools = "warn"
from_iter_instead_of_collect = "warn"
future_not_send = "allow"
if_not_else = "warn"
if_then_some_else_none = "warn"
implicit_clone = "warn"
imprecise_flops = "warn"
inefficient_to_string = "warn"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_with_drain = "warn"
iter_without_into_iter = "warn"
large_stack_frames = "warn"
len_without_is_empty = "allow"
let_underscore_must_use = "warn"
linkedlist = "warn"
literal_string_with_formatting_args = "allow"
lossy_float_literal = "warn"
macro_use_imports = "warn"
manual_assert = "warn"
manual_clamp = "warn"
manual_is_variant_and = "warn"
manual_string_new = "warn"
manual_unwrap_or = "allow"
map_err_ignore = "warn"
match_same_arms = "warn"
mem_forget = "warn"
missing_assert_message = "warn"
missing_const_for_fn = "warn"
must_use_candidate = "warn"
mutex_integer = "warn"
naive_bytecount = "warn"
needless_bitwise_bool = "warn"
needless_borrow = "warn"
needless_collect = "allow"
needless_continue = "warn"
needless_for_each = "warn"
needless_pass_by_ref_mut = "warn"
new_ret_no_self = "allow"
non_send_fields_in_send_ty = "allow"
nonstandard_macro_braces = "warn"
octal_escapes = "allow"
option_as_ref_cloned = "warn"
option_option = "warn"
or_fun_call = "warn"
panic = "warn"
path_buf_push_overwrite = "warn"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
read_zero_byte_vec = "warn"
redundant_clone = "warn"
redundant_else = "warn"
redundant_pub_crate = "allow"
ref_option = "warn"
rest_pat_in_fully_bound_structs = "warn"
result_large_err = "allow"
return_self_not_must_use = "warn"
shadow_reuse = "warn"
shadow_same = "warn"
significant_drop_in_scrutinee = "allow"
significant_drop_tightening = "allow"
single_char_pattern = "warn"
single_match_else = "warn"
str_to_string = "warn"
string_lit_as_bytes = "warn"
string_lit_chars_any = "warn"
suboptimal_flops = "warn"
suspicious_operation_groupings = "warn"
tests_outside_test_module = "warn"
todo = "warn"
too_long_first_doc_paragraph = "allow"
trailing_empty_array = "warn"
trait_duplication_in_bounds = "warn"
transmute_undefined_repr = "warn"
trivial_regex = "warn"
tuple_array_conversions = "warn"
type_repetition_in_bounds = "warn"
unimplemented = "warn"
uninhabited_references = "warn"
uninlined_format_args = "warn"
unnecessary_lazy_evaluations = "allow"
unnecessary_map_or = "allow"
unnecessary_self_imports = "warn"
unnecessary_struct_initialization = "warn"
unnested_or_patterns = "warn"
unused_peekable = "warn"
unused_rounding = "warn"
unwrap_used = "deny"
use_self = "warn"
useless_let_if_seq = "warn"
verbose_file_reads = "warn"
while_float = "warn"
wildcard_enum_match_arm = "warn"
wrong_self_convention = "allow"
zero_sized_map_values = "warn"
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.perf]
level = "deny"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
elided_lifetimes_in_paths = "warn"
explicit_outlives_requirements = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
rust_2024_incompatible_pat = "warn"
unexpected_cfgs = "warn"
unnameable_types = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_extern_crates = "warn"
unused_lifetimes = "warn"
unused_must_use = "deny"
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rustdoc]
all = "warn"