[package] name = "bpx" version = "4.0.0-rc.11.0.1" authors = ["Yuri Edward "] edition = "2021" description = "BPX official rust implementation" license = "BSD-3-Clause" repository = "https://github.com/BPXFormat/bpx-rs" readme = "./README.MD" keywords = ["BPX", "encoder", "decoder"] categories = ["encoding", "rendering::data-formats", "parser-implementations"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] bytesutil = "0.7.0" tempfile = "3.9.0" # The reason why we lock lzma-sys to static feature is because the library is unfortunatly unable to understand that # macOS does not come with a proper lzma by defaut and as such should auto build as static to avoid linking against # possibly wrong/incompatible Apple branded version of the library. # To avoid creating frankenstein binarries under Apple platforms we just force static on all platforms, if you think # (rightly) that this isn't right, please complain to https://github.com/alexcrichton/xz2-rs/tree/master/lzma-sys. # # Note for future possible dev: maybe fork or re-write lzma-sys to fix this permanently the right way! lzma-sys = { version = "0.1.20", features = ["static"] } num_cpus = "1.16.0" libz-sys = "1.1.12" serde = { version = "1.0.193", features = ["derive"], optional = true } elsa = { version = "1.9.0", optional = true } once_cell = { version = "1.18.0", optional = true } [features] # Enables debug output of compression routines. debug-log = [] # Enables decoding and encoding of BPXP. package = ["sd", "table"] # Enables decoding and encoding of BPXS. shader = ["sd", "table"] # Enables BPXSD. sd = [] # Enables formatting BPXSD objects. sd-formatting = ["sd"] # Enables string helpers. strings = ["elsa"] # Enable named table helpers. table = ["strings", "once_cell"] buf = [] [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"]