tree: 7000c51dea67d3d42ecf6b11da86408d52c5aeff [path history] [tgz]
  1. out/
  2. patches/
  3. src/
  4. .android-checksum.json
  5. .cargo-checksum.json
  6. .cargo_vcs_info.json
  7. Android.bp
  8. build.rs
  9. Cargo.lock
  10. Cargo.toml
  11. Cargo.toml.orig
  12. cargo_embargo.json
  13. LICENSE-APACHE
  14. METADATA
  15. MODULE_LICENSE_APACHE2
  16. README.md
  17. TEST_MAPPING
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.