Describe the bug
std file-locking APIs are not supported on some platforms like Android. Creating databases always returns kind: Unsupported IOError, making fjall 3.0.0 unusable on these platforms.
To Reproduce
Steps to reproduce the behavior:
- Run
Database::builder("foo").open().unwrap() on platforms like Android
- It errors out with
Io(Error { kind: Unsupported, message: "try_lock() not supported" })
Expected behavior
It should still be possible to create and load databases on these platforms despite file locking is currently not supported there.
Additional context
Maybe a valid behavior is to skip locking and log the event when locking is unsupported?
Describe the bug
std file-locking APIs are not supported on some platforms like Android. Creating databases always returns
kind: UnsupportedIOError, making fjall 3.0.0 unusable on these platforms.To Reproduce
Steps to reproduce the behavior:
Database::builder("foo").open().unwrap()on platforms like AndroidIo(Error { kind: Unsupported, message: "try_lock() not supported" })Expected behavior
It should still be possible to create and load databases on these platforms despite file locking is currently not supported there.
Additional context
Maybe a valid behavior is to skip locking and log the event when locking is unsupported?