[package]
name = "stof"
version = "0.3.1"
edition = "2021"
authors = ["CJ Cummings <cj@formata.io>"]
description = "Stof is a unified data interface and interchange format for creating, sharing, and manipulating data. Stof removes the fragile and cumbersome parts of combining and using data in applications."
license = "Apache-2.0"
repository = "https://github.com/dev-formata-io/stof"
homepage = "https://docs.stof.dev"
[lib]
crate-type = ["cdylib", "lib"]
[features]
default = ["json", "toml", "yaml", "xml", "urlencoded"]
json = ["dep:serde_json"]
toml = ["dep:toml"]
yaml = ["json", "dep:serde_yaml"]
xml = ["json", "dep:quick-xml", "dep:serde-xml-rs"]
urlencoded = ["json", "dep:urlencoding"]
wasm = ["json", "dep:js-sys", "dep:serde-wasm-bindgen", "dep:wasm-bindgen"]
[dependencies]
anyhow = "1.0.94"
bincode = "1.3.3"
bytes = "1.9.0"
colored = "2.1.0"
getrandom = { version = "0.2.15", features = ["js"] }
js-sys = { version = "0.3.76", optional = true }
lazy_static = "1.5.0"
nanoid = "0.4.0"
pest = "2.7.15"
pest_derive = "2.7.15"
quick-xml = { version = "0.37.1", optional = true }
serde = { version = "1.0.215", features = ["derive", "rc"] }
serde-wasm-bindgen = { version = "0.6.5", optional = true }
serde-xml-rs = { version = "0.6.0", optional = true }
serde_json = { version = "1.0.133", optional = true }
serde_yaml = { version = "0.9.34", optional = true }
snap = "1.1.1"
toml = { version = "0.8.19", optional = true }
typetag = "0.2.19"
urlencoding = { version = "2.1.3", optional = true }
wasm-bindgen = { version = "0.2.99", optional = true }