[package]
edition = "2024"
name = "machi"
version = "0.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Web3-native AI Agent Framework with embedded wallet capabilities"
readme = "README.md"
keywords = [
"agent",
"ai",
"web3",
"wallet",
"llm",
]
categories = [
"cryptography",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/pyroth/machi"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
all = [
"derive",
"pdf",
"rayon",
]
audio = []
default = ["reqwest-tls"]
derive = ["dep:machi-derive"]
epub = [
"dep:epub",
"dep:quick-xml",
]
experimental = []
image = []
pdf = ["dep:lopdf"]
rayon = ["dep:rayon"]
reqwest-middleware = ["dep:reqwest-middleware"]
reqwest-middleware-rustls = [
"reqwest-middleware",
"reqwest-rustls",
]
reqwest-rustls = [
"reqwest/rustls",
"reqwest/charset",
"reqwest/http2",
]
reqwest-tls = ["reqwest/default"]
rmcp = ["dep:rmcp"]
socks = ["reqwest/socks"]
wasm = [
"dep:wasm-bindgen-futures",
"futures-timer/wasm-bindgen",
]
[lib]
name = "machi"
path = "src/lib.rs"
doctest = false
[[example]]
name = "agent_basic"
path = "examples/agent_basic.rs"
[[example]]
name = "agent_with_extractor"
path = "examples/agent_with_extractor.rs"
[[example]]
name = "agent_with_image"
path = "examples/agent_with_image.rs"
[[example]]
name = "agent_with_mcp_tools"
path = "examples/agent_with_mcp_tools.rs"
required-features = ["rmcp"]
[[example]]
name = "agent_with_rag"
path = "examples/agent_with_rag.rs"
required-features = ["derive"]
[[example]]
name = "agent_with_tools"
path = "examples/agent_with_tools.rs"
[[example]]
name = "agent_with_tools_macro"
path = "examples/agent_with_tools_macro.rs"
required-features = ["derive"]
[[example]]
name = "mcp_server"
path = "examples/mcp_server.rs"
required-features = ["rmcp"]
[[example]]
name = "tools_macro"
path = "examples/tools_macro.rs"
required-features = ["derive"]
[dependencies.as-any]
version = "0.3"
[dependencies.async-stream]
version = "0.3"
[dependencies.base64]
version = "0.22"
[dependencies.bytes]
version = "1.10"
[dependencies.epub]
version = "2.1"
optional = true
[dependencies.eventsource-stream]
version = "0.2"
[dependencies.fastrand]
version = "2.3"
[dependencies.futures]
version = "0.3"
[dependencies.futures-timer]
version = "3.0"
[dependencies.glob]
version = "0.3"
[dependencies.http]
version = "1.3"
[dependencies.lopdf]
version = "0.39"
optional = true
[dependencies.machi-derive]
version = "0.3.1"
optional = true
[dependencies.mime]
version = "0.3"
[dependencies.mime_guess]
version = "2.0"
[dependencies.ordered-float]
version = "5.1"
[dependencies.pin-project-lite]
version = "0.2"
[dependencies.quick-xml]
version = "0.39"
optional = true
[dependencies.rayon]
version = "1.10"
optional = true
[dependencies.reqwest]
version = "0.13"
features = [
"json",
"stream",
"multipart",
]
[dependencies.reqwest-middleware]
version = "0.5"
features = [
"json",
"multipart",
"charset",
"http2",
]
optional = true
[dependencies.rmcp]
version = "0.14"
features = [
"client",
"server",
"transport-streamable-http-server",
"transport-streamable-http-server-session",
"transport-streamable-http-client",
"transport-streamable-http-client-reqwest",
"transport-child-process",
]
optional = true
[dependencies.schemars]
version = "1.2"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.49"
features = [
"rt",
"sync",
]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-futures]
version = "0.2"
features = ["futures-03"]
[dependencies.url]
version = "2.5"
[dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true
[dev-dependencies.anyhow]
version = "1.0"
[dev-dependencies.assert_fs]
version = "1.1"
[dev-dependencies.hyper-util]
version = "0.1"
features = [
"tokio",
"server-auto",
"service",
]
[dev-dependencies.serde_path_to_error]
version = "0.1"
[dev-dependencies.tokio]
version = "1.49"
features = [
"rt",
"sync",
"full",
]
[dev-dependencies.tokio-test]
version = "0.4"
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[lints.clippy]
assigning_clones = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
default_trait_access = "allow"
doc_markdown = "allow"
excessive_nesting = "allow"
explicit_deref_methods = "allow"
explicit_iter_loop = "allow"
filter_map_next = "allow"
items_after_statements = "allow"
iter_without_into_iter = "allow"
manual_let_else = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_continue = "allow"
needless_for_each = "allow"
needless_pass_by_value = "allow"
redundant_closure_for_method_calls = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unnecessary_debug_formatting = "allow"
unnecessary_semicolon = "allow"
unused_async = "allow"
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
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]
unsafe_code = "warn"
[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1