I've take some time to port llvm-dlltool to Rust, implib-rs is a crate implements generating Windows import library from module definition file.
Unfortunately rust-ar doesn't support writing symbol table, so the currently it requires to run ranlib after generation to be useful. Thus it's not ready to be integrated in python3-dll-a right now. Hopefully someday we can find a solution to it.
I wonder how hard it is to port the mingw64 version, it'd be nice to support them both.
Update: implib crate now produces the exact same .lib file like llvm-dlltool and it works for linking with lld with the this python3-dll-a patch:

I've take some time to port
llvm-dlltoolto Rust, implib-rs is a crate implements generating Windows import library from module definition file.Unfortunatelyrust-ardoesn't support writing symbol table, so the currently it requires to runranlibafter generation to be useful. Thus it's not ready to be integrated inpython3-dll-aright now. Hopefully someday we can find a solution to it.I wonder how hard it is to port the mingw64 version, it'd be nice to support them both.
Update: implib crate now produces the exact same
.libfile likellvm-dlltooland it works for linking withlldwith the thispython3-dll-apatch: