91085a9eec
Merge branch 'develop' into feature/unit_tests
2025-07-01 18:56:33 +00:00
d55684096f
remove unneeded macro param in error::impl_error_from
2025-07-01 18:51:49 +00:00
de208a20d5
clippy fix
2025-07-01 15:24:26 +00:00
3bfdf87277
Merge branch 'develop' into feature/unit_tests
2025-07-01 15:20:18 +00:00
0d68d139d5
improved error handling
2025-07-01 15:20:07 +00:00
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
c10d86ff65
Merge branch 'feature/api_structs' into develop
2025-06-27 08:30:18 +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
d37797d2ec
clippy fix
2025-06-26 10:13:23 +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
9de8f948dc
update notes
2025-06-26 00:28:08 +00:00
5adbf8cb38
ProgressBar handling simplification
2025-06-26 00:08:18 +00:00
3258b8fb74
prompt user before rebuilding share
2025-06-25 23:52:16 +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
f2b063ba85
minor changes
...
- adjust `main` log levels
- lower default upload chunk size to utilize common cache sizes
2025-06-25 22:52:46 +00:00
4c88ea7291
Merge branch 'feature/hashing' into develop
2025-06-25 22:48:53 +00:00
465c857126
implement better hashing
...
- move hashing back into `cachefile` to correctly handle the `rebuild_share` case
- add `-n` / `--no-hash` CLI switch to explicitly skip hashing
2025-06-25 22:47:55 +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
d1d7b55585
adjust crate structure
2025-06-25 16:34:22 +00:00
78fb04403c
main adjust log levels
2025-06-25 16:12:52 +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
11a5106473
implement better hashing
...
- call `file::Checked::hash` in `CacheFile::from_args` instead
2025-06-24 22:25:22 +00:00
ea5ef1fa10
implement better hashing
...
- call `file::Checked::hash` in `AppState::from_args`
2025-06-24 19:34:11 +00:00
2bcbc0d71c
implement better hashing
...
- use `blake2b_simd` crate and optimize
2025-06-24 19:27:13 +00:00
97e9e41117
error 404 defaults to "bad URI"
2025-06-24 16:31:31 +00:00
6e553cc185
implement better hashing
...
- use Blake2b128 for the CLI arguments hash
2025-06-24 16:29:38 +00:00
ece742a1e3
ureq error message parsing
2025-06-24 02:08:35 +00:00
1e05155cc1
minor refactoring
2025-06-24 02:05:27 +00:00
005c5f7cfa
move AppState::is_done into AppState::upload_chunk
2025-06-24 01:53:27 +00:00
14e1bed708
unwrap AppState::progress RefCell
2025-06-24 01:35:21 +00:00
72e9a5d40f
styling/doc
2025-06-24 01:28:09 +00:00
a8ff354a51
fix some progressbar issues
2025-06-24 01:11:36 +00:00
686e0c3e5c
Merge branch 'feature/rebuild_share' into develop
2025-06-24 00:25:19 +00:00
5b403ea129
Merge branch 'develop' into feature/rebuild_share
2025-06-24 00:23:09 +00:00
540953e4a9
notes
2025-06-24 00:18:36 +00:00
c734355ebb
file names from args, not from appstate
...
- remove `AppState::file_names`, `CacheFile::file_names`, `FileState::file_name`
- add `Cli::file_names`
- clippy fix
2025-06-24 00:18:26 +00:00
393feec125
[wip] implement handling "missing share"
...
- rework `CacheFile` API
- fix `AppState` using new `CacheFile`
- fix `main` using new `AppState`
- logging enhancement
2025-06-24 00:11:24 +00:00
df055fc4e9
[wip] implement handling "missing share"
...
- rework `CacheFile` API
- fix `AppState::{next_chunk, is_done}`
2025-06-19 10:34:28 +00:00