There was an incorrect glob `bench/*` that was doing nothing, since the benchmarks are in `benches/`; when I corrected it to `benches/*`, `cargo publish --dry-run` failed: ``` error: failed to verify package tarball Caused by: failed to parse manifest at `/home/ben/src/forks/oxipng/target/package/oxipng-9.0.0/Cargo.toml` Caused by: can't find `zopfli` bench at `benches/zopfli.rs` or `benches/zopfli/main.rs`. Please specify bench.path if you want to use a non-default path. ``` …so I stopped trying to exclude the benchmarks from published crates at all. ----- Then, I added `Dockerfile`, `index.html`, and `scripts/` to the list of paths to exclude from published crates. Finally, I added some unnecessary “dotfiles” to the list of paths to exclude from published crates. ----- Some of this was suggested in a [package review for Fedora Linux](https://bugzilla.redhat.com/show_bug.cgi?id=2259760). After the PR: ``` $ cargo package --list .cargo/config.toml .cargo_vcs_info.json CHANGELOG.md Cargo.lock Cargo.toml Cargo.toml.orig LICENSE MANUAL.txt README.md benches/deflate.rs […] benches/zopfli.rs src/atomicmin.rs […] src/sanity_checks.rs $ cargo publish --dry-run […] Compiling oxipng v9.0.0 (/home/ben/src/forks/oxipng/target/package/oxipng-9.0.0) Finished dev [optimized + debuginfo] target(s) in 15.76s Packaged 37 files, 255.4KiB (61.6KiB compressed) Uploading oxipng v9.0.0 (/home/ben/src/forks/oxipng) warning: aborting upload due to dry run ```
102 lines
2 KiB
TOML
102 lines
2 KiB
TOML
[package]
|
|
authors = ["Joshua Holmer <jholmer.in@gmail.com>"]
|
|
categories = ["command-line-utilities", "compression"]
|
|
description = "A lossless PNG compression optimizer"
|
|
documentation = "https://docs.rs/oxipng"
|
|
edition = "2021"
|
|
exclude = [
|
|
".editorconfig",
|
|
".gitattributes",
|
|
".github/*",
|
|
".gitignore",
|
|
".pre-commit-hooks.yaml",
|
|
"Dockerfile",
|
|
"scripts/*",
|
|
"tests/*",
|
|
]
|
|
homepage = "https://github.com/shssoichiro/oxipng"
|
|
license = "MIT"
|
|
name = "oxipng"
|
|
repository = "https://github.com/shssoichiro/oxipng"
|
|
version = "9.0.0"
|
|
rust-version = "1.66.0"
|
|
|
|
[badges]
|
|
travis-ci = { repository = "shssoichiro/oxipng", branch = "master" }
|
|
maintenance = { status = "actively-developed" }
|
|
|
|
[[bin]]
|
|
doc = false
|
|
name = "oxipng"
|
|
path = "src/main.rs"
|
|
required-features = ["binary"]
|
|
|
|
[[bench]]
|
|
name = "zopfli"
|
|
required-features = ["zopfli"]
|
|
|
|
[dependencies]
|
|
zopfli = { version = "0.8.0", optional = true, default-features = false, features = ["std", "zlib"] }
|
|
rgb = "0.8.36"
|
|
indexmap = "2.0.0"
|
|
libdeflater = "1.19.0"
|
|
log = "0.4.19"
|
|
bitvec = "1.0.1"
|
|
rustc-hash = "1.1.0"
|
|
|
|
[dependencies.env_logger]
|
|
optional = true
|
|
default-features = false
|
|
features = ["auto-color"]
|
|
version = "0.10.0"
|
|
|
|
[dependencies.crossbeam-channel]
|
|
optional = true
|
|
version = "0.5.8"
|
|
|
|
[dependencies.filetime]
|
|
optional = true
|
|
version = "0.2.21"
|
|
|
|
[dependencies.rayon]
|
|
optional = true
|
|
version = "1.7.0"
|
|
|
|
[dependencies.clap]
|
|
optional = true
|
|
version = "4.3.8"
|
|
features = ["wrap_help"]
|
|
|
|
[target.'cfg(windows)'.dependencies.glob]
|
|
optional = true
|
|
version = "0.3.1"
|
|
|
|
[dependencies.image]
|
|
optional = true
|
|
default-features = false
|
|
features = ["png"]
|
|
version = "0.24.6"
|
|
|
|
[build-dependencies]
|
|
rustc_version = "0.4.0"
|
|
|
|
[features]
|
|
binary = ["clap", "glob", "env_logger"]
|
|
default = ["binary", "filetime", "parallel", "zopfli"]
|
|
parallel = ["rayon", "indexmap/rayon", "crossbeam-channel"]
|
|
freestanding = ["libdeflater/freestanding"]
|
|
sanity-checks = ["image"]
|
|
|
|
[lib]
|
|
name = "oxipng"
|
|
path = "src/lib.rs"
|
|
|
|
[profile.dev]
|
|
opt-level = 2
|
|
|
|
[profile.release]
|
|
lto = "thin"
|
|
strip = "symbols"
|
|
|
|
[profile.dev.package.bitvec]
|
|
opt-level = 3
|