encapsulate rust

//encapsulate rust