Commit graph

104 commits

Author SHA1 Message Date
Igor Katson
7e40c71852
More granular feature handling 2024-08-31 12:15:22 +01:00
Igor Katson
0bb1c77456
Decode more peer ids 2024-08-29 12:48:14 +01:00
Igor Katson
d6b1c47d45
Add #[track_caller] to all spawns so that tokio-console works (if enabled) 2024-08-29 10:30:06 +01:00
Igor Katson
0214817122
Fix root crate compilation dependencies to force sha1* 2024-08-28 13:32:42 +01:00
Igor Katson
52ca07fe41
Cargo upgrade all deps 2024-08-28 11:44:01 +01:00
Igor Katson
a825115472
Preparing for v7.0.0 release 2024-08-27 17:55:27 +01:00
Igor Katson
3067ad21d5
Cleanups 2024-08-21 16:20:46 +01:00
Igor Katson
30de55d3bc
Prepare 7.0.0-beta.0 2024-08-15 14:46:26 +01:00
Igor Katson
2871c358e3
postgres session storage backend 2024-08-15 14:18:55 +01:00
Igor Katson
f22814c77b
Postgres example storage 2024-08-15 13:31:56 +01:00
Igor Katson
2618f8b389
Add tests for magnet to string 2024-08-14 12:23:31 +01:00
Igor Katson
bf557e4bbc
type annotation for older rust versions 2024-08-14 12:20:16 +01:00
Igor Katson
cd87acdab2
fix magnet link Display code 2024-08-14 12:14:57 +01:00
Igor Katson
c196c11860
trying to make tests work with new metadata 2024-08-14 12:14:57 +01:00
Igor Katson
c7ed475f54
Use bytes crate for zerocopy and memory re-use (#182)
* Use bytes. Not yet zerocopy everywhere but compiles

* Actually zerocopy

* Actually zerocopy

* Not actually storing the torrent on disk now
2024-08-14 12:08:46 +01:00
Igor Katson
d54b67d2dc
Make the /resolve_magnet HTTP endpoint return an actual torrent file, not info 2024-08-13 19:06:17 +01:00
Igor Katson
183572b695
Upgrade deps 2024-08-06 13:49:03 +01:00
Evrins Hu
a7cd3758ab fix: can not add base32 encoded magnet url 2024-07-16 13:49:51 +08:00
Igor Katson
36359150a7
Remove annoying error message when task is cancelled 2024-06-21 15:17:48 +01:00
Igor Katson
54b17d5ee1 Write through cache impl 2024-05-03 02:53:52 +04:00
Igor Katson
dc137c075f Move to storage folder 2024-05-02 12:29:46 +04:00
Igor Katson
ffc662e370 Less spammy log message 2024-05-01 00:43:51 +04:00
Igor Katson
3d46d7cb97
Fix clippy lints related to recent bug 2024-04-24 14:19:04 +01:00
Igor Katson
5dee78227b
Fixing versions for cargo publish 2024-04-23 23:32:02 +01:00
Igor Katson
6a23f311e1 Send cancellations on steal 2024-04-07 22:45:47 +01:00
Igor Katson
7ec76fc5d4 Update subcrates 2024-04-07 10:56:06 +01:00
Igor Katson
5eb01ac226
Ability to change the list of files at any time, including through UI (#115)
* Now can update the list of files without pausing/unpausing

* Shrink a few functions

* Reopen write when updating files

* Todos

* opened_file abstraction

* iter_pieces_within iterator

* Simplify iter_pieces_within

* Simplify iter_pieces_within

* Add "iter_file_details"

* temporarily broken: readonly by default

* Live torrent - reopen files

* Reopen files after changing the list

* Now reopening files read only when they are completed

* Fix a bug in opened_file.rs

* update todos

* update help

* Reconnect all peers that are idling

* Add a couple fields to OpenedFile

* Add a couple fields to OpenedFile

* Small cleanups - use the new iterator where possible

* size_of_piece_in_file function

* Updating have

* Include file progress

* Almost nothing

* ugly progress bars

* bad UI, saving

* its not so bad

* Works now

* update progress bar a bit

* Reopen read-only on pause

* Zero bytes isnt too bad! Doesnt break anything

* fix per file progress bars

* progress bar not as ugly anymore?

* ui tweaks

* fix a react bug

* TODO.md update

* Fix js + TODOs

* Compute per-file progress on init

* Fix stats updating live

* Nothing

* Nothing

* cleanup ui a bit

* Nothing

* Final fixes

* Trying to fix rust 1.73

* Sorting filenames

* remove unnecessary indentation

* Remove unnecessary comment
2024-04-06 09:20:03 +01:00
Igor Katson
2972b0c87b Remove a redundant method 2024-03-30 20:22:04 +00:00
Igor Katson
0cc90f19ab Simplify chunk_size 2024-03-30 20:22:04 +00:00
Igor Katson
3e2fac81b1 Trying to check / simplify / improve math 2024-03-30 20:22:04 +00:00
Igor Katson
c5b21992e6 Make test compile 2024-03-30 20:22:04 +00:00
Igor Katson
304b2c6328 Add extensive tests for Lengths. 2024-03-30 20:22:04 +00:00
Igor Katson
950e0cd50e Remove custom ceil_div_u64 2024-03-30 20:22:04 +00:00
Igor Katson
9722dd8cb7 Fewer unwraps 2024-03-30 20:22:04 +00:00
Igor Katson
8402a821ad
Prepare for 5.5.4 (#107) 2024-03-29 21:06:59 +00:00
Igor Katson
bb0f3c36ec
Merge pull request #106 from ikatson/resilience-to-bogus-peers
Fix resilience to bogus peers
2024-03-29 20:46:37 +00:00
Igor Katson
2ef5124a2d
Nothing 2024-03-29 20:16:44 +00:00
Igor Katson
07bd9dec83
Remove sha1 extra features (#105)
Remove all extra sha1 features
2024-03-29 15:57:30 +00:00
Igor Katson
c481f77354
Rename generic bounds for clarity 2024-03-29 13:44:30 +00:00
Igor Katson
fa05fe8376
Box<[u8]> instead of Vec<u8> for ByteBufOwned 2024-03-29 13:44:10 +00:00
Igor Katson
f42de46878
Revert "Box<[u8]> instead of Vec<u8> for ByteBufOwned"
This reverts commit deee41cd93.
2024-03-29 13:00:57 +00:00
Igor Katson
e862d34cb4
Revert "Rename generic bounds for clarity"
This reverts commit 8870fb2d5f.
2024-03-29 13:00:54 +00:00
Igor Katson
8870fb2d5f
Rename generic bounds for clarity 2024-03-29 12:19:15 +00:00
Igor Katson
deee41cd93
Box<[u8]> instead of Vec<u8> for ByteBufOwned 2024-03-29 11:00:58 +00:00
Igor Katson
4d6b5181eb
Prepare v5.5.3 (#98)
* Forgot to commit version updates

* Cargo.toml 5.5.3

* Cargo.lock

* Tag desktop 5.5.3

* Update deps
2024-03-25 13:40:04 +00:00
Matt Joiner
b184354c2f
Make the announce info field optional 2024-03-24 18:27:08 +11:00
Igor Katson
2778d46bb3
End-to-end unit test (#90)
* First implementation of create_torrent_file

* Test harness for e2e preparing

* Saving

* Continuing test harness

* Continuing test harness

* Continuing test harness

* All servers are running

* Full e2e harness done

* Test e2e harness working fine

* Remove lints

* injecting faults

* The e2e test runs continuously

* e2e test

* Add a test for create_torrent

* Nothing

* Nothing, just tweaking the numberes

* Update tokio, remove custom tempfile shim
2024-03-05 09:18:22 +00:00
Igor Katson
5488e1d40f
Split up a couple large functions 2024-02-28 20:27:45 +00:00
Igor Katson
34f3ec6c29
Inline(never) more things for rqbit(bin) to compile faster 2024-02-26 23:08:47 +00:00
Igor Katson
76b7d23149
Clippy 2024-02-18 20:16:18 +00:00