Open iiian opened 6 months ago
Please resolve the windows CI build failure (\r\n
issue).
Still broken.
Hrm... I'm just not sure why this isn't working. I loaded rust-ini
up on my Windows 11 machine, with supporting VisualC++ tooling -- all the unit tests are still passing. It seems to boil down to my inability to get the rust runtime to treat
r"
hello
world
"
as having CRLFs, even though there are unit tests above mine that seemingly do the exact same thing.
Any ideas?
You may consider add an option to the write_to_fmt
call, which will force line-break to use \n
.
Allows for
Context
I'm working with a very laggy remote Windows file system. Each individual R/W request has about 2 seconds delay before actually getting serviced. This means the streaming
write!
-based implementation ofwrite_to_opt()
is resulting in something like an O(n) slow-down where n is the # lines in the file. Introducing afmt::Writer
version,write_to_opt_fmt
, lets me buffer the entire ini as aString
and then fire it in one shot, resulting in a 75x performance improvement in my test scenario with an INI 462 lines long.