[package]
edition = "2024"
rust-version = "1.87"
name = "hiver-runtime"
version = "0.1.0-alpha.6"
authors = ["Hiver Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
High-performance async runtime for Hiver Framework.
Hiver框架的高性能异步运行时。
Equivalent to: Spring WebFlux Reactor, Project Reactor
"""
homepage = "https://viewway.github.io/hiver"
readme = "README.md"
keywords = [
"http",
"async",
"web",
"framework",
"hiver",
]
categories = [
"web-programming::http-server",
"web-programming::websocket",
"network-programming",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ViewWay/hiver"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[lib]
name = "hiver_runtime"
path = "src/lib.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[[bench]]
name = "runtime_bench"
path = "benches/runtime_bench.rs"
harness = false
[dependencies.anyhow]
version = "1.0"
[dependencies.arc-swap]
version = "1.7"
[dependencies.bytes]
version = "1.9"
[dependencies.crossbeam]
version = "0.8"
[dependencies.dashmap]
version = "6.1"
[dependencies.flume]
version = "0.11"
[dependencies.futures]
version = "0.3"
[dependencies.futures-util]
version = "0.3"
[dependencies.num_cpus]
version = "1.16"
[dependencies.once_cell]
version = "1.20"
[dependencies.parking_lot]
version = "0.12"
[dependencies.pin-project]
version = "1.1"
[dependencies.pin-project-lite]
version = "0.2"
[dependencies.rustc-hash]
version = "2.1"
[dependencies.thiserror]
version = "2.0"
[dependencies.time]
version = "0.3.46"
features = [
"serde",
"local-offset",
]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-core]
version = "0.1"
[dev-dependencies.criterion]
version = "0.8.1"
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.quickcheck]
version = "1.0"
[dev-dependencies.quickcheck_macros]
version = "1.0"
[dev-dependencies.tokio]
version = "1.43"
features = [
"macros",
"rt-multi-thread",
"time",
]
default-features = false
[target.'cfg(not(target_os = "linux"))'.dependencies.libc]
version = "0.2"
[target.'cfg(target_os = "dragonfly")'.dependencies.kqueue]
version = "1.0"
[target.'cfg(target_os = "freebsd")'.dependencies.kqueue]
version = "1.0"
[target.'cfg(target_os = "linux")'.dependencies.io-uring]
version = "0.7.11"
[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"
[target.'cfg(target_os = "macos")'.dependencies.kqueue]
version = "1.0"
[target.'cfg(target_os = "netbsd")'.dependencies.kqueue]
version = "1.0"
[target.'cfg(target_os = "openbsd")'.dependencies.kqueue]
version = "1.0"
[lints.clippy]
assertions_on_constants = "allow"
bool_comparison = "allow"
borrow_as_ptr = "allow"
cargo_common_metadata = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_ptr_alignment = "allow"
cast_sign_loss = "allow"
clone_on_copy = "allow"
collapsible_else_if = "allow"
deref_by_slicing = "allow"
doc_markdown = "allow"
double_comparisons = "allow"
expect_used = "warn"
if_same_then_else = "allow"
implicit_clone = "allow"
indexing_slicing = "warn"
linkedlist = "allow"
manual_is_power_of_two = "allow"
match_single_binding = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
missing_safety_doc = "allow"
missing_trait_methods = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
mut_from_ref = "allow"
needless_bool = "allow"
needless_else = "allow"
needless_range_loop = "allow"
panic = "allow"
panic_in_result_fn = "allow"
ptr_arg = "allow"
ptr_as_ptr = "allow"
redundant_clone = "allow"
redundant_closure = "allow"
redundant_pattern_matching = "allow"
ref_as_ptr = "allow"
return_self_not_must_use = "allow"
should_implement_trait = "allow"
similar_names = "allow"
std_instead_of_core = "allow"
struct_excessive_bools = "allow"
todo = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
type_complexity = "allow"
unimplemented = "allow"
uninlined_format_args = "allow"
unnecessary_debug_formatting = "allow"
unnecessary_wraps = "allow"
unreachable = "allow"
unused_self = "allow"
unwrap_used = "warn"
use_self = "allow"
used_underscore_binding = "allow"
useless_let_if_seq = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
const_item_mutation = "warn"
explicit_outlives_requirements = "warn"
macro_use_extern_crate = "warn"
meta_variable_misuse = "warn"
missing_debug_implementations = "allow"
missing_docs = "warn"
single_use_lifetimes = "warn"
unit_bindings = "warn"
unreachable_pub = "warn"
unsafe_code = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"