Skip to content

Commit

Permalink
Merge pull request #32 from Chloe-Woahie/dev-main
Browse files Browse the repository at this point in the history
v0.10.2
  • Loading branch information
fekie authored Apr 6, 2023
2 parents 9029711 + 6724974 commit 8672995
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ const ROBLOSECURITY: &str = "your-roblosecurity-token";

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
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?;
Expand All @@ -71,7 +73,9 @@ const ROBLOSECURITY: &str = "your-roblosecurity-token";

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
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;
Expand Down
10 changes: 7 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! 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?;
Expand All @@ -65,7 +67,9 @@
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! 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;
Expand Down Expand Up @@ -138,8 +142,8 @@ 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
// todo: make feature that allows reqwest crate to not collide.

use serde::{Deserialize, Serialize};

Expand Down

0 comments on commit 8672995

Please sign in to comment.