According to the zig documentation the difference is that addModule() creates a module and adds it to the package's module set, making it available to other packages which depend on this one. createModule() can be used instead to create a private module.
Using addModule enables us to use zig-ecs in build.zig.zon
According to the zig documentation the difference is that
addModule()
creates a module and adds it to the package's module set, making it available to other packages which depend on this one.createModule()
can be used instead to create a private module.Using
addModule
enables us to use zig-ecs in build.zig.zonbuild.zig.zon:
build.zig: