txcript 0.8.0

Convert coding-agent session transcripts between harness formats.
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.96"
name = "txcript"
version = "0.8.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Convert coding-agent session transcripts between harness formats."
readme = "README.md"
keywords = [
    "transcript",
    "claude",
    "codex",
    "agent",
    "wasm",
]
categories = [
    "command-line-utilities",
    "wasm",
]
license = "Apache-2.0"
repository = "https://github.com/skillsynchq/txcript"

[features]
default = [
    "opencode",
    "hermes",
    "search",
]
hermes = ["dep:rusqlite"]
opencode = ["dep:rusqlite"]
search = [
    "dep:nucleo-matcher",
    "dep:memchr",
]
wasm = [
    "dep:wasm-bindgen",
    "uuid/js",
]

[lib]
name = "txcript"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[example]]
name = "search_bench"
path = "examples/search_bench.rs"
required-features = ["search"]

[[test]]
name = "integration"
path = "tests/integration/main.rs"

[[test]]
name = "regression"
path = "tests/regression/main.rs"

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

[[bench]]
name = "search"
path = "benches/search.rs"
harness = false
required-features = ["search"]

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

[dependencies.memchr]
version = "2.8.2"
optional = true

[dependencies.nucleo-matcher]
version = "0.3.1"
optional = true

[dependencies.rusqlite]
version = "0.40.1"
features = ["bundled"]
optional = true

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

[dependencies.serde_json]
version = "1.0.150"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.uuid]
version = "1.23.4"
features = [
    "v4",
    "v5",
]

[dependencies.wasm-bindgen]
version = "0.2.126"
optional = true

[dev-dependencies.criterion]
version = "0.8.2"

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

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

[lints.clippy]
dbg_macro = "deny"
exit = "deny"
expect_used = "deny"
mem_forget = "deny"
panic = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"

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

[lints.rust]
unsafe_code = "forbid"

[profile.release]
lto = "thin"
codegen-units = 1
overflow-checks = true
strip = "symbols"