[package]
name = "ivorn-core"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
description = "Shared types for Ivorn SSE event payloads"
keywords = ["ivorn"]

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

# Prevent panic-inducing methods in production code
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
unimplemented = "deny"
unreachable = "deny"
todo = "warn"

# Additional safety lints
indexing_slicing = "warn"
arithmetic_side_effects = "warn"
float_arithmetic = "warn"

# Test quality lints - detect assertion anti-patterns
# See design-docs/reference/test_design_patterns.md for details
assertions_on_result_states = "warn" # Detects assert!(r.is_ok()) and assert!(r.is_err())

[dependencies]
serde = { workspace = true }
serde_json = { workspace = true }
