Try ThinVec crate to reduce AST size

This commit is contained in:
Micha Reiser 2023-05-14 22:22:29 +02:00
parent 718354673e
commit c4847adf2f
No known key found for this signature in database
12 changed files with 33288 additions and 47657 deletions

View file

@ -372,7 +372,7 @@ class StructVisitor(EmitVisitor):
):
typ = f"Option<{typ}>"
if field.seq:
typ = f"Vec<{typ}>"
typ = f"thin_vec::ThinVec<{typ}>"
if typ == "Int":
typ = BUILTIN_INT_NAMES.get(field.name, typ)
name = rust_field(field.name)