shvclient 2.0.0

A Rust framework for Silicon Heaven RPC devices
# 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 = "shvclient"
version = "2.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust framework for Silicon Heaven RPC devices"
readme = "README.md"
license = "MIT"
repository = "https://github.com/silicon-heaven/libshvclient-rs"

[features]
default = []
mocking = []
smol = ["dep:smol"]
tokio = [
    "dep:tokio",
    "dep:tokio-util",
]

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

[[example]]
name = "simple_device_smol"
path = "examples/simple_device_smol.rs"
required-features = ["smol"]

[[example]]
name = "simple_device_tokio"
path = "examples/simple_device_tokio.rs"
required-features = ["tokio"]

[[test]]
name = "ssl"
path = "tests/ssl.rs"

[dependencies.async-broadcast]
version = "0.7.1"

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

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

[dependencies.futures]
version = "0.3.29"

[dependencies.futures-rustls]
version = "0.26.0"

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

[dependencies.log]
version = "0.4.20"

[dependencies.macro_magic]
version = "0.6.0"

[dependencies.rustls-pemfile]
version = "2.2.0"

[dependencies.rustls-platform-verifier]
version = "0.6.1"

[dependencies.shvproto]
version = "6.0.1"

[dependencies.shvrpc]
version = "13.0"

[dependencies.smol]
version = "2.0.2"
optional = true

[dependencies.tokio]
version = "1.49.0"
features = [
    "macros",
    "net",
    "rt-multi-thread",
    "time",
]
optional = true

[dependencies.tokio-util]
version = "0.7.10"
features = ["compat"]
optional = true

[dependencies.url]
version = "2.4.1"

[dev-dependencies.anyhow]
version = "1.0.100"

[dev-dependencies.clap]
version = "4.4"
features = ["derive"]

[dev-dependencies.rcgen]
version = "0.14.5"

[dev-dependencies.shvbroker]
version = "3.20.13"

[dev-dependencies.simple_logger]
version = "5.0.0"
features = ["stderr"]

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

[dev-dependencies.tempfile]
version = "3.23.0"

[lints.clippy]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
box_collection = "warn"
dbg_macro = "warn"
doc_markdown = "allow"
enum_glob_use = "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"
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 = "allow"
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 = "allow"
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