Move semver out of libextra.

Done as a part of #8784.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
auto merge of #12012 : omasanori/rust/semver, r=alexcrichton

Done as a part of #8784.