Cargo Features
[dependencies]
tiny-skia = { version = "0.11.4", default-features = false, features = ["std", "no-std-float", "simd", "png-format"] }
- default = png-format, simd, std
-
These default features are set whenever
tiny-skia
is added without
somewhere in the dependency tree.default-features = false - std default png-format
-
Enables the use of the standard library. Deactivate this and activate the no-std-float feature to compile for targets that don't have std.
Enables std of tiny-skia-path
- no-std-float
-
Enables no-std-float of tiny-skia-path
- simd default
-
Enables SIMD instructions on x86 (from SSE up to AVX2), WebAssembly (SIMD128)
and AArch64 (Neon).
Has no effect on other targets. Present mainly for testing. - png-format default = png, std
-
Allows loading and saving
Pixmap
as PNG.
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.