| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | tor-persist: serde usage now requires derive feature. | Nick Mathewson | 2021-10-29 | 1 | -2/+1 |
| | | |||||
| * | Bump all crate versions to 0.0.1 | Nick Mathewson | 2021-10-29 | 1 | -1/+1 |
| | | |||||
| * | Upgrade to fslock version 0.2 | Nick Mathewson | 2021-10-27 | 2 | -2/+2 |
| | | | | | | This version makes all locks per-handle rather than per-process, by moving from lockf() to flock() on unix. | ||||
| * | Add Futureproof<T> wrapper type, use for GuardDisabled enum | eta | 2021-10-27 | 2 | -1/+73 |
| | | | | | | | | | | | | The Futureproof<T> type lets you serialize and deserialize types whose representations might change (most useful for enums that might grow additional variants). It uses #[serde(untagged)] to accomplish this. This gets used in order to make the `disabled` field of `Guard` more robust against future guard disablement reasons being added. A test was also added to verify correct behaviour of the new type. | ||||
| * | Add #[serde(flatten)] HashMap fields to serializable objects | eta | 2021-10-27 | 1 | -0/+1 |
| | | | | | | | | | | | As per arti#175, we'd like to be able to handle newer Arti versions storing additional state in the persisted state files, without dropping this data on the floor when we write out changes to these files. Use the #[serde(flatten)] mechanism to achieve this, by adding catch-all HashMap<String, JsonValue> fields to all structs that are at risk of this happening to them. | ||||
| * | Remove try_lock from StorageHandle. | Nick Mathewson | 2021-10-20 | 2 | -8/+2 |
| | | |||||
| * | Replace the return type of StorageMgr::try_lock with a tristate | Nick Mathewson | 2021-10-20 | 4 | -18/+45 |
| | | | | | | It's useful to know now only if we now have the lock, but also if we just got it for the first time. | ||||
| * | Add a GuardMgr member to CircuitBuilder | Nick Mathewson | 2021-10-10 | 1 | -1/+1 |
| | | |||||
| * | enable checked_conversions lint. | Nick Mathewson | 2021-10-09 | 1 | -0/+1 |
| | | |||||
| * | Fix some typos (via the "typos" tool) | Nick Mathewson | 2021-10-08 | 1 | -2/+2 |
| | | |||||
| * | Change tor-persist to use json instead of toml. | Nick Mathewson | 2021-10-07 | 4 | -20/+22 |
| | | | | | | | The limitations with toml seemed to be reaching a head, and I wasn't able to refactor the guardmgr code enough to actually have its state be serializable as toml. Json's limitations are much narrower. | ||||
| * | Allow building tor-persist for WASM | Jani Monoses | 2021-10-01 | 2 | -1/+5 |
| | | |||||
| * | Clarify why we use a dyn pointer for StorageHandle. | Nick Mathewson | 2021-09-30 | 1 | -1/+7 |
| | | |||||
| * | remote unused tor-persist/src/config.rs | Nick Mathewson | 2021-09-30 | 1 | -10/+0 |
| | | |||||
| * | Add tests for tor-persist object-safe wrapper. | Nick Mathewson | 2021-09-30 | 1 | -0/+34 |
| | | |||||
| * | tor-persist: Add a testing-only state manager that doesn't use disk | Nick Mathewson | 2021-09-30 | 3 | -0/+174 |
| | | |||||
| * | Move FsStatemgr to an inner module. | Nick Mathewson | 2021-09-30 | 2 | -187/+194 |
| | | |||||
| * | Add an object-safe wrapper for StateMgr. | Nick Mathewson | 2021-09-30 | 2 | -0/+98 |
| | | | | | | This is an attempt to uplift the trick that tor-circgmr is currently using, since we'll want it in tor-guardmgr too. | ||||
| * | update fslock to compile android | Trinity Pointard | 2021-09-25 | 1 | -1/+1 |
| | | |||||
| * | Upgrade memmap2, directories, and dirs dependencies. | Nick Mathewson | 2021-09-23 | 1 | -1/+1 |
| | | |||||
| * | fix/silence clippy lints in test modules | Daniel Eades | 2021-09-08 | 1 | -0/+1 |
| | | |||||
| * | Move all crates into a `crates` subdirectory. | Nick Mathewson | 2021-08-27 | 4 | -0/+337 |
| This will cause some pain for now, but now is really the best time to do this kind of thing. | |||||
