| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
| |
This would fix the tests on Windows I think ? (Tests which don't seem
to run in routine CI AFAICT.)
|
| |
|
|
| |
As previously decided and documented.
|
| |
|
|
|
|
|
| |
We're about to reuse this.
This changes the Resource in the error to be more accurate, too. This
will be more important as we add another call site.
|
| |
|
|
| |
We're going to want this some more.
|
| | |
|
| | |
|
| |
|
|
| |
Remaining formatting churn.
|
| | |
|
| |
|
|
|
|
|
| |
And also instance_peek_storage, which needs to share some code, so
determined the shape of this implementation.
Make StateDirectory have the (one) field we need.
|
| |
|
|
|
|
|
|
|
|
| |
These are the straightforward methods which, given a CheckedDir,
perform the relevant operation.
Make InstanceStateHandle have the necessary fields.
Constructing an InstanceStateHandle is a bit complex and will come in
a moment.
|
| |
|
|
|
|
|
|
| |
In practice, allowing Bug here was quite inconvenient for everyone.
I think very few call sites will want to throw anything interesting.
If they *do* want to cause an error, without panicking, they could
write a syntactically invalid slug.
|
| |
|
|
|
|
|
|
| |
You don't need to consume a Mistrust to get a CheckedDir - you use a
Verifier and then something clones it for you. So StateDirectory::new
should take &Mistrust.
And instance_peek_storage needs T to be deserialisable!
|
| |
|
|
|
| |
This is rather more serious than many deletions - it wipes out the
whole directory. And this name goes better with purge_instances.
|
| | |
|
| |
|
|
| |
And tidy up some of the docs to refer to the slug module.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
You can't call these yet and there aren't any tests. But this
demonstrates use of the previous refactoring.
|
| | |
|
| |
|
|
|
| |
Bring in the fslock-guard crate and replace the Void in the structs.
(Separated out since this contains Cargo.lock churn.)
|
|
|
And, instead of being a hidden module, it's a public experimental one.
I have feature-gated all the new dependencies since we probably want
to feature-gate this module in perpetuity, since some builds of Arti
won't need it.
Closes #1205
|