Merge pull request #120 from alexcrichton/autodetect

Automatically use rich API on 1.30.0+