Skip to content

Commit c4bd136

Browse files
Fix #51, clean up upgrade code, and better download UI
1 parent ce67e05 commit c4bd136

File tree

7 files changed

+182
-300
lines changed

7 files changed

+182
-300
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog for Ferium
22

3+
## `v3.28.2`
4+
5+
- Update to Libium 1.12
6+
- Improved upgrade code to be faster and more clean
7+
- Immediately fail if rate limit error occured
8+
- Somewhat fixes [#51](https://github.com/theRookieCoder/ferium/issues/51)
9+
- Show the file size when downloading files
10+
311
## `v3.28.1`
412
### 08.05.2022
513

Cargo.lock

Lines changed: 75 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ferium"
3-
version = "3.28.1"
3+
version = "3.28.2"
44
edition = "2021"
55
authors = ["Ilesh Thiada (theRookieCoder) <[email protected]>", "薛詠謙 (KyleUltimate)", "Daniel Hauck (SolidTux)"]
66
description = "Ferium is a CLI program for managing Minecraft mods from Modrinth, CurseForge, and Github Releases"
@@ -22,7 +22,7 @@ default = ["gui"]
2222
gui = ["libium/gui"]
2323

2424
[dependencies]
25-
tokio = { version = "1.18", default-features = false, features = ["rt-multi-thread", "macros"] }
25+
tokio = { version = "1.18", default-features = false, features = ["rt-multi-thread", "macros", "time"] }
2626
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls"] }
2727
octocrab = { version = "0.16", default-features = false, features = ["rustls"] }
2828
clap = { version = "3.1", features = ["derive"] }
@@ -33,12 +33,13 @@ itertools = "0.10"
3333
fs_extra = "1.2"
3434
colored = "2.0"
3535
ferinth = "2.2"
36-
libium = "1.11"
36+
libium = "1.12"
3737
anyhow = "1.0"
3838
online = "3.0"
3939
semver = "1.0"
4040
bytes = "1.1"
4141
furse = "1.1"
42+
size = "0.1"
4243
url = "2.2"
4344

4445
[dev-dependencies]

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ async fn actual_main(cli_app: Ferium) -> Result<()> {
109109
} => {
110110
check_internet().await?;
111111
add::modrinth(
112-
&modrinth,
112+
modrinth,
113113
&project_id,
114114
profile,
115115
Some(!dont_check_game_version),
@@ -139,7 +139,7 @@ async fn actual_main(cli_app: Ferium) -> Result<()> {
139139
} => {
140140
check_internet().await?;
141141
add::curseforge(
142-
&curseforge,
142+
curseforge,
143143
project_id,
144144
profile,
145145
Some(!dont_check_game_version),

src/mutex_ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::sync::{Mutex, MutexGuard};
22

33
/// A sketchy way to not deal with mutex poisoning
44
///
5-
/// **WARNING**: If the poison had occured during a write, the data may be corrupted.
5+
/// **WARNING**: If the poison had occurred during a write, the data may be corrupted.
66
/// _If_ unsafe code had poisoned the mutex, memory corruption is possible
77
pub trait MutexExt<T> {
88
fn force_lock(&self) -> MutexGuard<'_, T>;

0 commit comments

Comments
 (0)