[package]
name = "dirigent_matrix"
version = "0.1.0"
edition = "2021"

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

[features]
default = ["bundled-sqlite"]
bundled-sqlite = ["matrix-sdk/bundled-sqlite"]

[dependencies]
# Matrix SDK
matrix-sdk = { version = "0.9", default-features = false, features = ["rustls-tls", "sqlite"] }

# Internal dependencies
dirigent_protocol = { path = "../dirigent_protocol" }
dirigent_auth = { path = "../dirigent_auth" }

# Async runtime
tokio = { version = "1.42", features = ["sync", "time", "macros", "rt"] }

# Markdown rendering
pulldown-cmark = "0.12"

# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

# Logging
tracing = "0.1"

# Error handling
thiserror = "2.0"

# Async traits
async-trait = "0.1"

# UUID
uuid = { version = "1.11", features = ["v7"] }

# Timestamps (for StreamSummary::active_since)
chrono = { version = "0.4", features = ["serde"] }

[dev-dependencies]
tokio = { version = "1.42", features = ["full"] }
