# 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 = "2021"
rust-version = "1.75"
name = "journal-mcp-core"
version = "0.3.0"
authors = ["Yutaka Nishimura <ytk.nishimura@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Project canonical history primitive: chapter state machine + multi-schema EventLog + append-only projections."
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/ynishi/journal-mcp"

[features]
miniapp-core = [
    "dep:mini-app-core",
    "dep:serde_yaml_bw",
    "dep:tokio",
]

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.mini-app-core]
version = "0.11"
optional = true

[dependencies.rusqlite]
version = "0.32"
features = ["bundled"]

[dependencies.rust-embed]
version = "8"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.serde_yaml_bw]
version = "2.5"
optional = true

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "1"

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

[dependencies.tracing]
version = "0.1"

[dependencies.ulid]
version = "1"

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