From a458a394440a42e7c3fab50e0e78cd42b3285618 Mon Sep 17 00:00:00 2001 From: katayama8000 <63860688+katayama8000@users.noreply.github.com> Date: Mon, 15 Jul 2024 19:06:50 +0900 Subject: [PATCH] Publish to crate.io (#3) * chore: Update dependencies and configuration files * chore: Add linguist attributes for markdown and yaml files * Update gyazo_client version to 0.1.1 --- .gitattributes | 4 ++++ Cargo.lock | 2 +- Cargo.toml | 10 +++++++++- README.md | 4 ++-- 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d9f4581 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +*.md linguist-detectable=true +*.md linguist-language=markdown +*.yml linguist-detectable=true +*.yml linguist-language=yaml \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 3b050e8..84e162c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -232,7 +232,7 @@ checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd" [[package]] name = "gyazo_client" -version = "0.1.0" +version = "0.1.1" dependencies = [ "reqwest", "serde", diff --git a/Cargo.toml b/Cargo.toml index 78d8a59..3bab8d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,15 @@ [package] name = "gyazo_client" -version = "0.1.0" +version = "0.1.1" edition = "2021" +readme = "README.md" +authors = ["katayama8000 "] +description = "Gyazo Client for Rust" +license = "MIT OR Apache-2.0" +repository = "https://github.com/katayama8000/gyazo-client-rust" +homepage = "https://github.com/katayama8000/gyazo-client-rust/blob/main/README.md" +keywords = ["gyazo", "client", "api", "rust"] +categories = ["api-client", "image", "web"] [dependencies] reqwest = { version = "0.12.5", features = ["json", "blocking", "multipart"] } diff --git a/README.md b/README.md index 31ddd21..ebfae4e 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,8 @@ async fn main() -> Result<(), Box> { .build()?; let upload_response = client.upload_image(upload_params).await?; - // Get image information - let image_info = client.get_image(&upload_response.image_id).await?; + // Get image + let image = client.get_image(&upload_response.image_id).await?; // List images let images = client.list_images().await?;