Make it work with rustpkg