You can switch off the GC, but then things will leak as the core language, druntime, and phobos all use the GC is many cases.
What I do is just avoid the functions that allocate, and rewrite the ones I need. I also use a modified druntime that prints callstacks when a GC allocation occurs, so I know if it happens by accident.