modular-agent-core 0.24.0

Modular Agent Core
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"
name = "modular-agent-core"
version = "0.24.0"
authors = ["Akira Ishino <akira@lumilab.jp>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Modular Agent Core"
readme = "README.md"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/modular-agent/modular-agent-core"
resolver = "2"

[features]
default = [
    "file",
    "image",
    "llm",
    "mcp",
]
file = []
image = ["photon-rs"]
llm = [
    "regex",
    "jsonschema",
    "futures-util",
    "uuid",
    "chrono",
    "tokio/fs",
    "tokio/io-util",
]
mcp = [
    "rmcp",
    "llm",
]
test-utils = []

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

[[example]]
name = "cli"
path = "examples/cli.rs"
required-features = ["file"]

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

[[test]]
name = "main_test"
path = "tests/main_test.rs"
required-features = ["test-utils"]

[[test]]
name = "mcp_lifecycle_test"
path = "tests/mcp_lifecycle_test.rs"
harness = false
required-features = ["mcp"]

[dependencies.async-trait]
version = "0.1"

[dependencies.chrono]
version = "0.4"
features = ["clock"]
optional = true
default-features = false

[dependencies.fnv]
version = "1"

[dependencies.futures-util]
version = "0.3"
features = ["alloc"]
optional = true
default-features = false

[dependencies.im]
version = "15.1.0"
features = ["serde"]

[dependencies.indexmap]
version = "2"
features = ["serde"]

[dependencies.inventory]
version = "0.3"

[dependencies.jsonschema]
version = "0.48.1"
optional = true
default-features = false

[dependencies.log]
version = "0.4"

[dependencies.modular-agent-macros]
version = "0.24.0"

[dependencies.photon-rs]
version = "0.3.3"
optional = true

[dependencies.regex]
version = "1.12.2"
optional = true

[dependencies.rmcp]
version = "0.13.0"
features = [
    "client",
    "transport-child-process",
]
optional = true

[dependencies.serde]
version = "1"
features = [
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "rt-multi-thread",
    "sync",
    "time",
    "macros",
]

[dependencies.tokio-util]
version = "0.7"
default-features = false

[dependencies.uuid]
version = "1"
features = ["v4"]
optional = true

[dev-dependencies.clap]
version = "4"
features = ["derive"]

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.serial_test]
version = "3"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "io-util",
    "io-std",
    "signal",
]