Commit graph

222 commits

Author SHA1 Message Date
61d62d731e [wip] unit tests for file module
- testing for `compute_hash` and `check_hash`
2025-07-03 17:20:56 +00:00
6814f74484 base64 usage 2025-07-03 16:20:39 +00:00
6c385ffeea [wip] unit tests for file module
- testing for `compute_hash` and `check_hash`
2025-07-03 16:18:46 +00:00
cab6d13d28 test data in arrays, not vec! 2025-07-03 15:43:26 +00:00
cca35e1ae8 [wip] unit tests for file module
- testing for `compute_hash`
2025-07-03 15:39:29 +00:00
aa16cc9ede Merge branch 'develop' into feature/unit_tests 2025-07-03 14:21:41 +00:00
0efde0e134 clippy fix 2025-07-03 14:21:02 +00:00
b9e553f112 use base64 crate instead of base64ct, no constant time necessary 2025-07-03 14:20:30 +00:00
ea453da433 [wip] unit tests for sharry module
- doc + testing for `uri` module
2025-07-03 13:10:19 +00:00
b01eb69e95 Merge branch 'develop' into feature/unit_tests 2025-07-03 13:07:20 +00:00
fada53044d sharry::ids formatting 2025-07-03 13:07:09 +00:00
67b048f9ac use to_string instead of to_owned where applicable 2025-07-03 13:05:56 +00:00
a7cddf3205 Merge branch 'develop' into feature/unit_tests 2025-07-03 13:05:09 +00:00
46913e93b9 use to_string instead of to_owned where applicable 2025-07-03 13:02:13 +00:00
470ebc4305 uri::Uri creation 2025-07-03 12:58:53 +00:00
f4e0bc5be4 [wip] unit tests for sharry module
- doc + testing for `uri` module
2025-07-03 11:07:32 +00:00
abf76c9df7 move check_trait to crate root 2025-07-03 10:32:46 +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
ad1854dfb8 [wip] unit tests for sharry module
- makeover for `json` module
2025-07-02 11:39:49 +00:00
d891e6d1c4 [wip] unit tests for sharry module
- `ids` done
2025-07-01 19:12:48 +00:00
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