register snapshots
auto merge of #10032 : thestinger/rust/snapshot, r=huonw