Skip to content

Commit a35ec47

Browse files
authored
Temporarily disable PCX format (#2379)
* Remove references to PCX from Cargo.toml * Suppress warnings about nonexistent feature * Remove references to PCX from documentation * Drop PCX from CI feature matrix
1 parent fe094b3 commit a35ec47

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
features: ['', default, rayon, avif, bmp, dds, exr, ff, gif, hdr, ico, jpeg, pcx, png, pnm, qoi, tga, tiff, webp]
17+
features: ['', default, rayon, avif, bmp, dds, exr, ff, gif, hdr, ico, jpeg, png, pnm, qoi, tga, tiff, webp]
1818
steps:
1919
- uses: actions/checkout@v4
2020
- uses: dtolnay/rust-toolchain@stable

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ exr = { version = "1.5.0", optional = true }
4646
gif = { version = "0.13", optional = true }
4747
image-webp = { version = "0.2.0", optional = true }
4848
mp4parse = { version = "0.17.0", optional = true }
49-
pcx = { version = "0.2.3", optional = true }
5049
png = { version = "0.17.6", optional = true }
5150
qoi = { version = "0.4", optional = true }
5251
ravif = { version = "0.11.11", default-features = false, optional = true }
@@ -78,7 +77,6 @@ gif = ["dep:gif", "dep:color_quant"]
7877
hdr = []
7978
ico = ["bmp", "png"]
8079
jpeg = ["dep:zune-core", "dep:zune-jpeg"]
81-
pcx = ["dep:pcx"] # Note that the PCX dependency uses the WTFPL license
8280
png = ["dep:png"]
8381
pnm = []
8482
qoi = ["dep:qoi"]

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ image format encoders and decoders.
5353
| ICO | Yes | Yes |
5454
| JPEG | Yes | Yes |
5555
| EXR | Yes | Yes |
56-
| PCX | Yes | --- |
5756
| PNG | Yes | Yes |
5857
| PNM | Yes | Yes |
5958
| QOI | Yes | Yes |

src/lib.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@
118118
#![deny(missing_copy_implementations)]
119119
#![cfg_attr(all(test, feature = "benchmarks"), feature(test))]
120120
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
121+
// We've temporarily disabled PCX support for 0.25.5 release
122+
// by removing the corresponding feature.
123+
// We want to ship bug fixes without committing to PCX support.
124+
//
125+
// Cargo shows warnings about code depending on a nonexistent feature
126+
// even to people using the crate as a dependency,
127+
// so we have to suppress those warnings.
128+
#![allow(unexpected_cfgs)]
121129

122130
#[cfg(all(test, feature = "benchmarks"))]
123131
extern crate test;
@@ -214,7 +222,6 @@ pub mod flat;
214222
/// | ICO | Yes | Yes |
215223
/// | JPEG | Yes | Yes |
216224
/// | EXR | Yes | Yes |
217-
/// | PCX | Yes | --- |
218225
/// | PNG | Yes | Yes |
219226
/// | PNM | Yes | Yes |
220227
/// | QOI | Yes | Yes |

0 commit comments

Comments
 (0)