Add ~x.y.z and ^x.y.z parsing

Well, this isn't just a library for cargo, so it should preferably be in the docs here too. :)