[package]
name = "efr"
version = "0.1.4"
edition = "2024"
description = "efr (EFile Rust)"
license = "MIT"
repository = "https://github.com/williamcparks/efr"
readme = "README.md"
keywords = ["efr"]

[features]
codes = [
    "efr-macros/codelist",
    "dep:cms",
    "dep:const-oid",
    "dep:der",
    "rsa/sha2",
    "dep:sha2",
    "dep:x509-cert",
    "dep:zip",
]
metadata = ["efr-macros/metadata"]

[dependencies]
base64 = "0.22.1"
bitflags = "2.11.0"
chrono = { version = "0.4.43", features = ["serde"] }
efr-macros = { version = "0.1.4", path = "../efr-macros", features = [
    "partial-xml",
    "xml",
] }
quick-xml = { version = "0.39.2", features = ["serialize"] }
rsa = { version = "0.9.10", features = ["sha1"] }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.149"
sha1 = "0.10.6"
thiserror = "2.0.18"
uuid = { version = "1.21.0", features = ["v4"] }

# codes feature
cms = { version = "0.2.3", optional = true, features = ["builder"] }
const-oid = { version = "0.9.6", optional = true, features = ["db"] }
der = { version = "0.7.10", optional = true }
sha2 = { version = "0.10.9", optional = true }
x509-cert = { version = "0.2.5", optional = true }
zip = { version = "8.1.0", optional = true }
