systemprompt-agent 0.0.12

Core Agent protocol module for systemprompt.io
# 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 = "systemprompt-agent"
version = "0.0.12"
authors = ["Edward Burton"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core Agent protocol module for systemprompt.io"
homepage = "https://systemprompt.io"
readme = "README.md"
keywords = [
    "ai",
    "agents",
    "mcp",
    "llm",
    "orchestration",
]
categories = [
    "api-bindings",
    "development-tools",
]
license = "BSL-1.0"
repository = "https://github.com/systempromptio/systemprompt-core"

[features]
cli = []
default = ["web"]
web = [
    "dep:axum",
    "dep:tower",
    "dep:tower-http",
    "dep:bytes",
    "dep:jsonwebtoken",
    "dep:tokio-stream",
    "dep:urlencoding",
]

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

[dependencies.anyhow]
version = "1.0"

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

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

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1.0"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clap]
version = "4.4"
features = [
    "derive",
    "env",
]

[dependencies.dotenvy]
version = "0.15"

[dependencies.futures]
version = "0.3"

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

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.12"

[dependencies.inventory]
version = "0.3"

[dependencies.jsonwebtoken]
version = "10"
features = ["rust_crypto"]
optional = true

[dependencies.md5]
version = "0.7"

[dependencies.nix]
version = "0.30"
features = [
    "process",
    "signal",
]

[dependencies.oauth2]
version = "5.0"

[dependencies.rand]
version = "0.9"

[dependencies.regex]
version = "1.11"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "stream",
    "rustls-tls",
]
default-features = false

[dependencies.rmcp]
version = "0.12.0"
features = [
    "server",
    "client",
    "transport-io",
    "transport-streamable-http-server",
    "transport-streamable-http-server-session",
    "transport-streamable-http-client",
    "transport-streamable-http-client-reqwest",
    "macros",
    "auth",
]

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

[dependencies.serde_json]
version = "1.0"
features = ["preserve_order"]

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.10"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio-rustls",
    "postgres",
    "migrate",
    "chrono",
    "rust_decimal",
]

[dependencies.systemprompt-config]
version = "0.0.12"

[dependencies.systemprompt-database]
version = "0.0.12"

[dependencies.systemprompt-events]
version = "0.0.12"

[dependencies.systemprompt-extension]
version = "0.0.12"

[dependencies.systemprompt-identifiers]
version = "0.0.12"
features = ["sqlx"]

[dependencies.systemprompt-loader]
version = "0.0.12"

[dependencies.systemprompt-logging]
version = "0.0.12"

[dependencies.systemprompt-models]
version = "0.0.12"
features = ["web"]

[dependencies.systemprompt-security]
version = "0.0.12"

[dependencies.systemprompt-traits]
version = "0.0.12"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.47"
features = [
    "rt-multi-thread",
    "net",
    "io-util",
    "time",
    "sync",
    "macros",
    "fs",
    "process",
    "signal",
]

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

[dependencies.tokio-util]
version = "0.7"

[dependencies.tower]
version = "0.5"
features = ["util"]
optional = true

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

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "registry",
]

[dependencies.url]
version = "2.5"

[dependencies.urlencoding]
version = "2.1"
optional = true

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

[dependencies.walkdir]
version = "2.0"

[dev-dependencies.axum-test]
version = "15.0"

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

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

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

[dev-dependencies.url]
version = "2.5"

[lints.clippy]
cargo_common_metadata = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_ref_ptr = "warn"
cognitive_complexity = "deny"
dbg_macro = "deny"
derive_partial_eq_without_eq = "allow"
empty_structs_with_brackets = "warn"
exit = "deny"
expect_used = "warn"
format_push_string = "allow"
if_not_else = "warn"
implicit_clone = "warn"
inefficient_to_string = "warn"
items_after_statements = "warn"
large_futures = "warn"
manual_let_else = "warn"
match_bool = "warn"
match_wild_err_arm = "warn"
missing_docs_in_private_items = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "warn"
option_if_let_else = "warn"
or_fun_call = "warn"
panic = "deny"
print_stderr = "warn"
print_stdout = "warn"
rc_mutex = "deny"
redundant_clone = "warn"
redundant_else = "warn"
rest_pat_in_fully_bound_structs = "warn"
result_unit_err = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "warn"
separated_literal_suffix = "warn"
todo = "deny"
too_many_arguments = "deny"
too_many_lines = "warn"
trivially_copy_pass_by_ref = "allow"
try_err = "warn"
type_complexity = "warn"
unimplemented = "deny"
uninlined_format_args = "allow"
unnecessary_to_owned = "warn"
unnecessary_wraps = "warn"
unused_async = "warn"
unwrap_or_default = "allow"
unwrap_used = "deny"

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

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

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

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

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

[lints.clippy.suspicious]
level = "deny"
priority = -1

[lints.rust]
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unsafe_code = "forbid"
unused_import_braces = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"