Sorry, I haven’t figured it out yet.
AFAIK, the easiest way to use kak-lsp on Windows is to use WSL instead of Cygwin, since WSL has ABI compatibility with Linux. Then you can just use the binaries hosted on github, or use an existing rust installation (either in WSL, or native Windows cross-compiling for Linux – haven’t tried) to build kak-lsp.
If you’re set on using Cygwin, then you’ll need a way to compile rust programs with Cygwin as the target platform, because Cygwin is not ABI compatible with Linux.
AFAIK, there are two ways to go about this:
- Use rust within Cygwin, and hope the Linux target will end up really targeting Cygwin. Cygwin doesn’t appear to have a rust package in their repo, so you’ll have to try to build it from source. I haven’t got around to attempting that yet, so I can’t say how it’ll work out. I found this post, which may help.
- Edit rust’s source to make a Cygwin cross-compile target. Then build that version of rustc for windows and build kak-lsp. I have no idea how difficult or feasible this would be.
Unless you’re used to hacking rustc, I’d say number 1 sounds easier.