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