Memory-safe modules and builders