ygd58 42985e5c72
feat: make ValidityWindow generic with Display and datetime conversion
- ValidityWindow<T = BlockId> now generic over bound type
- Generic Display<T> implementation for all bound types
- to_datetime_window() converts block-id window to UTC datetime window
- Backward compatible: default type param is BlockId

Enables ValidityWindow<chrono::DateTime<Utc>> for human-readable display.

Refs #421
2026-04-01 13:34:16 +02:00

27 lines
655 B
TOML

[package]
name = "indexer_service_protocol"
version = "0.1.0"
edition = "2024"
license = { workspace = true }
[lints]
workspace = true
[dependencies]
chrono = { workspace = true }
nssa_core = { workspace = true, optional = true, features = ["host"] }
nssa = { workspace = true, optional = true }
common = { workspace = true, optional = true }
serde = { workspace = true, features = ["derive"] }
serde_with.workspace = true
schemars.workspace = true
base64.workspace = true
base58.workspace = true
hex.workspace = true
anyhow.workspace = true
[features]
# Enable conversion to/from NSSA core types
convert = ["dep:nssa_core", "dep:nssa", "dep:common"]