# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "shvrpc"
version = "17.0.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust implementation of the SHV-RPC protocol"
readme = "README.md"
license = "MIT"
repository = "https://github.com/silicon-heaven/libshvrpc-rs"

[features]
can = [
    "dep:socketcan",
    "dep:thiserror",
]
default = []
journal = []
websocket = ["dep:tungstenite"]

[lib]
name = "shvrpc"
path = "src/lib.rs"

[dependencies.anyhow]
version = "1.0.98"

[dependencies.async-trait]
version = "0.1.77"

[dependencies.bitflags]
version = "2.10.0"

[dependencies.crc]
version = "3.0.1"

[dependencies.duration-str]
version = "0.21.0"

[dependencies.futures]
version = "0.3.29"

[dependencies.futures-time]
version = "3.0.0"

[dependencies.glob]
version = "0.3.1"

[dependencies.hex]
version = "0.4.3"

[dependencies.log]
version = "0.4.21"

[dependencies.serde]
version = "1.0.193"

[dependencies.serde_yaml]
version = "0.9.29"

[dependencies.sha1]
version = "0.11.0"

[dependencies.shvproto]
version = "6.0"

[dependencies.socketcan]
version = "3.5.0"
features = ["dump"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0.16"
optional = true

[dependencies.tungstenite]
version = "0.29.0"
optional = true
default-features = false

[dependencies.url]
version = "2.5.4"
features = ["serde"]

[dev-dependencies.env_logger]
version = "0.11.5"

[dev-dependencies.macro_rules_attribute]
version = "0.2.2"

[dev-dependencies.smol]
version = "2"

[dev-dependencies.smol-macros]
version = "0.1"

[lints.clippy]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
box_collection = "warn"
dbg_macro = "warn"
doc_markdown = "allow"
enum_variant_names = "warn"
equatable_if_let = "warn"
exit = "warn"
expect_used = "allow"
explicit_iter_loop = "allow"
float-cmp = "allow"
format_push_string = "allow"
if_not_else = "allow"
indexing_slicing = "warn"
infinite_loop = "warn"
items_after_statements = "allow"
iter_on_single_items = "warn"
large_types_passed_by_value = "warn"
let_underscore_must_use = "warn"
linkedlist = "warn"
manual_string_new = "allow"
map_err_ignore = "warn"
missing_assert_message = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
needless_pass_by_ref_mut = "warn"
option-if-let-else = "warn"
option_option = "warn"
or_fun_call = "warn"
owned_cow = "warn"
panic = "warn"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_allocation = "warn"
redundant_clone = "warn"
redundant_type_annotations = "warn"
ref_option = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_and_then = "warn"
should_panic_without_expect = "allow"
string_lit_as_bytes = "warn"
string_slice = "warn"
struct_excessive_bools = "allow"
todo = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "warn"
try_err = "warn"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unnecessary_box_returns = "warn"
unnecessary_wraps = "warn"
unneeded_field_pattern = "warn"
unused_self = "warn"
unwrap_used = "warn"
upper_case_acronyms = "warn"
useless_let_if_seq = "warn"
vec_box = "warn"
wrong_self_convention = "warn"

[lints.clippy.pedantic]
level = "warn"
priority = -1
