[package]
edition = "2024"
name = "asupersync"
version = "0.3.1"
build = false
include = [
"Cargo.toml",
"README.md",
"LICENSE",
"assets/dashboard.html",
"src/**",
"!**/*.out",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Spec-first, cancel-correct, capability-secure async runtime for Rust."
documentation = "https://docs.rs/asupersync"
readme = "README.md"
keywords = [
"async",
"structured",
"cancellation",
"runtime",
]
categories = [
"asynchronous",
"concurrency",
]
license-file = "LICENSE"
repository = "https://github.com/Dicklesworthstone/asupersync"
[features]
browser-io = []
browser-trace = []
cancel-correctness-oracle = []
cli = [
"dep:clap",
"dep:time",
"trace-compression",
"dep:conformance",
"dep:serde_yaml",
"dep:chrono",
"dep:env_logger",
]
compression = [
"dep:flate2",
"dep:brotli",
]
config-file = ["dep:toml"]
debug-server = []
default = [
"test-internals",
"proc-macros",
]
deterministic-mode = []
http3 = ["quic"]
io-uring = ["dep:io-uring"]
kafka = ["dep:rdkafka"]
lock-metrics = []
loom-tests = ["dep:loom"]
messaging-fabric = []
metrics = [
"dep:opentelemetry",
"dep:opentelemetry_sdk",
]
mysql = []
native-runtime = []
obligation-leak-detection = []
postgres = []
proc-macros = ["dep:asupersync-macros"]
quic = []
simd-intrinsics = []
sqlite = ["dep:rusqlite"]
test-internals = [
"dep:tracing",
"dep:tracing-subscriber",
"dep:visibility",
]
tls = [
"dep:rustls",
"dep:rustls-pki-types",
"rustls/ring",
"dep:ring",
"dep:rustls-pemfile",
"dep:x509-parser",
]
tls-native-roots = [
"tls",
"dep:rustls-native-certs",
]
tls-webpki-roots = [
"tls",
"dep:webpki-roots",
]
tower = ["dep:tower"]
trace-compression = ["dep:lz4_flex"]
tracing-integration = ["dep:tracing"]
wasm-browser-deterministic = [
"wasm-runtime",
"deterministic-mode",
"browser-trace",
]
wasm-browser-dev = [
"wasm-runtime",
"browser-io",
]
wasm-browser-minimal = ["wasm-runtime"]
wasm-browser-preview = []
wasm-browser-prod = [
"wasm-runtime",
"browser-io",
]
wasm-runtime = ["wasm-browser-preview"]
[lib]
name = "asupersync"
path = "src/lib.rs"
[[bin]]
name = "asupersync"
path = "src/bin/asupersync.rs"
required-features = ["cli"]
[[bin]]
name = "offline_tuner"
path = "src/bin/offline_tuner.rs"
required-features = [
"cli",
"simd-intrinsics",
]
[dependencies.asupersync-macros]
version = "0.3.1"
optional = true
[dependencies.base64]
version = "0.22.1"
[dependencies.bincode]
version = "2.1"
features = ["serde"]
package = "bincode-next"
[dependencies.brotli]
version = "8.0"
optional = true
[dependencies.chrono]
version = "0.4"
features = ["serde"]
optional = true
[dependencies.clap]
version = "4.4"
features = ["derive"]
optional = true
[dependencies.conformance]
version = "0.3.1"
optional = true
package = "asupersync-conformance"
[dependencies.crc32fast]
version = "1.4"
[dependencies.crossbeam-deque]
version = "0.8.6"
[dependencies.crossbeam-queue]
version = "0.3"
[dependencies.env_logger]
version = "0.11"
optional = true
[dependencies.flate2]
version = "1.1"
optional = true
[dependencies.franken-decision]
version = "0.3.1"
[dependencies.franken-evidence]
version = "0.3.1"
[dependencies.franken-kernel]
version = "0.3.1"
[dependencies.futures-lite]
version = "2.6"
[dependencies.getrandom]
version = "0.4"
[dependencies.hashbrown]
version = "0.17"
[dependencies.hmac]
version = "0.13"
[dependencies.loom]
version = "0.7"
optional = true
[dependencies.lz4_flex]
version = "0.13"
optional = true
[dependencies.memchr]
version = "2.8"
[dependencies.opentelemetry]
version = "0.31"
features = [
"metrics",
"trace",
]
optional = true
default-features = false
[dependencies.opentelemetry_sdk]
version = "0.31"
features = [
"metrics",
"trace",
]
optional = true
default-features = false
[dependencies.parking_lot]
version = "0.12"
[dependencies.pin-project]
version = "1.1"
[dependencies.prost]
version = "0.13"
[dependencies.rdkafka]
version = "0.39"
optional = true
default-features = false
[dependencies.rmp-serde]
version = "1.3"
[dependencies.rusqlite]
version = "0.39"
features = ["bundled"]
optional = true
[dependencies.rustls]
version = "0.23"
features = [
"std",
"tls12",
]
optional = true
default-features = false
[dependencies.rustls-native-certs]
version = "0.8"
optional = true
[dependencies.rustls-pemfile]
version = "2.2"
optional = true
[dependencies.rustls-pki-types]
version = "1.14"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.serde_yaml]
version = "0.9"
optional = true
[dependencies.sha1]
version = "0.11"
[dependencies.sha2]
version = "0.11"
[dependencies.slab]
version = "0.4"
[dependencies.smallvec]
version = "1.15"
[dependencies.tempfile]
version = "3.25"
[dependencies.thiserror]
version = "2.0"
[dependencies.time]
version = ">=0.3, <0.3.47"
features = ["formatting"]
optional = true
[dependencies.toml]
version = "1.0"
optional = true
[dependencies.tower]
version = "0.5.3"
optional = true
[dependencies.tracing]
version = "0.1"
optional = true
[dependencies.tracing-subscriber]
version = "0.3"
optional = true
[dependencies.visibility]
version = "0.1"
optional = true
[dependencies.webpki-roots]
version = "1.0"
optional = true
[dependencies.x509-parser]
version = "0.18"
optional = true
[dev-dependencies.chrono]
version = "0.4"
features = ["serde"]
[dev-dependencies.conformance]
version = "0.3.1"
package = "asupersync-conformance"
[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[dev-dependencies.fastrand]
version = "2.3"
[dev-dependencies.flate2]
version = "1.1"
[dev-dependencies.insta]
version = "1.40"
features = ["json"]
[dev-dependencies.lz4_flex]
version = "0.13"
[dev-dependencies.opentelemetry_sdk]
version = "0.31"
features = [
"metrics",
"testing",
]
default-features = false
[dev-dependencies.proptest]
version = "1.10"
[dev-dependencies.rayon]
version = "1.12"
[dev-dependencies.rcgen]
version = "0.14"
[dev-dependencies.serde_yaml]
version = "0.9"
[dev-dependencies.tempfile]
version = "3.25"
[dev-dependencies.toml]
version = "1.0"
[dev-dependencies.tracing]
version = "0.1"
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.libc]
version = "0.2"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.nix]
version = "0.31"
features = [
"fs",
"poll",
"socket",
"uio",
"user",
]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.polling]
version = "3.11"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ring]
version = "0.17"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.signal-hook]
version = "0.4"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.socket2]
version = "0.6"
features = ["all"]
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.4"
features = ["wasm_js"]
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
"BroadcastChannel",
"DomException",
"Event",
"EventTarget",
"IdbDatabase",
"IdbFactory",
"IdbObjectStore",
"IdbOpenDbRequest",
"IdbRequest",
"IdbTransaction",
"IdbTransactionMode",
"MessageChannel",
"MessagePort",
"MessageEvent",
"Window",
"Storage",
"ReadableStream",
"ReadableStreamDefaultReader",
"WorkerGlobalScope",
"WritableStream",
"WritableStreamDefaultWriter",
]
[target.'cfg(target_os = "linux")'.dependencies.io-uring]
version = "0.7"
optional = true
[lints.clippy]
arithmetic_side_effects = "allow"
assertions_on_constants = "allow"
bool_assert_comparison = "allow"
borrow_as_ptr = "allow"
branches_sharing_code = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
cognitive_complexity = "allow"
collapsible_if = "allow"
collection_is_never_read = "allow"
default_trait_access = "allow"
derive_partial_eq_without_eq = "allow"
doc_markdown = "allow"
duration_suboptimal_units = "allow"
explicit_into_iter_loop = "allow"
explicit_iter_loop = "allow"
field_reassign_with_default = "allow"
float_cmp = "allow"
format_collect = "allow"
format_push_string = "allow"
if_not_else = "allow"
ignored_unit_patterns = "allow"
inefficient_to_string = "allow"
items_after_statements = "allow"
items_after_test_module = "allow"
large_enum_variant = "allow"
large_futures = "allow"
len_zero = "allow"
manual_checked_ops = "allow"
manual_div_ceil = "allow"
manual_is_multiple_of = "allow"
manual_let_else = "allow"
match_like_matches_macro = "allow"
match_same_arms = "allow"
match_wild_err_arm = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_inline_in_public_items = "allow"
missing_panics_doc = "allow"
module_inception = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
must_use_unit = "allow"
needless_pass_by_ref_mut = "allow"
needless_pass_by_value = "allow"
new_without_default = "allow"
no_effect_underscore_binding = "allow"
option_if_let_else = "allow"
option_option = "allow"
or_fun_call = "allow"
ptr_as_ptr = "allow"
read_zero_byte_vec = "allow"
redundant_clone = "allow"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
redundant_field_names = "allow"
redundant_pattern_matching = "allow"
result_large_err = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
should_implement_trait = "allow"
significant_drop_in_scrutinee = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
single_match = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
suboptimal_flops = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
uninlined_format_args = "allow"
unit_arg = "allow"
unnecessary_debug_formatting = "allow"
unnecessary_sort_by = "allow"
unnecessary_wraps = "allow"
unreadable_literal = "allow"
unused_async = "allow"
unused_peekable = "allow"
unused_self = "allow"
use_self = "allow"
used_underscore_binding = "allow"
useless_vec = "allow"
wrong_self_convention = "allow"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
unused_doc_comments = "allow"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(loom)",
'cfg(feature, values("quic", "http3", "quic-compat", "http3-compat", "wasm-browser-preview", "simd-intrinsics", "messaging-fabric"))',
]
[lints.rust.unused]
level = "warn"
priority = -1
[profile.bench]
opt-level = 3
lto = "fat"
codegen-units = 1
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = "symbols"