feat(imaging): default to pure-Rust codecs
Some checks failed
CI / rust-skia (Rust only) (push) Successful in 2m51s
CI / required (push) Failing after 3m23s

This commit is contained in:
2026-08-13 11:24:38 +00:00
parent e16ad04dbd
commit 25fdffbd3b
25 changed files with 124 additions and 103 deletions

View File

@@ -8,7 +8,7 @@ repository.workspace = true
description = "Texture codec abstractions for the MetaCrate LibreMetaverse rewrite"
[features]
default = []
default = ["rust-j2k"]
jpeg2000 = ["dep:libremetaverse-openjpeg"]
rust-j2k = ["dep:j2k"]

View File

@@ -1,9 +1,9 @@
//! Image and texture abstractions corresponding to `LibreMetaverse.Imaging`.
//!
//! The default surface provides managed images plus native `TGA`/`DDS` handling.
//! Enable `jpeg2000` for the audited system `OpenJPEG` adapter or `rust-j2k`
//! for the independently selectable pure-Rust JPEG 2000 backend. Ordinary
//! users can consume the traits without either codec dependency.
//! The default surface provides managed images, native `TGA`/`DDS` handling,
//! and the pure-Rust `rust-j2k` JPEG 2000 backend. Enable `jpeg2000` for the
//! optional audited system `OpenJPEG` adapter. Consumers that only need the
//! format-neutral image types can disable default features.
extern crate self as libremetaverse_imaging;