neuron-context 0.3.0

LLM context management for long-running agents — sliding window, token counting, and compaction strategies
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.90"
name = "neuron-context"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "LLM context management for long-running agents — sliding window, token counting, and compaction strategies"
homepage = "https://github.com/secbear/neuron"
documentation = "https://docs.rs/neuron-context"
readme = "README.md"
keywords = [
    "ai",
    "agent",
    "llm",
    "context",
    "tokens",
]
categories = [
    "science",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/secbear/neuron"

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

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

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

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

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

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

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

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

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

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

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

[dependencies.neuron-types]
version = "0.3.0"

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

[dependencies.serde_json]
version = "1"

[dependencies.tracing]
version = "0.1"

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

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

[dev-dependencies.tokio]
version = "1"
features = [
    "sync",
    "macros",
    "rt-multi-thread",
]