From 6e2ef61c0f740db8e1c50ca2537835ce630703b2 Mon Sep 17 00:00:00 2001 From: Chloe-Woahie <68732833+Chloe-Woahie@users.noreply.github.com> Date: Thu, 6 Apr 2023 00:36:08 -0400 Subject: [PATCH 1/4] style: fix formatting in crate examples --- README.md | 8 ++++++-- src/lib.rs | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 36f9f7c..ddffed7 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,9 @@ const ROBLOSECURITY: &str = "your-roblosecurity-token"; #[tokio::main] async fn main() -> Result<(), Box> { - let client = roboat::ClientBuilder::new().roblosecurity(ROBLOSECURITY.to_string()).build(); + let client = roboat::ClientBuilder::new() + .roblosecurity(ROBLOSECURITY.to_string()) + .build(); let robux = client.robux().await?; let user_id = client.user_id().await?; @@ -71,7 +73,9 @@ const ROBLOSECURITY: &str = "your-roblosecurity-token"; #[tokio::main] async fn main() -> Result<(), Box> { - let client = roboat::ClientBuilder::new().roblosecurity(ROBLOSECURITY.to_string()).build(); + let client = roboat::ClientBuilder::new() + .roblosecurity(ROBLOSECURITY.to_string()) + .build(); let item_id = 1365767; let limit = roboat::Limit::Ten; diff --git a/src/lib.rs b/src/lib.rs index 58ba144..e29764d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -38,7 +38,9 @@ //! //! #[tokio::main] //! async fn main() -> Result<(), Box> { -//! let client = roboat::ClientBuilder::new().roblosecurity(ROBLOSECURITY.to_string()).build(); +//! let client = roboat::ClientBuilder::new() +//! .roblosecurity(ROBLOSECURITY.to_string()) +//! .build(); //! //! let robux = client.robux().await?; //! let user_id = client.user_id().await?; @@ -65,7 +67,9 @@ //! //! #[tokio::main] //! async fn main() -> Result<(), Box> { -//! let client = roboat::ClientBuilder::new().roblosecurity(ROBLOSECURITY.to_string()).build(); +//! let client = roboat::ClientBuilder::new() +//! .roblosecurity(ROBLOSECURITY.to_string()) +//! .build(); //! //! let item_id = 1365767; //! let limit = roboat::Limit::Ten; From 93a7c7273227bacd6df96f2691fcf5e3115ed771 Mon Sep 17 00:00:00 2001 From: Chloe-Woahie <68732833+Chloe-Woahie@users.noreply.github.com> Date: Thu, 6 Apr 2023 00:36:14 -0400 Subject: [PATCH 2/4] chore: remove todo --- src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index e29764d..5a68d32 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -142,7 +142,6 @@ mod validation; // todo: add usage to readme // todo: every type should have an explanation of the typical means by which the user will construct or fetch it, if the answer isn't “this is a struct literal with public methods”. // todo: figure out authtickets -// todo: censor roblosecurity in client debug impl with auth_value.set_sensitive(true) // todo: add ugc limited buying use serde::{Deserialize, Serialize}; From 26bc25aec777d44bfdf24edcae46a979f3d2a939 Mon Sep 17 00:00:00 2001 From: Chloe-Woahie <68732833+Chloe-Woahie@users.noreply.github.com> Date: Thu, 6 Apr 2023 00:37:58 -0400 Subject: [PATCH 3/4] chore: add todo --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 5a68d32..654391f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -143,6 +143,7 @@ mod validation; // todo: every type should have an explanation of the typical means by which the user will construct or fetch it, if the answer isn't “this is a struct literal with public methods”. // todo: figure out authtickets // todo: add ugc limited buying +// todo: make feature that allows reqwest crate to not collide. use serde::{Deserialize, Serialize}; From 6724974c0c1d588317804c4211795550559fcf32 Mon Sep 17 00:00:00 2001 From: Chloe-Woahie <68732833+Chloe-Woahie@users.noreply.github.com> Date: Thu, 6 Apr 2023 00:38:19 -0400 Subject: [PATCH 4/4] chore: increase crate version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 0041cb4..44db569 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "roboat" readme = "README.md" repository = "https://github.com/Chloe-Woahie/roboat" -version = "0.10.1" +version = "0.10.2" [dependencies] reqwest = { version = "0.11.14", default-features=false, features = ["rustls-tls", "json"] }