You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multi file support + Dependency graph ordering (#103)
* Multi-file support
For generating larger projects it may be desirable to generate into
different files. Now --input can take a directory. If it is given a
directory it will read all .cddl files and generate each in its own .rs
file for export. Serialization/*Encodings are still all in one file.
* Multi-file fix for cddl lib parsing errors
cddl doesn't support parsing incomplete cddl strings so will error
on some inputs. This works around it by merging it into 1 file with
scope markers then using those instead to mark scope.
* Dependency graph ordering of rules
Fixes#93
This is extra important with multi file support now, as it can be
impossible in some cases to order things properly when the circular
dependencies were across multiple files. Now `babbage.cddl` processes
totally fine even when separated across many files.
This commit also includes some fixes for multi file support with
inter-file dependencies (e.g. fixes for visibility/module use/etc).
* removing useless code in intermediate form creation
0 commit comments