# 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 = "microresolve"
version = "0.2.2"
authors = ["Gladius Thayalarajan"]
build = false
exclude = [
    "ui/**",
    "docs-site/**",
    "node/**",
    "python/**",
    "scripts/**",
    "data/**",
    ".github/**",
    "_internal/**",
    "examples/curl/**",
    "examples/node/**",
    "examples/python/**",
    "examples/rust/**",
    "src/bin/test_hebbian.rs",
    ".env.example",
    ".gitignore",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "System 1 relay for LLM apps — sub-millisecond intent classification, safety gating, tool selection. CPU-only, continuous learning from corrections."
homepage = "https://github.com/gladius/microresolve"
documentation = "https://docs.rs/microresolve"
readme = "README.md"
keywords = [
    "intent",
    "pre-llm",
    "llm",
    "safety",
    "agent-router",
]
categories = [
    "text-processing",
    "algorithms",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/gladius/microresolve"

[features]
bundled-ui = [
    "rust-embed",
    "mime_guess",
]
connect = ["reqwest"]
default = ["connect"]
server = [
    "axum",
    "tokio",
    "tokio-stream",
    "tower-http",
    "reqwest",
    "connect",
    "clap",
    "toml",
    "directories",
    "open",
    "rand",
    "hex",
    "sha2",
    "zip",
    "tar",
    "flate2",
    "bundled-ui",
]

[lib]
name = "microresolve"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "microresolve-studio"
path = "src/bin/server/main.rs"
required-features = ["server"]

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "resolve"
path = "benches/resolve.rs"
harness = false

[dependencies.aho-corasick]
version = "1"

[dependencies.axum]
version = "0.8"
features = ["multipart"]
optional = true

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.directories]
version = "6"
optional = true

[dependencies.flate2]
version = "1"
features = ["rust_backend"]
optional = true
default-features = false

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

[dependencies.mime_guess]
version = "2"
optional = true

[dependencies.open]
version = "5"
optional = true

[dependencies.rand]
version = "0.10"
optional = true

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "blocking",
]
optional = true

[dependencies.rust-embed]
version = "8"
features = ["compression"]
optional = true

[dependencies.rustc-hash]
version = "2"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.10"
optional = true

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

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]
optional = true

[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]
optional = true

[dependencies.toml]
version = "1"
optional = true

[dependencies.tower-http]
version = "0.6"
features = [
    "cors",
    "fs",
]
optional = true

[dependencies.url]
version = "2"

[dependencies.zip]
version = "8"
optional = true

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

[dev-dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "blocking",
]

[dev-dependencies.serde_json]
version = "1"

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