Initial commit

This commit is contained in:
Amelia 2023-10-31 16:51:43 +01:00
commit 5db7f7c0d9
Signed by: limefox
GPG key ID: F86ACA6D693E7BE9
4 changed files with 1143 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/target

1116
Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

12
Cargo.toml Normal file
View file

@ -0,0 +1,12 @@
[package]
name = "estrus"
version = "0.1.0"
edition = "2021"
authors = ["Lymkwi"]
license = "ACSL"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
reqwest = { version = "0.11.22", features = ["default-tls", "json", "gzip"] }
tokio = { version = "1.33.0", features = ["rt-multi-thread", "macros", "net"] }

14
src/main.rs Normal file
View file

@ -0,0 +1,14 @@
use reqwest::Client;
async fn find_ident(ident: &str) -> String {
let client = Client::new();
let res = client.get(format!("https://elixir.bootlin.com/api/ident/linux/{ident}?version=latest"))
.send()
.await.expect("No future failure");
res.text().await.expect("Valid text sent")
}
#[tokio::main]
async fn main() {
println!("{}", find_ident("sk_buff").await)
}