first commit
This commit is contained in:
commit
ac89e02e0e
4 changed files with 1469 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/target
|
||||
1451
Cargo.lock
generated
Normal file
1451
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
8
Cargo.toml
Normal file
8
Cargo.toml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[package]
|
||||
name = "catscii"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
reqwest = { version = "0.11", features = ["json"] }
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
9
src/main.rs
Normal file
9
src/main.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#[tokio::main]
|
||||
async fn main() {
|
||||
let res = reqwest::get("https://api.thecatapi.com/v1/images/search")
|
||||
.await
|
||||
.unwrap();
|
||||
println!("Status: {}", res.status());
|
||||
let body = res.text().await.unwrap();
|
||||
println!("Body: {}", body);
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue