Crates.io | libktx-rs-sys |
lib.rs | libktx-rs-sys |
version | 0.3.3+v4.0.0 |
source | src |
created_at | 2021-06-13 23:06:51.681995 |
updated_at | 2021-09-11 18:11:11.884769 |
description | A low-level wrapper over https://github.com/KhronosGroup/KTX-Software. |
homepage | |
repository | https://github.com/UberLambda/libktx-rs |
max_upload_size | |
id | 409729 |
size | 34,404,349 |
A library for reading, writing and transcoding Khronos Textures (KTX1 and KTX2) in Rust.
This repository contains both high-level Rust bindings and low-level FFI to KhronosGroup/KTX-Software.
See https://docs.rs/libktx-rs for the latest documentation of the high-level API, and https://docs.rs/libktx-rs-sys for the low-level FFI.
Clone this root repository and all git submodule (git clone --recursive https://github.com/UberLambda/libktx-rs
), then run cargo build
.
To enable KTX image writing support (which is already enabled in the default feature set), enable the libktx-rs/write
feature.
To enable image loading tests, clone the libktx-rs-sys/KTX-Software submodule with git LFS support, then enable the libktx-rs-sys/test-images
feature.
To have rust-bindgen generate bindings in the build script (instead of using the pre-generated ones),
enable the libktx-rs-sys/run-bindgen
feature.
To skip building or linking KTX-Software altogether, enable the libktx-rs-sys/docs-only
feature.
This Rust wrapper, and the KTX-Software library itself, are both licensed under the Apache-2.0 license.
Note that the library links to libstdc++, which is licensed under LGPL with the "Runtime Library Exception".
If the ETC decoder is enabled, the build will contain a proprietary source code file by Ericsson - KTX-Software/lib/etcdec.cxx!
Building this file is optional, and it is disabled by default.
Build libktx-rs-sys with the nonfree-etc-unpack
to enable this feature if you agree with the terms of the license.
See the original LICENSE for more information.