5a34a8d791
[wip] documentation for file module
2025-07-03 18:31:13 +00:00
6c385ffeea
[wip] unit tests for file module
...
- testing for `compute_hash` and `check_hash`
2025-07-03 16:18:46 +00:00
cca35e1ae8
[wip] unit tests for file module
...
- testing for `compute_hash`
2025-07-03 15:39:29 +00:00
2cc13f24e7
minor refactoring
...
- untangle `CacheFile::{rewind_chunk, abort_upload}`
- change `file::Uploading::rewind` signature to a more "builder"esque pattern
2025-07-02 12:01:07 +00:00
e3fc06b019
Merge branch 'develop' into feature/api_structs
2025-06-27 02:02:36 +00:00
2315c9cd2e
import strategy for error module
2025-06-27 01:55:43 +00:00
087cef5d6f
Merge branch 'develop' into feature/api_structs
2025-06-26 09:59:59 +00:00
b17f239801
create Error::Mismatch variant
2025-06-26 09:56:29 +00:00
f1c6eb5d75
create struct sharry::api::FileID
2025-06-25 23:20:57 +00:00
0b8bebad6e
implement better hashing
...
- actually, calling `file::Checked::hash` in `AppState::from_args` was correct: If `AppState::rebuild_share` is called, hashes are in a known state.
- call `check_hash` in `AppState::try_resume`
- minor renamings
2025-06-25 10:44:36 +00:00
ea5ef1fa10
implement better hashing
...
- call `file::Checked::hash` in `AppState::from_args`
2025-06-24 19:34:11 +00:00
3b46d228f4
impl AppState::requeue_file
2025-06-18 20:03:26 +00:00
783346c888
major refactoring
...
- `sharry::Client` fn signatures
- `sharry::ClientError` rework
- `file::Uploading` saves `file_id` instead of `patch_uri`
- `impl sharry::Client for ureq::Agent` into separate file
2025-06-18 14:21:25 +00:00
5b018cf84b
minor cleanups
2025-06-13 23:11:40 +00:00
30855ed8ff
[wip] retry chunks
...
- `AppState::rewind` impl
- error handling in `main`
2025-06-13 23:00:36 +00:00
0a8e5cf3f0
[wip] retry chunks
...
- move buffer into main function again, avoiding `unsafe` code
- partially revert `Chunk` changes, removing `unsafe` parts
2025-06-13 22:32:41 +00:00
f05e112040
[wip] retry chunks
...
- make `Chunk` lifetime agnostic by using a raw pointer
- add `fn Uploading::rewind`
- add `fn AppState::{next_chunk, is_done}`
2025-06-13 17:03:25 +00:00
5556a658f5
minor refactoring
...
- var names
- logging
2025-06-13 16:07:25 +00:00
b9a0e1eeb0
[wip] impl Client for ureq::Agent
...
- progress bar handling
- share notify timing
2025-06-12 22:29:01 +00:00
dc2a330d58
[wip] impl Client for ureq::Agent
...
- Chunk implementation
2025-06-10 23:39:20 +00:00
d607380659
[wip] impl Client for ureq::Agent
...
- factored out `file` module
- renamed some stuff
- decoupled `sharry::client` from `file`
2025-06-10 18:20:52 +00:00