How scalalandio/chimney works
Main Components Identification
The system should be divided into these main components:
a) Core Library Components:
• Transformer Engine (chimney-engine/)
• Core Transformers (chimney/)
• Macro Commons (chimney-macro-commons/)
b) Integration Components:
• Cats Integration (chimney-cats/)
• Java Collections Integration (chimney-java-collections/)
• Protobuf Integration (chimney-protobufs/)
┌─────────────────────── Public API Layer ───────────────────────┐
• Transformers | Patchers | Codecs | Isos | DSL │
• Integration Layer ──────────────────────────┤
• Cats | Java Collections | Protobufs │
• Core Engine Layer ──────────────────────────┤
• Derivation Engine | Macro Commons | Runtime Utils │
• ┘
Important Details
a) Cross-Platform Support:
• JVM/Scala.js/Scala Native compatibility
• Scala version support (2.12, 2.13, 3.3+)
b) Transformation Types:
• Total Transformers
• Partial Transformers
• Patchers
• Codecs
• Isos
c) Key Features:
• Compile-time derivation
• Runtime transformation
• Integration capabilities
Implementation Notes
• Version information and platform support as metadata
• Notes about macro expansion and compilation phases