Register snapshots
auto merge of #5623 : brson/rust/snapshot, r=brson