Small-scale structure of fuzzy and axion-like dark matter