redb icon indicating copy to clipboard operation
redb copied to clipboard

Windows support?

Open repi opened this issue 2 years ago • 2 comments

Would it be possible to add support for Windows for this crate also?

It looks like currently the issue is that it uses raw unix file handles for the memory mapping with std::os::unix::io::AsRawFd, so may need to switch to a platform-independent version like memmap2 crate for the memory mapping operations.

We've been interested in replacing our lmdb usage (and likely sled also) with redb and this is currently the main blocker.

repi avatar Jul 27 '22 07:07 repi

Ya, it'll probably take me a bit, since I'm unfamiliar with Windows APIs and am currently focused on stabilizing the file format.

I want to keep the dependencies of this crate to a minimum so am reluctant to add memmap2, but if you'd like to contribute a PR with Windows support that doesn't add a new dependency, I'd be happy to take it

cberner avatar Jul 28 '22 03:07 cberner

I also want to support Windows

xsxz01 avatar Jul 28 '22 12:07 xsxz01