juncture-core 0.2.0

Core types and traits for Juncture state machine 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.85"
name = "juncture-core"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types and traits for Juncture state machine framework"
readme = "README.md"
keywords = [
    "llm",
    "agent",
    "state-machine",
    "langgraph",
    "graph",
]
categories = [
    "development-tools",
    "network-programming",
    "asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/greatwallisme/juncture"
resolver = "2"

[features]
chat = ["reqwest"]
default = []
multi-thread = ["tokio/rt-multi-thread"]
otel = ["opentelemetry"]
postgres = ["sqlx/postgres"]
sqlite = ["sqlx/sqlite"]
wasm = ["uuid/js"]

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

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

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

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

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

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

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

[dependencies.async-trait]
version = "0.1"

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

[dependencies.futures]
version = "0.3"

[dependencies.indexmap]
version = "2"

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

[dependencies.rand]
version = "0.9"

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

[dependencies.schemars]
version = "0.8"

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

[dependencies.serde_json]
version = "1"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "chrono",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio-stream]
version = "0.1"

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

[dependencies.tracing]
version = "0.1"

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

[dependencies.xxhash-rust]
version = "0.8"
features = ["xxh3"]

[dev-dependencies.juncture-derive]
version = "0.2.0"

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

[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]

[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "stream",
]
default-features = false

[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.web-time]
version = "1"

[lints.clippy]
allow_attributes_without_reason = "warn"
as_pointer_underscore = "warn"
assertions_on_result_states = "warn"
clone_on_ref_ptr = "warn"
deref_by_slicing = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
fn_to_numeric_cast_any = "warn"
if_then_some_else_none = "warn"
map_err_ignore = "warn"
multiple_crate_versions = "allow"
redundant_type_annotations = "warn"
renamed_function_params = "warn"
semicolon_outside_block = "warn"
string_to_string = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unneeded_field_pattern = "warn"
unused_result_ok = "warn"

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

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

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

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

[lints.rust]
ambiguous_negative_literals = "warn"
missing_debug_implementations = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
trivial_numeric_casts = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_lifetimes = "warn"