synwire-core 0.1.0

Core traits and types for the Synwire AI framework
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.88"
name = "synwire-core"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core traits and types for the Synwire AI framework"
homepage = "https://randomvariable.github.io/synwire/"
readme = "README.md"
keywords = [
    "llm",
    "ai",
    "agents",
    "langchain",
    "async",
]
categories = [
    "asynchronous",
    "science",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/randomvariable/synwire"
resolver = "2"

[features]
agentic-ignore = ["dep:ignore"]
batch-api = []
default = [
    "retry",
    "http",
    "tracing",
    "toon",
    "agentic-ignore",
]
event-bus = ["dep:tokio"]
http = ["dep:reqwest"]
retry = [
    "dep:backoff",
    "dep:tokio",
]
toon = ["dep:toon"]
tracing = [
    "dep:tracing",
    "dep:tracing-opentelemetry",
    "dep:opentelemetry",
    "dep:opentelemetry_sdk",
]

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

[[example]]
name = "otel_tracing"
path = "examples/otel_tracing.rs"

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

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

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

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

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

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

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

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

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

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

[dependencies.backoff]
version = "0.4"
features = ["tokio"]
optional = true

[dependencies.bitflags]
version = "2"

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

[dependencies.dyn-clone]
version = "1"

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

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

[dependencies.humantime-serde]
version = "1"

[dependencies.ignore]
version = "0.4"
optional = true

[dependencies.opentelemetry]
version = "0.27"
optional = true

[dependencies.opentelemetry_sdk]
version = "0.27"
optional = true

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.regex]
version = "1"

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

[dependencies.secrecy]
version = "0.10"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]
optional = true

[dependencies.toon]
version = "0.1"
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.tracing-opentelemetry]
version = "0.28"
optional = true

[dependencies.typetag]
version = "0.2"

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

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.mockall]
version = "0.13"

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.serde_json]
version = "1"

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

[dev-dependencies.tokio]
version = "1"
features = ["full"]

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

[lints.clippy]
dbg_macro = "deny"
expect_used = "deny"
missing_errors_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"

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

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

[lints.rust]
dead_code = "deny"
missing_docs = "deny"
unsafe_code = "deny"
unused_imports = "deny"
unused_results = "deny"