4 ms·
Given that rust only works on e.g. cygwin recently (and still does not build many crates: i try to compile jujutsu and failed), this is a big blow to portabilit
by riedel 1y ago
Given that rust only works on e.g. cygwin recently (and still does not build many crates: i try to compile jujutsu and failed), this is a big blow to portability IMHO. While I try to like rust, I think making it mandatory for builds of essential tools like git is really too early.
- GoblinSlayer 1y agoGit works only on cygwin too?
- Kwpolska 1y agoNo, it doesn't. OP meant that the Rust support on Cygwin is bad; it is better with the native Windows API.
- IshKebab 1y agoCygwin is an ugly hack anyway.
- sunshowers 1y agoI don't quite understand. Why use a janky, lossy Linux emulation layer when you can just target Windows natively?
- GoblinSlayer 1y agoFor some reason git for windows is a cygwin build.
- 1718627440 1y agoBecause git expects a POSIX API and POSIX tools and also POSIX behaviour like symlinks and line-endings to do its job.
- lazka 1y agoIt's a native build. Only various tools it is shipped with are cygwin builds, like bash etc.
- GoblinSlayer 1y agoOh, indeed, but git often calls them.
- 1718627440 1y agoGit for Windows uses MSYS2, which is a mix of a Cygwin fork and MinGW, the implementation of the Win32 APIs for Linux.
- lame_lexem 1y agojj has msvc builds and is still tire 1 target maybe something particular about your configuration?
- riedel 1y agoI want it to be cygwin native, i.e. passing calls through the cygwin posix layer and not use the windows binary. Sure I can use the windows binary, but that is a different thing.
- sunshowers 1y ago?? I build Jujutsu and many other Rust programs from source on Windows. Rust has a much better Windows story than C and bash do, due to its heritage as a language built by Mozilla for Firefox.
- riedel 1y agoAs said before I wasn't complaining about windows, but rather of not so common posix layers like cygwin [0]. Most C posix compliant stuff compiles in my experience. [0] https://github.com/rust-lang/rust/issues/137819 https://github.com/rust-lang/rust/issues/137819
- sunshowers 1y agoRight, but Rust makes it so you don't have to use Cygwin. It's one of the great portability advantages of Rust that you can write real Windows programs with it.
- riedel 1y agoI am not really sure if I can follow here. How could a rust compiled program like git honor my cygwin emulated mount points in paths, which I need, when working with other posix compliant software.
- sunshowers 1y agoI thought that if you invoke a native Windows binary with Cygwin, it translates Unix-looking paths into Windows ones. But it's been a long time since I used Cygwin so I could be wrong.
- egorfine 1y ago> Rust has a much better Windows story than C This is an extremely strong statement. Which is so obviously factually incorrect that I tend to think you might have meant something else.