b9e553f112
use base64 crate instead of base64ct, no constant time necessary
2025-07-03 14:20:30 +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
c7b24b1250
add id::{AliasID, ShareID}
2025-06-27 01:47:38 +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
1f9c247439
Merge branch 'develop' into feature/hashing
...
- with "clippy fix" and "cargo fmt"
2025-06-25 21:07:24 +00:00
e391821fe5
adjust crate structure
...
- move `sharry::client::ClientError` to `error::Error`
2025-06-25 16:48:00 +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
6e553cc185
implement better hashing
...
- use Blake2b128 for the CLI arguments hash
2025-06-24 16:29:38 +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
6ca3e6c9dd
[wip] documentation
...
- added more notes
- minor cleanup
2025-06-15 00:56:58 +00:00
56223b3ae8
[wip] documentation
...
- added more notes
- `main.rs` logging
- clearer matching of `ClientError::ResponseStatus`
2025-06-15 00:44:28 +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
0993679641
[wip] impl Client for ureq::Agent
...
- clippy fix
2025-06-11 00:06:08 +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