Make some apis public to be used in rust-ide