# 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 = "2021"
name = "aprender-distribute"
version = "0.35.0"
authors = ["Pragmatic AI Labs"]
build = false
exclude = [
    "tests/",
    "benches/",
    "docs/",
    ".github/",
    "book/",
    ".pmat/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sovereign AI-grade distributed computing primitives for Rust (CPU, GPU, HPC)"
documentation = "https://docs.rs/repartir"
readme = "README.md"
keywords = [
    "distributed",
    "hpc",
    "gpu",
    "cpu",
    "sovereign-ai",
]
categories = [
    "concurrency",
    "science",
]
license = "MIT"
repository = "https://github.com/paiml/repartir"

[package.metadata.release]
shared-version = true

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = '## \[Unreleased\]'
replace = "## [{{version}}] - {{date}}"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--generate-link-to-definition"]

[features]
checkpoint = [
    "trueno-db",
    "tokio",
    "arrow",
    "parquet",
]
cpu = [
    "tokio",
    "num_cpus",
]
default = ["cpu"]
full = [
    "cpu",
    "gpu",
    "remote",
    "remote-tls",
    "checkpoint",
    "tensor",
    "tui",
    "serverless",
    "microvm",
    "simd",
]
gpu = [
    "wgpu",
    "pollster",
]
microvm = [
    "pepita",
    "tokio",
]
remote = [
    "tokio",
    "bincode",
    "tracing-subscriber",
]
remote-tls = [
    "remote",
    "rustls",
    "tokio-rustls",
    "rustls-pemfile",
]
serverless = [
    "pepita",
    "tokio",
]
simd = ["pepita"]
tensor = ["trueno"]
tui = [
    "crossterm",
    "tokio",
]

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

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

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

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

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

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

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

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

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

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

[dependencies.arrow]
version = "57.0"
optional = true

[dependencies.bincode]
version = "1.3"
optional = true

[dependencies.crossterm]
version = "0.28"
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.num_cpus]
version = "1.16"
optional = true

[dependencies.parquet]
version = "57.0"
optional = true

[dependencies.pepita]
version = "0.1.0"
optional = true

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

[dependencies.rustls]
version = "0.23"
optional = true

[dependencies.rustls-pemfile]
version = "2.0"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.35"
features = [
    "rt-multi-thread",
    "sync",
    "time",
    "process",
    "io-util",
    "macros",
    "net",
]
optional = true

[dependencies.tokio-rustls]
version = "0.26"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
optional = true

[dependencies.trueno]
version = "0.16"
features = ["parallel"]
optional = true

[dependencies.trueno-db]
version = "0.3.16"
features = ["distributed"]
optional = true

[dependencies.uuid]
version = "1.6"
features = [
    "v4",
    "serde",
]

[dependencies.wgpu]
version = "23.0"
features = ["fragile-send-sync-non-atomic-wasm"]
optional = true

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

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

[dev-dependencies.jugar-probar]
version = "0.4"
features = ["tui"]
default-features = false

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

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.tracing-subscriber]
version = "0.3"

[lints.clippy]
approx_constant = "allow"
assertions_on_constants = "allow"
assigning_clones = "allow"
bool_to_int_with_if = "allow"
case_sensitive_file_extension_comparisons = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_ptr_alignment = "allow"
cast_sign_loss = "allow"
checked_conversions = "warn"
clone_on_copy = "allow"
cloned_instead_of_copied = "allow"
cloned_ref_to_slice_refs = "allow"
comparison_chain = "allow"
const_is_empty = "allow"
default_constructed_unit_structs = "allow"
default_trait_access = "allow"
derivable_impls = "allow"
doc_link_with_quotes = "allow"
doc_markdown = "allow"
doc_overindented_list_items = "allow"
duplicated_attributes = "allow"
empty_line_after_doc_comments = "allow"
empty_line_after_outer_attr = "allow"
erasing_op = "allow"
excessive_precision = "allow"
explicit_deref_methods = "warn"
explicit_iter_loop = "allow"
field_reassign_with_default = "allow"
float_cmp = "allow"
fn_params_excessive_bools = "allow"
for_kv_map = "allow"
format_collect = "allow"
format_in_format_args = "allow"
format_push_string = "allow"
identity_op = "allow"
if_not_else = "allow"
ignore_without_reason = "allow"
implicit_clone = "allow"
implicit_hasher = "allow"
inconsistent_struct_constructor = "warn"
index_refutable_slice = "allow"
inefficient_to_string = "allow"
items_after_statements = "allow"
iter_cloned_collect = "allow"
large_stack_arrays = "allow"
len_zero = "allow"
manual_contains = "allow"
manual_div_ceil = "allow"
manual_is_multiple_of = "allow"
manual_let_else = "allow"
manual_midpoint = "allow"
manual_ok_or = "warn"
manual_range_contains = "allow"
manual_string_new = "allow"
many_single_char_names = "allow"
map_flatten = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "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_borrows_for_generic_args = "allow"
needless_continue = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
needless_raw_string_hashes = "allow"
no_effect_underscore_binding = "allow"
nonminimal_bool = "allow"
option_option = "allow"
overly_complex_bool_expr = "allow"
print_literal = "allow"
ptr_arg = "allow"
redundant_closure_for_method_calls = "allow"
redundant_guards = "allow"
ref_option = "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_arguments = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
uninlined_format_args = "allow"
unnecessary_debug_formatting = "allow"
unnecessary_literal_bound = "allow"
unnecessary_literal_unwrap = "allow"
unnecessary_map_or = "allow"
unnecessary_wraps = "allow"
unnested_or_patterns = "warn"
unreadable_literal = "allow"
unused_async = "allow"
unused_self = "allow"
used_underscore_binding = "allow"
useless_conversion = "allow"
useless_vec = "allow"
vec_init_then_push = "allow"
wildcard_imports = "allow"

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

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

[lints.rust]
elided_lifetimes_in_paths = "allow"
missing_debug_implementations = "allow"
missing_docs = "allow"
trivial_casts = "allow"
trivial_numeric_casts = "warn"
unreachable_pub = "allow"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "allow"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(kani)",
    "cfg(coverage_nightly)",
    'cfg(feature, values("explainable-monitor-integration"))',
]

[profile.bench]
lto = true
codegen-units = 1

[profile.dev]
opt-level = 0
panic = "abort"

[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true

[profile.test]
opt-level = 1
