const run = @compileError("deprecated; use std.Build.addRunArtifact");

This function would run in the context of the package that created the executable, which is undesirable when running an executable provided by a dependency package.