dc_bundle

Crates.iodc_bundle
lib.rsdc_bundle
version0.37.2
created_at2025-04-24 20:43:24.214704+00
updated_at2025-07-18 21:07:56.645608+00
descriptionProvides the DesignCompose Bundle and Definition
homepagehttps://google.github.io/automotive-design-compose
repositoryhttps://github.com/google/automotive-design-compose
max_upload_size
id1647951
size191,635
Marcell Kovacs (kovmarci86)

documentation

README

dc_bundle

dc_bundle is a crate that provides the core data structures for DesignCompose.

Purpose

This crate defines the design document structures used by DesignCompose to represent design definitions. It includes design definitions for elements, layouts, modifiers, and views.

Modules

  • definition.rs: Contains the core rust implementation for design document definitions.
  • definition_file.rs: Handles the encoding-decoding, saving and loading of definition files.
  • proto/: Proto definition of design document, elements, layouts, views and modifiers.
  • definition/: Contains the core rust implementation for elements, layouts, modifiers and views.

Functionality

  • Design Document Definitions: Defines the design document structures for DesignCompose.
  • Element Definitions: Contains definitions for various design elements.
  • Layout Definitions: Contains definitions for layout styles and properties.
  • Modifier Definitions: Includes definitions for design modifiers.
  • View Definitions: Contains definitions for views and their properties.
  • Error Handling: Provides custom error types to handle specific errors.

Usage

This crate is primarily used internally by DesignCompose for processing and managing design data.

Dependencies

  • protobuf: Used for protocol buffer handling.
  • thiserror: Used for custom error handling.
  • serde: Used for serialization.
  • serde_bytes: Used for byte serialization.
  • log: Used for logging.

Build Dependencies

  • protobuf-codegen: Used for building protocol buffer definitions.

License

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

Commit count: 1243

cargo fmt