9 unstable releases (3 breaking)

0.39.1 Apr 23, 2026
0.39.0 Apr 22, 2026
0.38.4 Apr 8, 2026
0.38.2 Jan 31, 2026
0.34.0 Apr 24, 2025

#33 in Android


Used in 2 crates

Apache-2.0

215KB
4.5K SLoC

dc_layout crate

This crate provides layout functionalities for DesignCompose.

Functionality

The dc_layout crate is responsible for:

  • Calculating the position and size of elements in a design.
  • Managing the layout of views and components.
  • Converting design specifications into a format that can be used for rendering.

Usage

This crate is primarily used internally by DesignCompose for calculating layout.

Dependencies

This crate depends on the following crates:

  • dc_bundle: Used to hold the design document structures of a design.
  • taffy: Used to perform the layout computation.

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.

Dependencies

~3.5–6MB
~110K SLoC