make rustpkg compatible