Skip to main content

img_gen/
lib.rs

1//! High-level image generation API and public re-exports.
2//!
3//! This crate provides the main facade for building layouts, rendering images, and accessing
4//! the shared specification and renderer types from one entry point.
5#![deny(
6    clippy::unwrap_used,
7    clippy::expect_used,
8    clippy::panic,
9    clippy::unimplemented,
10    clippy::todo,
11    missing_docs
12)]
13
14pub use img_gen_renderer::{Generator, Image, ImgGenRendererError, Result};
15pub use img_gen_spec::{
16    Arc, Background, Border, ColorGradient, ColorKind, ConicalGradient, Corners, Debug, Ellipse,
17    Font, HEIGHT, Icon, IrregularPolygonSides, Layer, LayerOffset, Layout, Line, LineHeight,
18    LinearGradient, Mask, Polygon, PolygonSides, PreserveAspect, Presets, RadialGradient,
19    Rectangle, RegularPolygonSides, Size, SolidColor, Spread, TRANSPARENT, Typography,
20    TypographyAlign, WIDTH, Weight,
21};
22
23#[cfg(feature = "pyo3")]
24mod python_binding;