Add rust wrapper for path functions