# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.75.0" name = "mc-repack-core" version = "0.27.1" authors = ["Szeweq"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A library for repacking Minecraft mods and resource packs to optimize size and loading speed." homepage = "https://szeweq.xyz/mc-repack" readme = "README.md" keywords = [ "minecraft", "jar", "processing", "optimizer", "gamedev", ] categories = [ "compression", "game-development", ] license = "MIT" repository = "https://github.com/szeweq/mc-repack" [lib] name = "mc_repack_core" path = "src/lib.rs" [dependencies.anyhow] version = "1.0" [dependencies.bytes] version = "1.6" [dependencies.flate2] version = "^1.0.26" [dependencies.json_comments] version = "0.2" [dependencies.optivorbis] version = "0.2" optional = true [dependencies.oxipng] version = "^9.1.0" features = ["parallel"] optional = true default-features = false [dependencies.serde] version = "1.0" optional = true [dependencies.serde_json] version = "^1.0.93" features = ["preserve_order"] [dependencies.state] version = "0.6" [dependencies.toml] version = "^0.8.0" features = ["preserve_order"] optional = true [dependencies.walkdir] version = "2.5" [dependencies.zip] version = "^2.1.0" features = ["deflate"] default-features = false [dependencies.zopfli] version = "^0.8.0" optional = true [features] _any-zopfli = [] all-zopfli = [ "nbt-zopfli", "png-zopfli", "zip-zopfli", ] default = [ "png", "toml", "nbt", "ogg", "jar", "serde-cfg", ] jar = [] nbt = [] nbt-zopfli = [ "nbt", "dep:zopfli", "_any-zopfli", ] ogg = ["dep:optivorbis"] png = ["dep:oxipng"] png-zopfli = [ "png", "oxipng/zopfli", "_any-zopfli", ] serde-cfg = [ "dep:serde", "serde/derive", ] toml = ["dep:toml"] zip-zopfli = [ "zip/deflate-zopfli", "dep:zopfli", "_any-zopfli", ] [lints.clippy] nursery = "warn" [lints.rust] missing_docs = "warn"