idk
This commit is contained in:
23
homegrown/email/Cargo.lock
generated
23
homegrown/email/Cargo.lock
generated
@@ -1,6 +1,6 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "addr2line"
|
||||
@@ -144,6 +144,8 @@ version = "0.1.0"
|
||||
dependencies = [
|
||||
"lettre",
|
||||
"reqwest",
|
||||
"serde",
|
||||
"serde_yaml_ng",
|
||||
"tokio",
|
||||
]
|
||||
|
||||
@@ -1111,6 +1113,19 @@ dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_yaml_ng"
|
||||
version = "0.9.36"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "bd24347956e682cf958c95e82deb9914cad4010d3efc035d579f81f4c426038c"
|
||||
dependencies = [
|
||||
"indexmap",
|
||||
"itoa",
|
||||
"ryu",
|
||||
"serde",
|
||||
"unsafe-libyaml",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "shlex"
|
||||
version = "1.3.0"
|
||||
@@ -1388,6 +1403,12 @@ version = "1.0.18"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
|
||||
|
||||
[[package]]
|
||||
name = "unsafe-libyaml"
|
||||
version = "0.2.11"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861"
|
||||
|
||||
[[package]]
|
||||
name = "untrusted"
|
||||
version = "0.9.0"
|
||||
|
@@ -1,5 +1,3 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
|
||||
struct Channel {
|
||||
id: String,
|
||||
@@ -8,15 +6,15 @@ struct Channel {
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
async fn main() {
|
||||
let channellist = "https://raw.githubusercontent.com/bvanroll/home/refs/heads/master/static/yters.yaml";
|
||||
//getting the list of channels with id's first
|
||||
//
|
||||
//https://raw.githubusercontent.com/bvanroll/home/refs/heads/master/static/yters.json
|
||||
let resp = reqwest::get(channellist)
|
||||
.await?
|
||||
.await.
|
||||
.text()
|
||||
.await?;
|
||||
let channels: Vec<Channel> =serde_yaml_ng::from_str(&resp)?;
|
||||
.await;
|
||||
let channels: Vec<Channel> =serde_yaml_ng::from_str(&resp);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user