weavegraph 0.1.2

Graph-driven, concurrent agent workflow framework with versioned state, deterministic barrier merges, and rich diagnostics.
Documentation
[package]
name = "weavegraph"
version = "0.1.2"
edition = "2024"
description = "Graph-driven, concurrent agent workflow framework with versioned state, deterministic barrier merges, and rich diagnostics."
license = "MIT"
repository = "https://github.com/Idleness76/weavegraph"
readme = "../README.md"
keywords = ["graph", "workflow", "concurrency", "agents", "tracing"]
categories = ["concurrency", "data-structures", "algorithms"]
rust-version = "1.89"
homepage = "https://github.com/Idleness76/weavegraph"
documentation = "https://docs.rs/weavegraph"

[dev-dependencies]
async-stream = "0.3"
bytes = "1.7"
criterion = { version = "0.5", default-features = false, features = [
    "async_tokio",
] }
reqwest = { version = "0.12", default-features = false, features = [
    "json",
    "rustls-tls",
    "stream",
] }
proptest = "1"
tempfile = "3"
tokio-rusqlite = { version = "0.6", features = ["bundled"] }
url = "2"
httpmock = "0.7"
axum = { version = "0.7", features = ["macros"] }

[dependencies]
# Error handling & diagnostics
miette = { version = "7.6", features = ["fancy"] }
thiserror = "2"

# Tracing & logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = [
    "env-filter",
    "fmt",
    "ansi",
] }
tracing-error = "0.2"

# Async runtime
tokio = { version = "1", features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "signal",
    "process",
    "io-std",
] }
async-trait = "0.1"
futures-util = "0.3"

# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"

# Data structures & utilities
rustc-hash = "2.1"
flume = "0.11"
parking_lot = "0.12"

# Time & IDs
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1", features = ["v4"] }
rand = "0.9"

# LLM framework (external dependency)
# NOTE: rig-core and rmcp are gated behind the "llm" feature (default-off) for AI/MCP users; reduces compile time for non-AI workflows.
rig-core = { version = "0.24.0", features = ["rmcp"], optional = true }
rmcp = { version = "0.8", features = ["client"], optional = true }
# Database
sqlx = { version = "0.8", features = [
    "runtime-tokio-rustls",
    "sqlite",
    "macros",
    "uuid",
    "chrono",
    "json",
], optional = true }

# Configuration
dotenvy = "0.15"

reqwest = { version = "0.12", default-features = false, features = [
    "json",
    "gzip",
    "brotli",
    "rustls-tls",
], optional = true }
scraper = { version = "0.24", optional = true }
wg-ragsmith = { version = "0.1.2", optional = true }

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

# SQLite is enabled by default for full functionality; use --no-default-features for DB-less builds.
[features]
default = ["sqlite-migrations"]
sqlite-migrations = ["sqlite"]
sqlite = ["sqlx"]
llm = ["rig-core", "rmcp"]
examples = ["reqwest", "scraper", "wg-ragsmith"]

[[example]]
name = "demo3"
required-features = ["llm"]

[[example]]
name = "demo4"
required-features = ["llm"]

[[example]]
name = "demo5_rag"
required-features = ["llm", "examples"]

[[example]]
name = "cap_demo"
required-features = ["llm"]

[[example]]
name = "demo6_agent_mcp"
required-features = ["llm"]

# Clippy configuration to enforce Message API best practices
[lints.clippy]
# Encourage use of convenience constructors over manual struct construction
manual_string_new = "warn"
# Encourage use of builder patterns and convenience methods
new_without_default = "warn"
# General code quality
missing_errors_doc = "allow"      # We handle this manually
module_name_repetitions = "allow" # Common in this domain
too_many_lines = "allow"          # Documentation examples can be long