[package]
name = "fhir-model"
version = "0.13.0"
exclude = ["/tests/*-examples-json"]
readme = "README.md"
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
categories.workspace = true
description.workspace = true
documentation.workspace = true
homepage.workspace = true
keywords.workspace = true
license.workspace = true
repository.workspace = true

[lints]
workspace = true

[features]
default = ["r5", "builders"]
builders = ["dep:derive_builder"]
stu3 = []
r4b = []
r5 = []
full = ["stu3", "r4b", "r5", "builders"]

[dependencies]
base64 = "0.22.1"
derive_builder = { version = "0.20.2", optional = true }
serde.workspace = true
time = { version = "0.3.47", features = [
    "formatting",
    "parsing",
    "macros",
    "serde",
    "serde-well-known",
] }

[dev-dependencies]
assert-json-diff = "2.0.2"
serde_json.workspace = true

[package.metadata.docs.rs]
features = ["r5", "builders"]
no-default-features = true
