Commit Graph

180 Commits

Author SHA1 Message Date
Marcel Müller 1ef789a31c Document other_errors 2020-07-31 11:56:50 +02:00
Marcel Müller 75f2a5bd77 Update version and dependencies 2020-07-31 11:47:37 +02:00
Marcel Müller 6fac426522 Merge pull request #88 from TheNeikos/feature/use_thiserror
Use thiserror
2020-07-30 15:24:45 +02:00
Marcel Müller 2a3722aadf Fix clippy lints 2020-07-30 15:21:16 +02:00
Marcel Müller b752e1e209 Use thiserror 2020-07-30 15:16:10 +02:00
Marcel Müller 5695aab1b3 Merge pull request #86 from niluxv/loading_empty_file
Implement API from #67
2020-07-17 08:36:44 +00:00
niluxv 4d5e03f586 Add filelike db load tests 2020-07-12 10:31:43 +02:00
niluxv 742de8bf24 Add filelike backend tests and fix inverted behaviour of FileBackend::from_path_or_create_and 2020-07-12 09:59:05 +02:00
niluxv 33dde1de47 Change Database::load_from_path_or_default to not call default when file exists 2020-07-07 18:55:01 +02:00
niluxv 71fec2b222 Add filelike backend tests and remove FileBackend::open 2020-07-07 18:19:13 +02:00
niluxv a3bc004dc4 Remove redundant context wrapping in deser module 2020-07-05 18:11:10 +02:00
niluxv 3ff6a3ed57 Remove redundant context wrapping 2020-07-05 16:56:08 +02:00
niluxv aa4dc6864f Implement load on creation API for file backed databases 2020-07-05 16:52:46 +02:00
Marcel Müller 152195cc15 Merge pull request #85 from niluxv/more_CI_checks
Add audit, tsan, miri and code coverage to CI
2020-07-04 12:25:18 +00:00
niluxv 4c37571060 Add audit, tsan, miri and code coverage to CI 2020-07-04 12:55:49 +02:00
Marcel Müller 8d4496f1c6 Merge pull request #82 from niluxv/more_tests_rebase
Add many tests and fix the problems found
2020-07-04 06:15:06 +00:00
niluxv b3143ea5c7 Fix clippy on stable 2020-07-03 21:02:32 +02:00
niluxv 33d10517aa cargo fmt 2020-07-03 20:26:16 +02:00
niluxv 283e5fa7b9 Ignore tests which miri can't run when using miri 2020-07-03 19:55:51 +02:00
niluxv c8a15bc79b Add some clippy lints and remove commented inner_load 2020-07-03 19:01:39 +02:00
niluxv 88f4061841 Use Self when possible, edition idioms and improve docs 2020-07-02 19:31:03 +02:00
niluxv 63fe77ec6d Fix clippy lints and improve docs 2020-07-02 14:43:54 +02:00
niluxv cbfaa4a1fb Add some integration tests 2020-07-02 13:22:37 +02:00
niluxv 253b13192b Reduce potential for deadlock when multithreaded 2020-07-02 13:22:37 +02:00
niluxv 3bf0325d64 Fix put_data with save=true saving after writing and refactor saving
* Fix the behaviour of `Database::put_data` when the `save` argument is `true`.
  According to the documentation it must do the save after replacing it's data.
* Factor out the code shared with `Database::save` to a new method `Database::save_data_locked`.
* Fix `Database::save` to not require (unnecessary) write lock but only a read lock
  and add a test for this.
2020-07-02 10:21:54 +02:00
niluxv 06c0cc11a3 Fix try_clone requiring writelocking of data 2020-07-02 10:16:23 +02:00
niluxv 641dae0675 Add many unit tests to lib.rs to bump coverage 2020-07-02 10:16:23 +02:00
niluxv a9caa21c3f Add tests where a new file is created by the Backends 2020-07-02 10:08:07 +02:00
niluxv 4ad57038c3 Add additional tests for the FileBackend 2020-07-02 10:08:07 +02:00
Marcel Müller 20c09ef48a Merge pull request #81 from TheNeikos/feature/add_ci
Replace travis with github actions
2020-07-01 13:09:10 +00:00
Marcel Müller f37e7a5aeb Only build on master push and prs 2020-07-01 15:06:26 +02:00
Marcel Müller f52b3e6e5c Replace travis with github actions 2020-07-01 15:02:47 +02:00
Marcel Müller bd82676aea Merge pull request #80 from TheNeikos/fix/clippy_lints
Fix clippy lints
2020-07-01 13:00:22 +00:00
Marcel Müller 1c5b1b3309 Fix clippy lints 2020-07-01 15:00:00 +02:00
Marcel Müller bfe4eb6419 Merge pull request #78 from TheNeikos/feature/add_boxed_backend
Allow boxed backends
2020-07-01 12:08:55 +00:00
Marcel Müller 910e0f35fe Allow boxed backends 2020-07-01 14:08:24 +02:00
Marcel Müller 456ab9041d Merge pull request #77 from TheNeikos/feature/dont_block_unecessarily
Don't block readers if not needed
2020-07-01 11:04:17 +00:00
Marcel Müller 62b9ec0f7b Don't block readers if not needed 2020-07-01 13:03:54 +02:00
Marcel Müller 552874dc13 Merge pull request #76 from TheNeikos/feature/update_dependencies
Update dependencies
2020-07-01 10:58:46 +00:00
Marcel Müller 48f15232eb Update dependencies 2020-07-01 12:55:18 +02:00
Marcel Müller a54972bd84 Merge pull request #73 from niluxv/update_deps
Update dependencies
2020-07-01 10:53:44 +00:00
niluxv bc94cc0b79 Update dependancies
Now `rustbreak` no longer depends on `serde_yaml` versions under 0.8.4,
which are vulnerable to uncontrolled recursion in deserialisation,
see RUSTSEC-2018-0005.
2020-02-02 10:05:03 +01:00
Marcel Müller 9d1da9b17b Merge pull request #72 from niluxv/rust_edition2018
Transition to Rust edition 2018
2020-02-01 11:15:08 +01:00
niluxv 2d1c9d1202 Fix clippy warnings 2020-01-31 11:18:58 +01:00
niluxv 0bded3773b Apply rust 2018 idioms 2020-01-31 11:03:14 +01:00
niluxv 241407159c Transition to Rust edition 2018 2020-01-31 10:47:17 +01:00
Marcel Müller fd2337b8e6 Merge pull request #70 from niluxv/atomic_saves_fix
Atomic saves fix
2020-01-29 11:52:22 +01:00
niluxv d12ebf1fc8 Advertise PathDatabase in crate level documentation 2020-01-28 09:25:01 +01:00
niluxv 576ce8fa7f Fix copy/paste error in "Add PathBackend with atomic saves"
where `PathDatabase::open` would yield a `FileDatabase`
2020-01-28 09:06:04 +01:00
Marcel Müller 9206fcdbf8 Merge pull request #69 from niluxv/atomic_saves
Add `PathBackend` with atomic saves
2020-01-27 14:04:57 +01:00