Use cfg!() rather than a static boolean.