Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repository = "https://github.com/forest-rs/imaging"
[workspace.dependencies]
# Internal crate dependencies are centralized here so path dependencies carry
# the version requirements needed for packaging.
imaging = { path = "imaging", version = "0.0.1" }
imaging = { default-features = false, path = "imaging", version = "0.0.1" }
imaging_skia = { path = "imaging_skia", version = "0.0.1" }
imaging_tiny_skia = { path = "imaging_tiny_skia", version = "0.0.1" }
imaging_vello = { path = "imaging_vello", version = "0.0.1" }
Expand Down
2 changes: 1 addition & 1 deletion imaging/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ peniko.workspace = true
workspace = true

[features]
default = []
default = ["std"]
std = ["kurbo/std", "peniko/std"]
libm = ["kurbo/libm", "peniko/libm"]

Expand Down
9 changes: 9 additions & 0 deletions imaging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ assert_eq!(scene, replayed);
Low-level retained payloads like [`record::Draw`], [`record::Clip`], and [`record::Group`] are
also public under [`record`] when you need exact control over the recorded representation.

# Feature Flags

The default feature set enables `std` support in the geometry and color dependencies. For
`no_std` builds, disable default features and enable `libm`:

```toml
imaging = { version = "0.0.1", default-features = false, features = ["libm"] }
```

The API is intentionally small and experimental; expect breaking changes while we iterate.

<!-- cargo-rdme end -->
Expand Down
9 changes: 9 additions & 0 deletions imaging/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,15 @@
//! Low-level retained payloads like [`record::Draw`], [`record::Clip`], and [`record::Group`] are
//! also public under [`record`] when you need exact control over the recorded representation.
//!
//! # Feature Flags
//!
//! The default feature set enables `std` support in the geometry and color dependencies. For
//! `no_std` builds, disable default features and enable `libm`:
//!
//! ```toml
//! imaging = { version = "0.0.1", default-features = false, features = ["libm"] }
//! ```
//!
//! The API is intentionally small and experimental; expect breaking changes while we iterate.

#![no_std]
Expand Down
6 changes: 3 additions & 3 deletions imaging_skia/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Subheadings to categorize changes are `added, changed, deprecated, removed, fixe

# Changelog

The latest published `imaging_skia` release is [0.0.1](#001-2026-xx-xx), which was released on
2026-XX-XX. You can find its changes [documented below](#001-2026-xx-xx).
The latest published `imaging_skia` release is [0.0.1](#001-2026-05-21), which was released on
2026-05-21. You can find its changes [documented below](#001-2026-05-21).

## [Unreleased]

## [0.0.1][] (2026-XX-XX)
## [0.0.1][] (2026-05-21)

This release has an [MSRV][] of 1.92.

Expand Down
8 changes: 7 additions & 1 deletion imaging_skia/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ license.workspace = true
repository.workspace = true
description = "Skia backend for the imaging command stream."
readme = "README.md"
publish = false
keywords = ["graphics", "imaging", "rendering", "skia"]
categories = ["graphics", "rendering"]

[features]
default = []
Expand Down Expand Up @@ -57,3 +58,8 @@ skia-safe = { version = "0.93.1", features = ["vulkan"] }

[lints]
workspace = true

[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-unknown-linux-gnu"
targets = []
2 changes: 1 addition & 1 deletion imaging_wgpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords = ["graphics", "imaging", "rendering", "wgpu"]
categories = ["graphics", "rendering"]

[features]
default = []
default = ["wgpu-28"]
# Normal consumers should enable exactly one version feature. If both are enabled by a
# workspace-wide `--all-features` build, the crate exports `wgpu-28` deterministically.
wgpu-27 = ["dep:wgpu_27"]
Expand Down
4 changes: 3 additions & 1 deletion imaging_wgpu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ Full documentation at https://github.com/orium/cargo-rdme -->

`wgpu` texture rendering traits for `imaging` backends.

Enable exactly one of the crate features `wgpu-27` or `wgpu-28` for normal use.
The default feature set enables `wgpu-28`. Consumers that need `wgpu-27` should disable
default features and enable `wgpu-27`.

Workspace-wide `--all-features` builds enable both, so this crate resolves that case
deterministically by exporting `wgpu-28` as [`wgpu`] and keeping `wgpu-27` linked only to
satisfy older dependents that may still request it transitively.
Expand Down
4 changes: 3 additions & 1 deletion imaging_wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

//! `wgpu` texture rendering traits for `imaging` backends.
//!
//! Enable exactly one of the crate features `wgpu-27` or `wgpu-28` for normal use.
//! The default feature set enables `wgpu-28`. Consumers that need `wgpu-27` should disable
//! default features and enable `wgpu-27`.
//!
//! Workspace-wide `--all-features` builds enable both, so this crate resolves that case
//! deterministically by exporting `wgpu-28` as [`wgpu`] and keeping `wgpu-27` linked only to
//! satisfy older dependents that may still request it transitively.
Expand Down
Loading