mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
test ggemini v0.20.0 features
This commit is contained in:
parent
1a9b4802fa
commit
e123c1c1cd
3 changed files with 8 additions and 19 deletions
|
|
@ -31,7 +31,7 @@ version = "0.10.0"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ansi-parser = "0.9.1"
|
ansi-parser = "0.9.1"
|
||||||
anyhow = "1.0.97"
|
anyhow = "1.0.97"
|
||||||
ggemini = "0.19.0"
|
ggemini = "0.20.0"
|
||||||
ggemtext = "0.7.0"
|
ggemtext = "0.7.0"
|
||||||
indexmap = "2.10.0"
|
indexmap = "2.10.0"
|
||||||
itertools = "0.14.0"
|
itertools = "0.14.0"
|
||||||
|
|
@ -44,8 +44,8 @@ r2d2_sqlite = "0.31.0"
|
||||||
syntect = "5.2.0"
|
syntect = "5.2.0"
|
||||||
|
|
||||||
# development
|
# development
|
||||||
# [patch.crates-io]
|
[patch.crates-io]
|
||||||
# ggemini = { git = "https://github.com/YGGverse/ggemini.git" }
|
ggemini = { git = "https://github.com/YGGverse/ggemini.git" }
|
||||||
# ggemtext = { git = "https://github.com/YGGverse/ggemtext.git" }
|
# ggemtext = { git = "https://github.com/YGGverse/ggemtext.git" }
|
||||||
# plurify = { git = "https://github.com/YGGverse/plurify.git" }
|
# plurify = { git = "https://github.com/YGGverse/plurify.git" }
|
||||||
# libspelling = { git = "https://github.com/YGGverse/libspelling-rs.git", branch = "yoda-0.12"}
|
# libspelling = { git = "https://github.com/YGGverse/libspelling-rs.git", branch = "yoda-0.12"}
|
||||||
|
|
|
||||||
|
|
@ -282,11 +282,7 @@ fn handle(
|
||||||
file_output_stream,
|
file_output_stream,
|
||||||
cancellable.clone(),
|
cancellable.clone(),
|
||||||
Priority::DEFAULT,
|
Priority::DEFAULT,
|
||||||
file_output_stream::Size {
|
file_output_stream::Size::default(),
|
||||||
chunk: 0x100000, // 1M bytes per chunk
|
|
||||||
limit: None, // unlimited
|
|
||||||
total: 0, // initial totals
|
|
||||||
},
|
|
||||||
(
|
(
|
||||||
// on chunk
|
// on chunk
|
||||||
{
|
{
|
||||||
|
|
@ -336,9 +332,8 @@ fn handle(
|
||||||
Priority::DEFAULT,
|
Priority::DEFAULT,
|
||||||
cancellable.clone(),
|
cancellable.clone(),
|
||||||
memory_input_stream::Size {
|
memory_input_stream::Size {
|
||||||
chunk: 0x400, // 1024 bytes chunk
|
|
||||||
limit: 0xfffff, // 1M limit
|
limit: 0xfffff, // 1M limit
|
||||||
total: 0, // initial totals
|
..memory_input_stream::Size::default()
|
||||||
},
|
},
|
||||||
(
|
(
|
||||||
|_, _| {}, // on chunk (maybe nothing to count yet @TODO)
|
|_, _| {}, // on chunk (maybe nothing to count yet @TODO)
|
||||||
|
|
@ -440,9 +435,8 @@ fn handle(
|
||||||
Priority::DEFAULT,
|
Priority::DEFAULT,
|
||||||
cancellable.clone(),
|
cancellable.clone(),
|
||||||
memory_input_stream::Size {
|
memory_input_stream::Size {
|
||||||
chunk: 0x400, // 1024 bytes chunk
|
|
||||||
limit: 0xA00000, // 10M limit
|
limit: 0xA00000, // 10M limit
|
||||||
total: 0, // initial totals
|
..memory_input_stream::Size::default()
|
||||||
},
|
},
|
||||||
(
|
(
|
||||||
move |_, total| status.set_description(Some(&format!("Download: {}", total.bytes()))),
|
move |_, total| status.set_description(Some(&format!("Download: {}", total.bytes()))),
|
||||||
|
|
|
||||||
|
|
@ -193,9 +193,8 @@ impl Nex {
|
||||||
Priority::DEFAULT,
|
Priority::DEFAULT,
|
||||||
cancellable.clone(),
|
cancellable.clone(),
|
||||||
ggemini::gio::memory_input_stream::Size {
|
ggemini::gio::memory_input_stream::Size {
|
||||||
chunk: 0x400, // 1024 bytes chunk
|
|
||||||
limit: 0xA00000, // 10M limit
|
limit: 0xA00000, // 10M limit
|
||||||
total: 0, // initial totals
|
..ggemini::gio::memory_input_stream::Size::default()
|
||||||
},
|
},
|
||||||
(
|
(
|
||||||
{
|
{
|
||||||
|
|
@ -343,11 +342,7 @@ fn download(s: SocketConnection, (p, u): (Rc<Page>, Uri), c: Cancellable) {
|
||||||
file_output_stream,
|
file_output_stream,
|
||||||
c.clone(),
|
c.clone(),
|
||||||
Priority::DEFAULT,
|
Priority::DEFAULT,
|
||||||
file_output_stream::Size {
|
file_output_stream::Size::default(),
|
||||||
chunk: 0x100000, // 1M bytes per chunk
|
|
||||||
limit: None, // unlimited
|
|
||||||
total: 0, // initial totals
|
|
||||||
},
|
|
||||||
(
|
(
|
||||||
// on chunk
|
// on chunk
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue