[package] name = "roead" description = "Rust port of oead C++ library for common Nintendo formats" version = "1.0.0" authors = ["Caleb Smith "] license = "GPL-3.0-or-later" readme = "README.md" repository = "https://github.com/NiceneNerd/roead" keywords = ["Nintendo", "aamp", "byml", "sarc", "yaz0"] categories = ["game-development", "parsing"] edition = "2021" rust-version = "1.80" exclude = [ "/test", "/lib/zlib-ng/infcover.dir", "/lib/zlib-ng/makecrct.dir", "/lib/zlib-ng/makefixed.dir", "/lib/zlib-ng/maketrees.dir", "/lib/zlib-ng/switchlevels.dir", "/lib/zlib-ng/x64", ] [dependencies] almost = { version = "0.2.0", optional = true } base64 = { version = "0.22.0", optional = true } binrw = { version = "0.14", optional = true } cxx = { version = "1", optional = true } indexmap = { version = "2.2", optional = true } join_str = "0.1.0" lexical = { version = "^6.0", optional = true, features = ["power-of-two"] } lexical-core = { version = "0.8.5", optional = true, features = [ "write-floats", ] } parking_lot = { version = "0.12.1", optional = true } num-integer = { version = "0.1.45", optional = true } num-traits = { version = "0.2.15", optional = true } rustc-hash = "2.0" ryml = { version = "0.3.2", optional = true, features = ["std"] } scc = { version = "2.1", optional = true } serde = { version = "1", features = ["derive"], optional = true } serde_json = { version = "1", optional = true } smartstring = "1" thiserror = "1" [build-dependencies] rustc_version = "0.4.0" cxx-build = { version = "1.0.71", optional = true } [dev-dependencies] jwalk = "0.8.1" rayon = "1.10" [features] aamp = ["almost", "binrw", "indexmap", "num-traits"] aamp-names = ["scc"] byml = ["binrw", "almost", "num-traits"] sarc = ["binrw", "num-integer", "serde", "serde_json", "indexmap"] yaz0 = ["cxx", "cxx-build"] yaml = ["ryml", "lexical", "lexical-core", "base64", "parking_lot", "aamp-names"] with-serde = ["serde", "smartstring/serde", "indexmap/serde"] default = ["aamp", "byml", "sarc", "yaz0"] [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(CHANNEL_NIGHTLY)'] }