porting wapcaplet to rust 8 nightly