[package]
edition = "2021"
name = "async_from"
version = "0.3.0"
authors = ["Kostiantyn Mysnyk <wandalen@obox.systems>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Async version of From, Into, TryFrom, TryInto.
"""
homepage = "https://github.com/Wandalen/wTools/tree/master/module/experimental/async_from"
documentation = "https://docs.rs/async_from"
readme = "readme.md"
keywords = [
"fundamental",
"general-purpose",
]
categories = [
"algorithms",
"development-tools",
]
license = "MIT"
repository = "https://github.com/Wandalen/wTools/tree/master/module/experimental/async_from"
[package.metadata.docs.rs]
features = ["full"]
all-features = false
[features]
async_from = []
async_try_from = []
default = ["enabled"]
enabled = ["dep:async-trait"]
full = [
"enabled",
"async_from",
"async_try_from",
]
[lib]
name = "async_from"
path = "src/lib.rs"
[[test]]
name = "additional_corner_cases_test"
path = "tests/additional_corner_cases_test.rs"
[[test]]
name = "manual_corner_cases_test"
path = "tests/manual_corner_cases_test.rs"
[[test]]
name = "send_bounds_validation_test"
path = "tests/send_bounds_validation_test.rs"
[[test]]
name = "tests"
path = "tests/tests.rs"
[dependencies.async-trait]
version = "0.1.83"
optional = true
[dev-dependencies.futures]
version = "0.3"
[dev-dependencies.tokio]
version = "1.41.0"
features = [
"rt-multi-thread",
"time",
"macros",
]
default-features = false
[lints.clippy]
absolute_paths = "allow"
arbitrary_source_item_ordering = "allow"
cast_precision_loss = "allow"
doc_include_without_cfg = "warn"
implicit_return = "allow"
inline_always = "allow"
items_after_statements = "allow"
large_enum_variant = "allow"
missing_docs_in_private_items = "allow"
missing_inline_in_public_items = "allow"
mod_module_files = "allow"
module_name_repetitions = "allow"
pub_use = "allow"
question_mark_used = "allow"
single_call_fn = "allow"
std_instead_of_alloc = "allow"
std_instead_of_core = "warn"
struct_excessive_bools = "allow"
undocumented_unsafe_blocks = "deny"
wildcard_imports = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unsafe-code = "deny"
[lints.rust.future_incompatible]
level = "warn"
priority = -1
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(feature, values("diagnostics_runtime_assertions", "diagnostics_compiletime_assertions", "diagnostics_memory_layout"))']