systemprompt 0.7.0

Self-hosted AI governance infrastructure. The Rust library behind systemprompt.io: MCP-native tool-call governance, 6-tier RBAC, secret detection, full audit trails, SIEM-ready events. Provider-agnostic across Anthropic, OpenAI, Gemini, and local models. PostgreSQL, air-gap capable, BSL-1.1.
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 = "systemprompt"
version = "0.7.0"
authors = ["Edward Burton"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Self-hosted AI governance infrastructure. The Rust library behind systemprompt.io: MCP-native tool-call governance, 6-tier RBAC, secret detection, full audit trails, SIEM-ready events. Provider-agnostic across Anthropic, OpenAI, Gemini, and local models. PostgreSQL, air-gap capable, BSL-1.1."
homepage = "https://systemprompt.io"
documentation = "https://systemprompt.io/documentation"
readme = "README.md"
keywords = [
    "mcp",
    "ai-governance",
    "claude",
    "agents",
    "rbac",
]
categories = [
    "api-bindings",
    "authentication",
    "web-programming::http-server",
]
license = "BUSL-1.1"
repository = "https://github.com/systempromptio/systemprompt-core"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
api = [
    "core",
    "database",
    "dep:systemprompt-api",
    "dep:systemprompt-runtime",
    "dep:axum",
]
cli = ["dep:systemprompt-cli"]
client = ["dep:systemprompt-client"]
cloud = ["dep:systemprompt-cloud"]
config = ["dep:systemprompt-config"]
core = [
    "dep:systemprompt-traits",
    "dep:systemprompt-models",
    "dep:systemprompt-identifiers",
    "dep:systemprompt-extension",
    "dep:systemprompt-template-provider",
]
database = [
    "dep:systemprompt-database",
    "dep:sqlx",
]
default = ["core"]
events = ["dep:systemprompt-events"]
full = [
    "api",
    "mcp",
    "sync",
    "cloud",
    "cli",
    "dep:systemprompt-agent",
    "dep:systemprompt-ai",
    "dep:systemprompt-mcp",
    "dep:systemprompt-oauth",
    "dep:systemprompt-users",
    "dep:systemprompt-content",
    "dep:systemprompt-analytics",
    "dep:systemprompt-scheduler",
    "dep:systemprompt-generator",
    "logging",
    "systemprompt-logging/cli",
    "config",
    "dep:systemprompt-files",
    "loader",
    "events",
    "client",
    "security",
]
loader = ["dep:systemprompt-loader"]
logging = ["dep:systemprompt-logging"]
mcp = ["dep:rmcp"]
runtime = [
    "cli",
    "dep:systemprompt-extension",
]
security = ["dep:systemprompt-security"]
sync = ["dep:systemprompt-sync"]
test-utils = ["cloud"]

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

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

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

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

[[example]]
name = "extension"
path = "examples/extension.rs"
required-features = ["core"]

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

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

[dependencies.rmcp]
version = "1.6"
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",
]
optional = true

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

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

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio-rustls",
    "macros",
    "postgres",
    "migrate",
    "chrono",
    "rust_decimal",
    "json",
]
optional = true
default-features = false

[dependencies.systemprompt-agent]
version = "0.7.0"
optional = true

[dependencies.systemprompt-ai]
version = "0.7.0"
optional = true

[dependencies.systemprompt-analytics]
version = "0.7.0"
optional = true

[dependencies.systemprompt-api]
version = "0.7.0"
optional = true

[dependencies.systemprompt-cli]
version = "0.7.0"
optional = true

[dependencies.systemprompt-client]
version = "0.7.0"
optional = true

[dependencies.systemprompt-cloud]
version = "0.7.0"
optional = true

[dependencies.systemprompt-config]
version = "0.7.0"
optional = true

[dependencies.systemprompt-content]
version = "0.7.0"
optional = true

[dependencies.systemprompt-database]
version = "0.7.0"
optional = true

[dependencies.systemprompt-events]
version = "0.7.0"
optional = true

[dependencies.systemprompt-extension]
version = "0.7.0"
optional = true

[dependencies.systemprompt-files]
version = "0.7.0"
optional = true

[dependencies.systemprompt-generator]
version = "0.7.0"
features = ["image-processing"]
optional = true

[dependencies.systemprompt-identifiers]
version = "0.7.0"
optional = true

[dependencies.systemprompt-loader]
version = "0.7.0"
optional = true

[dependencies.systemprompt-logging]
version = "0.7.0"
optional = true

[dependencies.systemprompt-mcp]
version = "0.7.0"
optional = true

[dependencies.systemprompt-models]
version = "0.7.0"
optional = true

[dependencies.systemprompt-oauth]
version = "0.7.0"
optional = true

[dependencies.systemprompt-runtime]
version = "0.7.0"
features = ["geolocation"]
optional = true

[dependencies.systemprompt-scheduler]
version = "0.7.0"
optional = true

[dependencies.systemprompt-security]
version = "0.7.0"
optional = true

[dependencies.systemprompt-sync]
version = "0.7.0"
optional = true

[dependencies.systemprompt-template-provider]
version = "0.7.0"
optional = true

[dependencies.systemprompt-traits]
version = "0.7.0"
optional = true

[dependencies.systemprompt-users]
version = "0.7.0"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.tokio]
version = "1.49"
features = [
    "rt-multi-thread",
    "net",
    "io-util",
    "time",
    "sync",
    "macros",
]

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

[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 = "allow"
dbg_macro = "deny"
derive_partial_eq_without_eq = "allow"
empty_structs_with_brackets = "warn"
exit = "deny"
expect_used = "deny"
format_push_string = "allow"
if_not_else = "warn"
implicit_clone = "warn"
inefficient_to_string = "warn"
items_after_statements = "warn"
large_futures = "warn"
let_underscore_must_use = "deny"
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 = "deny"
print_stdout = "deny"
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 = "warn"
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 = "deny"
unused_import_braces = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"