use rustpkg to build gen