[package]
edition = "2021"
name = "pforge-runtime"
version = "0.2.0"
authors = ["Pragmatic AI Labs"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zero-boilerplate MCP server framework with EXTREME TDD methodology"
homepage = "https://github.com/paiml/pforge"
documentation = "https://docs.rs/pforge-runtime"
readme = "README.md"
keywords = [
"mcp",
"codegen",
"tdd",
"framework",
"declarative",
]
categories = [
"development-tools",
"web-programming",
"command-line-utilities",
]
license = "MIT"
repository = "https://github.com/paiml/pforge"
[features]
default = [
"sse",
"websocket",
"http-handlers",
]
full = [
"sse",
"websocket",
"http-handlers",
"persistence",
]
http-handlers = ["dep:reqwest"]
persistence = ["dep:aprender-db"]
sse = ["pmcp/sse"]
websocket = ["pmcp/websocket"]
[lib]
name = "pforge_runtime"
path = "src/lib.rs"
[[example]]
name = "calculator"
path = "examples/calculator.rs"
[[example]]
name = "middleware_demo"
path = "examples/middleware_demo.rs"
[[bench]]
name = "dispatch_benchmark"
path = "benches/dispatch_benchmark.rs"
harness = false
[[bench]]
name = "throughput_benchmark"
path = "benches/throughput_benchmark.rs"
harness = false
[dependencies.aprender-db]
version = "0.63"
optional = true
default-features = false
[dependencies.async-trait]
version = "0.1"
[dependencies.dashmap]
version = "6.2"
[dependencies.pforge-config]
version = "0.2"
[dependencies.pmcp]
version = "2.18"
default-features = false
[dependencies.rand]
version = "0.10"
[dependencies.regex]
version = "1.13"
[dependencies.reqwest]
version = "0.13"
features = [
"json",
"query",
]
optional = true
[dependencies.rustc-hash]
version = "2.1"
[dependencies.schemars]
version = "0.8"
features = ["derive"]
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.53"
features = [
"full",
"test-util",
]
[dev-dependencies.criterion]
version = "0.8"
features = ["async_tokio"]
[dev-dependencies.mockito]
version = "1.7"
[dev-dependencies.proptest]
version = "1.11"
[dev-dependencies.tempfile]
version = "3.27"
[lints.clippy]
bool_to_int_with_if = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
default_constructed_unit_structs = "allow"
default_trait_access = "allow"
derive_partial_eq_without_eq = "allow"
disallowed_methods = "allow"
disallowed_types = "allow"
doc_link_with_quotes = "allow"
doc_markdown = "allow"
expect_used = "allow"
explicit_iter_loop = "allow"
float_cmp = "allow"
format_push_string = "allow"
future_not_send = "allow"
inline_always = "allow"
manual_let_else = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
needless_raw_string_hashes = "allow"
only_used_in_recursion = "allow"
option_if_let_else = "allow"
or_fun_call = "allow"
panic = "allow"
ptr_as_ptr = "allow"
ptr_cast_constness = "allow"
redundant_clone = "allow"
redundant_pub_crate = "allow"
return_self_not_must_use = "allow"
significant_drop_in_scrutinee = "allow"
significant_drop_tightening = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unused_self = "allow"
unwrap_used = "allow"
use_self = "allow"
wildcard_enum_match_arm = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "allow"
unreachable_pub = "allow"
unsafe_op_in_unsafe_fn = "warn"