pamin-kit 0.1.2

The framework every Pamin module is built on: the Module trait, operation registration with entitlements, MCP serving over stdio and Streamable HTTP, and a conformance suite.
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"
rust-version = "1.98.1"
name = "pamin-kit"
version = "0.1.2"
build = false
exclude = [
    "/.agents",
    "/.claude",
    "/.github",
    "/.pamin-labs-dev.toml",
    "/AGENTS.md",
    "/CLAUDE.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The framework every Pamin module is built on: the Module trait, operation registration with entitlements, MCP serving over stdio and Streamable HTTP, and a conformance suite."
readme = "README.md"
keywords = [
    "mcp",
    "modules",
    "framework",
]
categories = [
    "network-programming",
    "development-tools",
]
license = "Apache-2.0"
repository = "https://github.com/pamin-labs/pamin-kit"

[features]
conformance = [
    "dep:insta",
    "dep:jsonschema",
]
http = [
    "dep:axum",
    "dep:http",
    "tokio/net",
    "rmcp/transport-streamable-http-server",
]
otel = [
    "dep:opentelemetry",
    "dep:tracing-opentelemetry",
]

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

[[example]]
name = "echo"
path = "examples/echo/main.rs"

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

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

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

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

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

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

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

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

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

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

[dependencies.axum]
version = "0.8.9"
features = [
    "tokio",
    "http1",
    "json",
]
optional = true
default-features = false

[dependencies.base64]
version = "0.23.1"

[dependencies.chrono]
version = "0.4.45"
features = ["std"]
default-features = false

[dependencies.http]
version = "1.5.0"
optional = true

[dependencies.insta]
version = "1.49.0"
features = ["json"]
optional = true

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

[dependencies.matchit]
version = "0.8.4"

[dependencies.opentelemetry]
version = "0.33.1"
features = ["trace"]
optional = true
default-features = false

[dependencies.percent-encoding]
version = "2.3.2"

[dependencies.rmcp]
version = "=3.8.0"
features = [
    "server",
    "transport-io",
]
default-features = false

[dependencies.schemars]
version = "1.2.3"

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

[dependencies.serde_json]
version = "1.0.154"

[dependencies.tokio]
version = "1.53.1"
features = [
    "macros",
    "rt",
    "sync",
]

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

[dependencies.tracing]
version = "0.1.44"
features = ["std"]
default-features = false

[dependencies.tracing-opentelemetry]
version = "0.34.0"
optional = true
default-features = false

[dependencies.uuid]
version = "1.26.0"
features = ["v4"]

[dev-dependencies.opentelemetry]
version = "0.33.1"
features = ["trace"]
default-features = false

[dev-dependencies.opentelemetry_sdk]
version = "0.33.1"
features = [
    "trace",
    "testing",
]
default-features = false

[dev-dependencies.rmcp]
version = "=3.8.0"
features = [
    "client",
    "transport-child-process",
]
default-features = false

[dev-dependencies.serde]
version = "1.0.229"
features = ["derive"]

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

[dev-dependencies.tracing]
version = "0.1.44"

[dev-dependencies.tracing-opentelemetry]
version = "0.34.0"
default-features = false

[dev-dependencies.tracing-subscriber]
version = "0.3.23"
features = [
    "registry",
    "std",
]
default-features = false

[profile.dev]
debug = "line-tables-only"