[package]
name = "trs-data-value"
version = "0.2.2"
edition = "2021"
readme = "README.md"
license-file = "LICENSE"
keywords = []
description = "Data Value for common data types"

[features]
default = ["json", "proto"]
# this enables pyo3 support for DataValue
python = ["pyo3"]
json = ["dep:serde_json"]
proto = ["dep:prost-reflect"]
utoipa = ["dep:utoipa"]


[dependencies]
serde_json = { version="1.0", optional = true}
thiserror = "2"
serde = { version = "1.0", features = ["derive"]}
base64 = "0.22"
tracing = "0.1.11"

smartstring = {version = "1", features = ["serde"]}
pyo3 = { version = "0.26", features = ["auto-initialize", "anyhow", "serde"], optional = true }
prost-reflect = { version = "0.14", features = ["derive", "serde"], optional = true}
utoipa = { version = "5", optional = true }

[dev-dependencies]
rstest = "0.25"
once_cell = "1"
