[package]
name = "gvdb"
version = "0.7.1"
description = "Implementation of the glib gvdb file format"
exclude = ["test/c"]
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
keywords.workspace = true
categories.workspace = true
[package.metadata.docs.rs]
all-features = true
[dependencies]
zerocopy = { version = "0.7", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
zvariant = { version = "4.0", default-features = false, features = [
"gvariant",
] }
flate2 = { version = "1.0", optional = true }
glib = { version = "0.20", optional = true }
quick-xml = { version = "0.36", optional = true, features = ["serialize"] }
memmap2 = { version = "0.9", optional = true }
serde_json = { version = "1.0", optional = true }
walkdir = { version = "2.3", optional = true }
[dev-dependencies]
flate2 = { version = "1.0", features = ["zlib"] }
glib = "0.20"
lazy_static = "1.4"
matches = "0.1"
pretty_assertions = "1.2"
rand = "0.8.5"
serde_json = "1.0"
tempfile = "3.10.1"
[features]
mmap = ["dep:memmap2"]
gresource = ["dep:quick-xml", "dep:serde_json", "dep:flate2", "dep:walkdir"]
glib = ["dep:glib"]
default = []