Make it semi-compatible with rustpkg