Skip to main content

Crate skia_rs_safe

Crate skia_rs_safe 

Source
Expand description

High-level safe Rust API for skia-rs.

This crate provides a convenient, idiomatic Rust API that wraps the lower-level crates with ergonomic types and methods.

§Features

  • std (default) - Enable standard library support
  • serde - Enable serialization support
  • codec - Enable image codec support (PNG, JPEG, etc.)
  • codec-all - Enable all image codecs
  • svg - Enable SVG support
  • pdf - Enable PDF generation
  • text - Enable text rendering
  • skottie - Enable Lottie animation support
  • gpu - Enable GPU rendering
  • wgpu-backend - Enable WGPU backend
  • vulkan - Enable Vulkan backend
  • opengl - Enable OpenGL backend
  • metal - Enable Metal backend (macOS/iOS only)
  • full - Enable all features

Re-exports§

pub use skia_rs_canvas as canvas;
pub use skia_rs_core as core;
pub use skia_rs_paint as paint;
pub use skia_rs_path as path;
pub use skia_rs_text as text;text
pub use skia_rs_codec as codec;codec
pub use skia_rs_svg as svg;svg
pub use skia_rs_pdf as pdf;pdf
pub use skia_rs_skottie as skottie;skottie
pub use skia_rs_gpu as gpu;gpu

Modules§

prelude
Convenience prelude for common types.