Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Construct
PortableRegistry
dynamically at runtime (#164)
* WIP: allow constructing MetaTypes at runtime * Remove fmt config options * Add some docs * std feature String * fully qualified String * Fix features build * Generic string parameter for MetaType * Remove license_template_path * Fmt * Fix fmt * Replace MetaFormString trait with cfg based string * Remove unused into * Fix more errors * Now string types are the same across Meta/Portable, no longer necessary to convert * Remove custom MetaType and TypeId * EXPERIMENT: make all type def fields public to allow construting PortableRegistry dynamically * Rename test * Fix up type ids in test * Fix ui test * *TEMPORARILY* pub registry for PortableType * add constructor for portableregistry * constructor for PortableType * implement remaining constructors for generic Form * make Type::new constructor public * make remaining constructor public * add a new custom constructor for path * use new_custom in a test * Remove not required builder fn for MetaType * WIP propogate Form through builders * Fix up path builders * More fixes * Fix up generated From impls * Fix up field builders * Fix up field builder methods for MetaForm * Rename constructor * Hide pub fields and add portable builder helper methods * Fmt * Explicity export PortableType * Clippy * Move PortableRegistry to own file, introduce PortableRegistryBuilder * Remove some stray `Str` type params * Implement PortableRegistryBuilder to manage ids * Default impl for PortableRegistryBuilder * implement getter for registered types in PortableRegistryBuilder Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com> * Rename new path constructor * Rename new_custom methods to new_portable * Revert reordering of MetaForm * Move path construction back to MetaForm for non-breaking changes * Update path tests * TypeParameter::new_portable for non breaking change Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com> Co-authored-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
- Loading branch information