From 12f756fe1a26ce37b738ebef578c94ea5553ba35 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 8 Mar 2024 23:55:27 +0100 Subject: [PATCH] create fluent --- Cargo.toml | 2 ++ members/fluent/Cargo.toml | 8 ++++++++ members/fluent/src/main.rs | 3 +++ members/rest-queued/src/client.rs | 10 ++++++++++ 4 files changed, 23 insertions(+) create mode 100644 members/fluent/Cargo.toml create mode 100644 members/fluent/src/main.rs diff --git a/Cargo.toml b/Cargo.toml index 2e08921..5f2fb0f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,9 +20,11 @@ members = [ "members/claptest", "members/rest", "members/rest-queued", + "members/fluent", ] default-members = [ ".", + "members/fluent", "members/echargs", "members/revsqrt", "members/claptest", diff --git a/members/fluent/Cargo.toml b/members/fluent/Cargo.toml new file mode 100644 index 0000000..80cdf7f --- /dev/null +++ b/members/fluent/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "fluent" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/members/fluent/src/main.rs b/members/fluent/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/members/fluent/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/members/rest-queued/src/client.rs b/members/rest-queued/src/client.rs index 5e5a959..6d78eee 100644 --- a/members/rest-queued/src/client.rs +++ b/members/rest-queued/src/client.rs @@ -126,3 +126,13 @@ impl FromStr for Token { Ok(Self { inner: s }) } } + +mod test { + use super::*; + #[test] + fn test_new_dbg() { + let c = Client::new_debug(); + assert_eq!(c.token.to_string(), "mytok"); + assert_eq!(c.id.to_string(), "myid"); + } +}