2eb651f919
[wip] doc for sharry module
2025-06-28 09:24:46 +00:00
903fbc3480
[wip] unit tests for sharry module
2025-06-27 16:59:31 +00:00
bc4c15d17c
consolidate sharry module
2025-06-27 08:34:13 +00:00
3f00e08422
consolidate sharry::api module
2025-06-27 08:29:57 +00:00
357f455ec0
import strategy for error module (cont.)
2025-06-27 02:03:49 +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
d8c48b74ca
remove unnecessary impl AsRef<str> for FileID
2025-06-26 10:15:54 +00:00
e0c5b5517f
better unit testing for FileID
2025-06-26 10:06: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
c9c21aa128
split api.rs into modules
...
- `id` for multiple "ID" types
- `json` for types directly interacting with the Sharry API
- `uri` for the `Uri` type
- activate testing
2025-06-25 23:43:57 +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
9000c8a46b
clippy fix
2025-06-25 16:34:32 +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
6e553cc185
implement better hashing
...
- use Blake2b128 for the CLI arguments hash
2025-06-24 16:29:38 +00:00
a4bef827d1
fix clippy lint without drop
2025-06-18 18:14:39 +00:00
01bcf92d9c
clippy fix
2025-06-18 14:49:30 +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
de07d556a2
minor refactoring
...
- `use crate::` where appropriate
- cleanup CLI parsing
- `Uri::with_protocol` -> `Uri::new`
2025-06-18 13:04:04 +00:00
10bb4feef5
logging improvements
2025-06-14 00:07:43 +00:00
9f1e0cfc6c
[wip] impl Client for ureq::Agent
...
- Client is now owned by `AppState`
- minor cleanups
2025-06-12 23:01:16 +00:00
67da081ef9
[wip] impl Client for ureq::Agent
...
- error handling refactoring
2025-06-12 00:54:26 +00:00
9b1f7f872c
[wip] impl Client for ureq::Agent
...
- minor refactorings
2025-06-11 18:17:16 +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
69bef4e994
[wip] impl Client for ureq::Agent
...
- impl `sharry_file_patch`
- completely rework chunking logic
2025-06-10 01:17:17 +00:00
c9528a9ac1
[wip] impl Client for ureq::Agent
...
- use `sharry_file_create` in `AppState`
2025-06-09 00:05:58 +00:00
09af480379
[wip] impl Client for ureq::Agent
...
- remove `sharry::alias` and `sharry::share` (reduced to IDs)
- use `sharry_share_create` in `AppState`
2025-06-08 21:31:50 +00:00
90cecd015e
[wip] impl Client for ureq::Agent
2025-06-08 17:13:01 +00:00
51ecab41bb
[wip] impl Client for ureq::Agent
2025-06-08 01:20:41 +00:00
5b6fa3eaf7
minor imports refactoring
2025-06-08 00:40:29 +00:00
e208df9711
move simplified SharryFile trait back into mod.rs
2025-06-06 23:48:22 +00:00
e908c09beb
refactor: minimize usize usage
2025-06-06 23:42:18 +00:00
3dc39edcab
minor refactoring and fixes
2025-06-06 22:25:39 +00:00
e98001f4a4
implement SharryFile trait
2025-06-06 15:21:49 +00:00
39560eeeed
mark and eliminate some unwrap
2025-06-05 22:08:24 +00:00
dc7eeaddfe
CLI using indicatif
2025-06-05 17:37:35 +00:00
e7f0fc5a38
PathBuf debug formatting
2025-06-05 01:45:25 +00:00
9208a7dfcf
wip: main business logic
2025-06-05 01:15:44 +00:00
a91d9afb66
sharry::api::Uri handling (addendum)
2025-06-04 22:29:19 +00:00
f8a748ec07
sharry::api::Uri handling
2025-06-04 22:01:17 +00:00
cf84eed717
FileUploading::new
2025-06-04 16:58:18 +00:00
9c2fdd95c6
main logging
2025-06-04 16:54:03 +00:00
7e9cc00d7c
derive Ord for FileChecked
2025-06-04 16:44:24 +00:00
cb0d8a3d9a
sharry::file reimplementation apparently works
2025-06-04 16:44:16 +00:00