tree: 035184d74a48c79571fe378073f508f30af59b15 [path history] [tgz]
  1. out/
  2. patches/
  3. src/
  4. .android-checksum.json
  5. .cargo-checksum.json
  6. Android.bp
  7. build.rs
  8. Cargo.lock
  9. Cargo.toml
  10. cargo_embargo.json
  11. LICENSE-APACHE
  12. METADATA
  13. MODULE_LICENSE_APACHE2
  14. README.md
crates/dc_bundle/README.md

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.