Cargo Features
[dependencies]
tiny-skia = { version = "0.12.0", default-features = false, features = ["std", "no-std-float", "simd", "png-format"] }
- default = png-format, simd, std
-
These default features are set whenever
tiny-skiais added withoutsomewhere 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,
Relaxed SIMD) and AArch64 (Neon).
Has no effect on other targets. Present mainly for testing. - png-format default = std
-
Allows loading and saving
Pixmapas PNG.Enables png