nexus-rt 2.2.0

Single-threaded, event-driven runtime primitives with pre-resolved dispatch
Documentation
# 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"
rust-version = "1.85"
name = "nexus-rt"
version = "2.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Single-threaded, event-driven runtime primitives with pre-resolved dispatch"
readme = "README.md"
keywords = [
    "lock-free",
    "concurrent",
    "data-structures",
    "trading",
]
categories = [
    "concurrency",
    "data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Abso1ut3Zer0/nexus"
resolver = "2"

[package.metadata.docs.rs]
all-features = true

[features]
codegen-audit = []
full = [
    "smartptr",
    "timer",
    "mio",
    "signals",
    "reactors",
]
mio = [
    "dep:mio",
    "dep:slab",
]
reactors = [
    "dep:nexus-notify",
    "dep:slab",
]
signals = ["dep:signal-hook"]
smartptr = ["dep:nexus-smartptr"]
timer = ["dep:nexus-timer"]

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

[[example]]
name = "dag"
path = "examples/dag.rs"

[[example]]
name = "handlers"
path = "examples/handlers.rs"

[[example]]
name = "local_state"
path = "examples/local_state.rs"

[[example]]
name = "mio_timer"
path = "examples/mio_timer.rs"
required-features = [
    "mio",
    "timer",
]

[[example]]
name = "mock_runtime"
path = "examples/mock_runtime.rs"

[[example]]
name = "optional_resources"
path = "examples/optional_resources.rs"

[[example]]
name = "perf_construction"
path = "examples/perf_construction.rs"

[[example]]
name = "perf_dag"
path = "examples/perf_dag.rs"

[[example]]
name = "perf_fetch"
path = "examples/perf_fetch.rs"

[[example]]
name = "perf_pipeline"
path = "examples/perf_pipeline.rs"

[[example]]
name = "perf_reactors"
path = "examples/perf_reactors.rs"
required-features = ["reactors"]

[[example]]
name = "perf_scheduler"
path = "examples/perf_scheduler.rs"

[[example]]
name = "perf_template"
path = "examples/perf_template.rs"

[[example]]
name = "pipeline"
path = "examples/pipeline.rs"

[[example]]
name = "projection_spike"
path = "examples/projection_spike.rs"

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

[[example]]
name = "scheduler_dag"
path = "examples/scheduler_dag.rs"

[[example]]
name = "select_asm_check"
path = "examples/select_asm_check.rs"

[[example]]
name = "templates"
path = "examples/templates.rs"

[[example]]
name = "testing_example"
path = "examples/testing_example.rs"

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

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

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

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

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

[[bench]]
name = "dispatch"
path = "benches/dispatch.rs"
harness = false

[dependencies.mio]
version = "1"
features = [
    "os-poll",
    "net",
]
optional = true

[dependencies.nexus-notify]
version = "1.0"
optional = true

[dependencies.nexus-rt-derive]
version = "1.2"

[dependencies.nexus-smartptr]
version = "0.1"
optional = true

[dependencies.nexus-timer]
version = "1.2"
optional = true

[dependencies.rustc-hash]
version = "2"

[dependencies.signal-hook]
version = "0.3"
optional = true

[dependencies.slab]
version = "0.4"
optional = true

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.mio]
version = "1"
features = [
    "os-poll",
    "net",
]

[dev-dependencies.trybuild]
version = "1"

[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_ptr_alignment = "allow"
cast_sign_loss = "allow"
cognitive_complexity = "allow"
doc_markdown = "allow"
inline_always = "allow"
manual_range_contains = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_range_loop = "allow"
ptr_as_ptr = "allow"
redundant_pub_crate = "allow"
ref_as_ptr = "allow"
return_self_not_must_use = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
use_self = "allow"
wildcard_imports = "allow"

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

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

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

[lints.rust]
unsafe_op_in_unsafe_fn = "warn"