Constraints on string vacua with spacetime supersymmetry