[package]
edition = "2024"
name = "machi"
version = "1.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Enterprise embeddable agent runtime kernel"
readme = "README.md"
keywords = [
"ai",
"agent",
"llm",
"workflow",
"runtime",
]
categories = [
"api-bindings",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/qntx/machi"
[features]
compaction = ["dep:machi-compaction"]
default = [
"runtime",
"workflow",
]
full = [
"runtime",
"workflow",
"toolkit",
"state",
"compaction",
"obs",
"openai",
"ollama",
]
obs = ["dep:machi-obs"]
ollama = [
"runtime",
"machi-llm/ollama",
]
openai = [
"runtime",
"machi-llm/openai",
]
runtime = [
"dep:machi-runtime",
"dep:machi-agent",
"dep:machi-llm",
"dep:machi-tools",
]
state = ["dep:machi-state"]
toolkit = [
"runtime",
"dep:machi-toolkit",
]
workflow = ["dep:machi-workflow"]
[lib]
name = "machi"
path = "src/lib.rs"
[[example]]
name = "delegate_multi"
path = "examples/delegate_multi.rs"
[[example]]
name = "delegate_via_tool"
path = "examples/delegate_via_tool.rs"
[[example]]
name = "repo_task"
path = "examples/repo_task.rs"
required-features = [
"toolkit",
"obs",
]
[[example]]
name = "session_checkpoint"
path = "examples/session_checkpoint.rs"
required-features = ["state"]
[[example]]
name = "session_resume"
path = "examples/session_resume.rs"
required-features = ["state"]
[[example]]
name = "turn_basic"
path = "examples/turn_basic.rs"
[[example]]
name = "workflow_fanout"
path = "examples/workflow_fanout.rs"
[[example]]
name = "workflow_ollama"
path = "examples/workflow_ollama.rs"
required-features = [
"ollama",
"workflow",
]
[[example]]
name = "workflow_plan"
path = "examples/workflow_plan.rs"
required-features = [
"workflow",
"obs",
]
[[example]]
name = "workflow_resume"
path = "examples/workflow_resume.rs"
[[test]]
name = "dual_modes"
path = "tests/dual_modes.rs"
required-features = ["full"]
[[test]]
name = "stress"
path = "tests/stress.rs"
required-features = ["full"]
[dependencies.machi-agent]
version = "1.0.0"
optional = true
[dependencies.machi-compaction]
version = "1.0.0"
optional = true
[dependencies.machi-llm]
version = "1.0.0"
optional = true
[dependencies.machi-obs]
version = "1.0.0"
optional = true
[dependencies.machi-protocol]
version = "1.0.0"
[dependencies.machi-runtime]
version = "1.0.0"
optional = true
[dependencies.machi-state]
version = "1.0.0"
optional = true
[dependencies.machi-toolkit]
version = "1.0.0"
optional = true
[dependencies.machi-tools]
version = "1.0.0"
optional = true
[dependencies.machi-types]
version = "1.0.0"
[dependencies.machi-workflow]
version = "1.0.0"
optional = true
[dev-dependencies.async-trait]
version = "0.1.89"
[dev-dependencies.serde_json]
version = "1.0.149"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1.51.0"
features = [
"sync",
"macros",
"rt",
"time",
"rt-multi-thread",
"net",
"io-util",
"rt-multi-thread",
"macros",
]
default-features = false
[dev-dependencies.tokio-util]
version = "0.7"
features = ["rt"]
[lints.clippy]
allow_attributes_without_reason = "warn"
as_underscore = "warn"
assigning_clones = "allow"
await_holding_lock = "warn"
await_holding_refcell_ref = "warn"
boxed_local = "allow"
cargo_common_metadata = "allow"
cast_lossless = "warn"
cast_possible_truncation = "warn"
cast_precision_loss = "allow"
cast_sign_loss = "warn"
clone_on_ref_ptr = "allow"
cognitive_complexity = "warn"
dbg_macro = "warn"
default_trait_access = "allow"
derive_partial_eq_without_eq = "allow"
doc_markdown = "warn"
empty_line_after_doc_comments = "warn"
empty_line_after_outer_attr = "warn"
equatable_if_let = "allow"
error_impl_error = "warn"
excessive_nesting = "allow"
exhaustive_enums = "allow"
exhaustive_structs = "allow"
exit = "warn"
expect_used = "warn"
fallible_impl_from = "warn"
fn_params_excessive_bools = "warn"
format_push_string = "warn"
future_not_send = "warn"
implicit_hasher = "warn"
indexing_slicing = "warn"
infinite_loop = "warn"
large_types_passed_by_value = "warn"
let_underscore_must_use = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "warn"
mem_forget = "warn"
missing_assert_message = "warn"
missing_const_for_fn = "allow"
missing_docs_in_private_items = "allow"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "warn"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
multiple_unsafe_ops_per_block = "warn"
must_use_candidate = "warn"
needless_borrows_for_generic_args = "allow"
needless_pass_by_value = "allow"
needless_raw_string_hashes = "warn"
option_if_let_else = "allow"
or_fun_call = "allow"
panic = "warn"
panic_in_result_fn = "warn"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_clone = "allow"
redundant_pub_crate = "allow"
redundant_type_annotations = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_self_not_must_use = "warn"
semicolon_inside_block = "allow"
semicolon_outside_block = "allow"
shadow_reuse = "allow"
shadow_same = "allow"
shadow_unrelated = "allow"
significant_drop_tightening = "warn"
similar_names = "allow"
str_to_string = "warn"
string_lit_as_bytes = "warn"
struct_excessive_bools = "warn"
tests_outside_test_module = "warn"
todo = "warn"
too_many_lines = "warn"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
unnecessary_box_returns = "allow"
unnecessary_literal_bound = "allow"
unnecessary_self_imports = "warn"
unnecessary_wraps = "allow"
unnested_or_patterns = "allow"
unused_self = "allow"
unwrap_in_result = "warn"
unwrap_used = "warn"
used_underscore_binding = "warn"
verbose_file_reads = "warn"
wildcard_enum_match_arm = "allow"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
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.restriction]
level = "allow"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "deny"
priority = -1
[lints.rust]
elided_lifetimes_in_paths = "warn"
macro_use_extern_crate = "warn"
meta_variable_misuse = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
non_ascii_idents = "deny"
non_camel_case_types = "warn"
non_snake_case = "warn"
non_upper_case_globals = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
unused_crate_dependencies = "warn"
unused_imports = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_must_use = "deny"
unused_qualifications = "warn"
variant_size_differences = "warn"
[lints.rust.keyword_idents]
level = "warn"
priority = -1
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1
[lints.rustdoc]
bare_urls = "warn"
broken_intra_doc_links = "warn"
invalid_codeblock_attributes = "warn"
invalid_html_tags = "warn"
invalid_rust_codeblocks = "warn"
missing_crate_level_docs = "warn"
private_intra_doc_links = "warn"
unescaped_backticks = "warn"
[lints.rustdoc.all]
level = "warn"
priority = -1