[package]
edition = "2024"
rust-version = "1.95"
name = "arty"
version = "0.6.0"
authors = ["The Oxidizer Project Authors"]
build = false
include = [
"/src/**",
"!/src/__fuzz__/**",
"/build.rs",
"/tests/**",
"!/tests/__fuzz__/**",
"/docs/**/*.md",
"/Cargo.toml",
"/README.md",
"/LICENSE*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Thread-aware async runtime that keeps each task on one worker thread."
homepage = "https://github.com/microsoft/oxidizer"
readme = "README.md"
keywords = [
"arty",
"async",
"runtime",
]
categories = ["asynchronous"]
license = "MIT"
repository = "https://github.com/microsoft/oxidizer/tree/main/crates/arty"
resolver = "2"
[package.metadata.cargo_check_external_types]
allowed_external_types = [
"arty_io_core::io_context::IoContext",
"arty_macros::main",
"arty_macros::test",
"thread_aware_core::thread::NumaNode",
"thread_aware_core::thread::Owner",
"thread_aware_core::thread::Thread",
"thread_aware_core::thread_aware::ThreadAware",
"tick::clock::Clock",
"tick::clock_control::ClockControl",
"tick::runtime::inactive_clock::InactiveClock",
]
[package.metadata.docs.rs]
all-features = true
[features]
default = [
"rt",
"macros",
"monitor",
]
macros = [
"rt",
"dep:arty_macros",
]
monitor = [
"dep:seismograph",
"seismograph/monitor",
"performables?/seismograph",
]
rt = [
"dep:arty_executor",
"dep:arty_io_host",
"dep:derive_more",
"dep:events_once",
"dep:foldhash",
"dep:futures",
"dep:many_cpus",
"dep:nonempty",
"dep:observed",
"dep:ohno",
"dep:performables",
"dep:pin-project",
"dep:plurality",
"dep:thread_aware",
]
test-util = [
"tick/test-util",
"many_cpus?/test-util",
]
[lib]
name = "arty"
path = "src/lib.rs"
[[test]]
name = "behavior_contracts"
path = "tests/behavior_contracts.rs"
[[test]]
name = "block_on_spawn"
path = "tests/block_on_spawn.rs"
[[test]]
name = "blocking_wait_cycles"
path = "tests/blocking_wait_cycles.rs"
[[test]]
name = "construction"
path = "tests/construction.rs"
[[test]]
name = "io"
path = "tests/io/main.rs"
[[test]]
name = "join_failures"
path = "tests/join_failures.rs"
[[test]]
name = "panic"
path = "tests/panic/main.rs"
[[test]]
name = "public_paths"
path = "tests/public_paths.rs"
[[test]]
name = "public_surface"
path = "tests/public_surface.rs"
[[test]]
name = "relocation"
path = "tests/relocation.rs"
[[test]]
name = "runtime_contracts"
path = "tests/runtime_contracts.rs"
[[test]]
name = "scheduler"
path = "tests/scheduler.rs"
[[test]]
name = "spawning"
path = "tests/spawning.rs"
[[test]]
name = "stop"
path = "tests/stop.rs"
[[test]]
name = "test_macro"
path = "tests/test_macro.rs"
[[test]]
name = "time"
path = "tests/time.rs"
[[test]]
name = "worker_wait_guards"
path = "tests/worker_wait_guards.rs"
[dependencies.arty_executor]
version = "=0.6.0"
optional = true
default-features = false
[dependencies.arty_io_core]
version = "0.4.0"
default-features = false
[dependencies.arty_io_host]
version = "=0.6.0"
optional = true
default-features = false
[dependencies.arty_macros]
version = "=0.6.0"
optional = true
default-features = false
[dependencies.derive_more]
version = "2.0.1"
features = ["debug"]
optional = true
default-features = false
[dependencies.events_once]
version = "0.5.32"
optional = true
default-features = false
[dependencies.foldhash]
version = "0.2.0"
features = ["std"]
optional = true
default-features = false
[dependencies.futures]
version = "0.3.31"
features = ["executor"]
optional = true
default-features = false
[dependencies.many_cpus]
version = "2.1.0"
optional = true
default-features = false
[dependencies.nonempty]
version = "0.12.0"
optional = true
default-features = false
[dependencies.observed]
version = "0.30.0"
optional = true
default-features = false
[dependencies.ohno]
version = "0.5.4"
optional = true
default-features = false
[dependencies.performables]
version = "0.3.1"
optional = true
default-features = false
[dependencies.pin-project]
version = "1.1.8"
optional = true
default-features = false
[dependencies.plurality]
version = "0.2.4"
features = ["std"]
optional = true
default-features = false
[dependencies.seismograph]
version = "0.4.0"
optional = true
default-features = false
[dependencies.thread_aware]
version = "0.12.2"
features = [
"std",
"derive",
]
optional = true
default-features = false
[dependencies.thread_aware_core]
version = "0.1.3"
features = ["std"]
default-features = false
[dependencies.tick]
version = "0.9.0"
default-features = false
[dev-dependencies.bolero]
version = "0.13.4"
features = ["std"]
default-features = false
[dev-dependencies.criterion]
version = "0.8.2"
default-features = false
[dev-dependencies.derive_more]
version = "2.0.1"
features = ["debug"]
default-features = false
[dev-dependencies.events_once]
version = "0.5.32"
default-features = false
[dev-dependencies.foldhash]
version = "0.2.0"
features = ["std"]
default-features = false
[dev-dependencies.futures]
version = "0.3.31"
features = [
"executor",
"async-await",
]
default-features = false
[dev-dependencies.gungraun]
version = "=0.20.0"
features = ["default"]
default-features = false
[dev-dependencies.many_cpus]
version = "2.1.0"
features = ["test-util"]
default-features = false
[dev-dependencies.mutants]
version = "0.0.3"
default-features = false
[dev-dependencies.nonempty]
version = "0.12.0"
default-features = false
[dev-dependencies.pin-project]
version = "1.1.8"
default-features = false
[dev-dependencies.scopeguard]
version = "1.2.0"
default-features = false
[dev-dependencies.static_assertions]
version = "1.1.0"
default-features = false
[dev-dependencies.tokio]
version = "1.53.3"
features = [
"rt",
"rt-multi-thread",
"time",
"sync",
]
default-features = false
[lints.clippy]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
as_pointer_underscore = "warn"
assertions_on_result_states = "warn"
clone_on_ref_ptr = "warn"
deref_by_slicing = "warn"
disallowed_script_idents = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
fn_to_numeric_cast_any = "warn"
if_then_some_else_none = "warn"
literal_string_with_formatting_args = "allow"
map_err_ignore = "warn"
missing_const_for_fn = "allow"
multiple_crate_versions = "allow"
multiple_unsafe_ops_per_block = "warn"
option_if_let_else = "allow"
panic = "warn"
redundant_pub_crate = "allow"
redundant_type_annotations = "warn"
renamed_function_params = "warn"
semicolon_outside_block = "warn"
should_panic_without_expect = "allow"
significant_drop_tightening = "allow"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unneeded_field_pattern = "warn"
unused_result_ok = "warn"
unwrap_used = "warn"
wildcard_imports = "allow"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
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]
ambiguous_negative_literals = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_lifetimes = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(coverage,coverage_nightly)",
"cfg(loom)",
"cfg(miri_race_coverage)",
"cfg(miri_strict_provenance)",
"cfg(miri_tree_borrows)",
]
[lints.rustdoc]
broken_intra_doc_links = "warn"
missing_crate_level_docs = "warn"
unescaped_backticks = "warn"