feat(imaging): default to pure-Rust codecs
This commit is contained in:
@@ -40,8 +40,8 @@ def check_owned_rust() -> None:
|
||||
|
||||
def check_features() -> None:
|
||||
imaging = load_toml(OWNED_CRATES[0] / "Cargo.toml")
|
||||
if imaging["features"].get("default") != []:
|
||||
raise SystemExit("imaging default features must stay empty")
|
||||
if imaging["features"].get("default") != ["rust-j2k"]:
|
||||
raise SystemExit("imaging defaults must select only pure-Rust JPEG 2000")
|
||||
if imaging["features"].get("jpeg2000") != ["dep:libremetaverse-openjpeg"]:
|
||||
raise SystemExit("JPEG 2000 must stay isolated behind its optional feature")
|
||||
if imaging["features"].get("rust-j2k") != ["dep:j2k"]:
|
||||
@@ -50,8 +50,8 @@ def check_features() -> None:
|
||||
raise SystemExit("the OpenJPEG adapter dependency must stay optional")
|
||||
|
||||
skia = load_toml(OWNED_CRATES[1] / "Cargo.toml")
|
||||
if skia["features"].get("default") != []:
|
||||
raise SystemExit("Skia adapter default features must stay empty")
|
||||
if skia["features"].get("default") != ["rust-skia"]:
|
||||
raise SystemExit("raster adapter defaults must select only pure-Rust codecs")
|
||||
if skia["features"].get("skia") != ["dep:skia-safe"]:
|
||||
raise SystemExit("Skia must stay isolated behind its optional feature")
|
||||
targets = skia.get("target", {}).values()
|
||||
|
||||
Reference in New Issue
Block a user