Repository navigation
package:ffigen v22.0.0
·
69 commits
to main
since this release
- Breaking change: Major overhaul of Dart config API:
- Replace various callback based config elements with a
Visitorpattern.renameandrenameMemberreplaced with.namesetters on AST nodes.includeandincludeMemberreplaced with.isIncludedon AST nodes.Functions/Globals.includeSymbolAddressreplaced with
.exposeSymbolAddresson AST nodes.Functions.includeTypedefreplaced with.generateTypedefson
FuncAST node.Structs.packingOverridereplaced withStruct.pack.Enums.styleand.silenceWarningmoved toEnumClassAST node.Functions.isLeafand.recordUsemoved toFuncAST node.Structs/Unions.dependenciesmoved toStruct/UnionAST nodes.Interfaces/Protocols.modulemoved toObjCInterface/ObjCProtocolAST
nodes.Interfaces/Protocols.includeTransitiveremoved (always false).Categories.includeTransitivereplaced with
ObjCInterface.includeCategories.Typedefs.includeUnusedconsolidated intoTypealias.isIncludedusing
TypealiasIncludeenum (never,ifUsed,always).
- Consolidate
importedfields andimportedTypesByUsrinto
FfiGenerator.importType, switching it to a callback pattern - Add
importFromSymbolFileandimportFromSymbolFilesutils, which load
symbol YAML files, and return functions that can be passed directly to
FfiGenerator.importType. - Replace
Output.dartFilewithDartOutput, to prepare for upcoming
multi-file output format. - Deleted many now empty sub-config classes
- Rename
HeaderstoInput - Remove
libraryImports, which was dead code - Remove
useSupportedTypedefs, treating it as always true - Make
preamblenon-null - Make
generatefunction async
- Replace various callback based config elements with a
- Fix a bug in handling of
small structs in ObjC on mac/iOS x64. - Fix a bug in the way that
ObjC category methods returninginstancetypeare filtered. - Minor Objective-C code generator and function type signature fixes.
- Bump
package:code_assetsdependency to^2.0.0.