moirai-runtime 0.7.0

High-performance hybrid concurrency library for Rust - weaving the threads of fate
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.95"
name = "moirai-runtime"
version = "0.7.0"
authors = ["Moirai Team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance hybrid concurrency library for Rust - weaving the threads of fate"
homepage = "https://github.com/ryancinsight/Moirai"
documentation = "https://docs.rs/moirai-runtime"
readme = "README.md"
keywords = [
    "concurrency",
    "async",
    "parallel",
    "zero-cost",
    "performance",
]
categories = [
    "concurrency",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ryancinsight/Moirai"

[features]
async = ["moirai-async"]
compression = ["moirai-transport/compression"]
default = [
    "async",
    "iter",
    "parallel",
    "local",
    "mnemosyne-memory",
    "melinoe",
]
distributed = [
    "moirai-transport/distributed",
    "moirai-transport/scheduler-routes",
    "network",
]
encryption = ["moirai-transport/encryption"]
full = [
    "async",
    "iter",
    "parallel",
    "distributed",
    "metrics",
    "encryption",
    "gpu",
]
gpu = ["moirai-gpu"]
iter = ["moirai-iter"]
local = ["moirai-transport/local"]
melinoe = ["dep:melinoe"]
metrics = [
    "moirai-metrics",
    "moirai-core/metrics",
    "moirai-transport/metrics",
]
mnemosyne = [
    "dep:mnemosyne",
    "moirai-core/mnemosyne",
    "moirai-executor/mnemosyne",
]
mnemosyne-memory = ["mnemosyne"]
network = ["moirai-transport/network"]
no-std = ["moirai-core/no-std"]
parallel = ["moirai-parallel"]
tokio-compat = ["moirai-async/tokio-compat"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.melinoe]
version = "0.10.0"
optional = true
default-features = false

[dependencies.mnemosyne]
version = "0.9.0"
optional = true
default-features = false
package = "mnemosyne-memory"

[dependencies.moirai-async]
version = "0.7.0"
optional = true

[dependencies.moirai-core]
version = "0.7.0"

[dependencies.moirai-executor]
version = "0.7.0"

[dependencies.moirai-gpu]
version = "0.7.0"
optional = true

[dependencies.moirai-iter]
version = "0.7.0"
optional = true

[dependencies.moirai-metrics]
version = "0.7.0"
optional = true

[dependencies.moirai-parallel]
version = "0.7.0"
optional = true

[dependencies.moirai-scheduler]
version = "0.7.0"

[dependencies.moirai-sync]
version = "0.7.0"

[dependencies.moirai-transport]
version = "0.7.0"

[dependencies.moirai-utils]
version = "0.7.0"
features = ["std"]

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

[dev-dependencies.fastrand]
version = "2.0"

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.proptest]
version = "1.4"

[dev-dependencies.rayon]
version = "1.8"

[dev-dependencies.tokio]
version = "1.0"
features = ["full"]

[lints.clippy]
assigning_clones = "allow"
bool_to_int_with_if = "allow"
borrow_as_ptr = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
cloned_instead_of_copied = "allow"
comparison_chain = "allow"
doc_markdown = "allow"
duration_suboptimal_units = "allow"
elidable_lifetime_names = "allow"
explicit_iter_loop = "allow"
float_cmp = "allow"
fn_params_excessive_bools = "allow"
if_not_else = "allow"
ignore_without_reason = "allow"
ignored_unit_patterns = "allow"
inline_always = "allow"
items_after_statements = "allow"
large_stack_arrays = "allow"
linkedlist = "allow"
manual_assert = "allow"
manual_let_else = "allow"
manual_midpoint = "allow"
manual_string_new = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
needless_continue = "allow"
needless_for_each = "allow"
needless_pass_by_value = "allow"
needless_raw_string_hashes = "allow"
no_effect_underscore_binding = "allow"
option_option = "allow"
ptr_as_ptr = "allow"
ptr_cast_constness = "allow"
range_plus_one = "allow"
redundant_closure_for_method_calls = "allow"
ref_as_ptr = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
similar_names = "allow"
single_char_pattern = "allow"
single_match_else = "allow"
stable_sort_primitive = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
uninlined_format_args = "allow"
unnecessary_wraps = "allow"
unreadable_literal = "allow"
unused_async = "allow"
unused_self = "allow"
unwrap_used = "deny"
used_underscore_binding = "allow"
wildcard_imports = "allow"

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

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(loom)",
    "cfg(fuzzing)",
]