[package]
name = "altium-codec"
version = "0.1.0"
edition = "2021"
description = "Encode + decode Altium .SchLib (symbols) and .PcbLib (footprints) from a neutral model — the JSON→Altium writer for the universal EDA interchange format. Decoders reuse the validated altium-schlib / altium-pcblib readers; encoders are their inverse."
license = "MIT"

[dependencies]
anyhow = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
cfb = "0.10"
flate2 = "1"

# Decoders we invert. Path deps within the altium-writer workspace.
altium-schlib = { path = "../altium-schlib" }
altium-pcblib = { path = "../altium-pcblib" }

[[bin]]
name = "altium-codec"
path = "src/main.rs"