Skip to content

Commit

Permalink
Fix #51, clean up upgrade code, and better download UI
Browse files Browse the repository at this point in the history
  • Loading branch information
theRookieCoder committed May 9, 2022
1 parent ce67e05 commit c4bd136
Show file tree
Hide file tree
Showing 7 changed files with 182 additions and 300 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog for Ferium

## `v3.28.2`

- Update to Libium 1.12
- Improved upgrade code to be faster and more clean
- Immediately fail if rate limit error occured
- Somewhat fixes [#51](https://github.com/theRookieCoder/ferium/issues/51)
- Show the file size when downloading files

## `v3.28.1`
### 08.05.2022

Expand Down
117 changes: 75 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ferium"
version = "3.28.1"
version = "3.28.2"
edition = "2021"
authors = ["Ilesh Thiada (theRookieCoder) <[email protected]>", "薛詠謙 (KyleUltimate)", "Daniel Hauck (SolidTux)"]
description = "Ferium is a CLI program for managing Minecraft mods from Modrinth, CurseForge, and Github Releases"
Expand All @@ -22,7 +22,7 @@ default = ["gui"]
gui = ["libium/gui"]

[dependencies]
tokio = { version = "1.18", default-features = false, features = ["rt-multi-thread", "macros"] }
tokio = { version = "1.18", default-features = false, features = ["rt-multi-thread", "macros", "time"] }
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls"] }
octocrab = { version = "0.16", default-features = false, features = ["rustls"] }
clap = { version = "3.1", features = ["derive"] }
Expand All @@ -33,12 +33,13 @@ itertools = "0.10"
fs_extra = "1.2"
colored = "2.0"
ferinth = "2.2"
libium = "1.11"
libium = "1.12"
anyhow = "1.0"
online = "3.0"
semver = "1.0"
bytes = "1.1"
furse = "1.1"
size = "0.1"
url = "2.2"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async fn actual_main(cli_app: Ferium) -> Result<()> {
} => {
check_internet().await?;
add::modrinth(
&modrinth,
modrinth,
&project_id,
profile,
Some(!dont_check_game_version),
Expand Down Expand Up @@ -139,7 +139,7 @@ async fn actual_main(cli_app: Ferium) -> Result<()> {
} => {
check_internet().await?;
add::curseforge(
&curseforge,
curseforge,
project_id,
profile,
Some(!dont_check_game_version),
Expand Down
2 changes: 1 addition & 1 deletion src/mutex_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::sync::{Mutex, MutexGuard};

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

0 comments on commit c4bd136

Please sign in to comment.