feat: alter unsafe packages

This commit is contained in:
2025-05-23 02:54:53 +08:00
parent f1d8318500
commit 0fcbc6bbe9
15 changed files with 470 additions and 405 deletions

View File

@@ -35,8 +35,11 @@ qbit-rs = { git = "https://github.com/lonelyhentxi/qbit.git", rev = "72d53138ebe
"builder",
] }
merge-struct = "0.1"
librqbit-core = "4"
librqbit = { version = "8", features = ["async-bt", "watch"] }
librqbit-core = { git = "https://github.com/ikatson/rqbit.git", rev = "0936730" }
librqbit = { git = "https://github.com/ikatson/rqbit.git", rev = "0936730", features = [
"async-bt",
"watch",
] }
util = { workspace = true }
testing-torrents = { workspace = true, optional = true }

View File

@@ -128,6 +128,12 @@ impl DynamicGraphqlInfo {
}
}
impl From<#enum_name> for String {
fn from(value: #enum_name) -> Self {
value.as_str().to_string()
}
}
impl std::str::FromStr for #enum_name {
type Err = String;