Skip to content

Commit

Permalink
rename noise -> scuba, and noisekv or dal -> tank
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliepopescu committed Jan 8, 2024
1 parent a8e7ea0 commit aa4103c
Show file tree
Hide file tree
Showing 45 changed files with 173 additions and 173 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ resolver = "2"

members = [
"client/core",
"client/single-key-dal",
"client/serializable-noise-kv",
"client/single-key-tank",
"client/multi-key-tank",
"apps/cmdline/lightswitch",
"apps/cmdline/period-tracking",
"apps/cmdline/chess",
Expand Down
4 changes: 2 additions & 2 deletions apps/bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ edition = "2021"
tokio = { version = "1.25.0", features = ["macros", "io-std", "io-util", "rt", "rt-multi-thread"] }
serde_json = { version = "1.0.91", features = ["std"] }
serde = { version = "1.0.152", features = ["derive"] }
#noise-core = { path = "../../client/core" }
#scuba-core = { path = "../../client/core" }
#async-trait = "0.1.66"
#parking_lot = { version = "0.12.1", features = ["send_guard"] }
#async-condvar-fair = { version = "1.0.0", features = ["parking_lot_0_12"] }
#bincode = "1.3.3"
#rand = { version = "0.8.5", features = ["small_rng"] }
single-key-dal = { path = "../../client/single-key-dal" }
single-key-tank = { path = "../../client/single-key-tank" }
uuid = "1.3.0"
base64ct = { version = "1.6.0", features = ["alloc"] }
sha2 = "0.10.8"
Expand Down
10 changes: 5 additions & 5 deletions apps/bench/src/fam_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
use chrono::offset::Utc;
use chrono::DateTime;
use serde::{Deserialize, Serialize};
use single_key_dal::client::Error;
use single_key_dal::client::NoiseKVClient;
use single_key_dal::data::NoiseData;
use single_key_tank::client::Error;
use single_key_tank::client::TankClient;
use single_key_tank::data::ScubaData;
use std::collections::HashMap;
use std::fs;
use std::fs::File;
Expand Down Expand Up @@ -74,7 +74,7 @@ impl Post {

#[derive(Clone)]
struct FamilyApp {
client: NoiseKVClient,
client: TankClient,
ts: Arc<Mutex<Vec<(usize, String, Instant)>>>,
run_ctr: Arc<RwLock<Option<usize>>>,
app_filename: String,
Expand All @@ -94,7 +94,7 @@ impl FamilyApp {
dal_recv_filename_d: Option<String>,
app_filename: String,
) -> FamilyApp {
let client = NoiseKVClient::new(
let client = TankClient::new(
None,
None,
false,
Expand Down
10 changes: 5 additions & 5 deletions apps/bench/src/pass_bench.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use passwords::PasswordGenerator;
use serde::{Deserialize, Serialize};
use single_key_dal::client::Error;
use single_key_dal::client::NoiseKVClient;
use single_key_dal::data::NoiseData;
use single_key_tank::client::Error;
use single_key_tank::client::TankClient;
use single_key_tank::data::ScubaData;
use std::collections::HashMap;
use std::fs;
use std::fs::File;
Expand Down Expand Up @@ -73,7 +73,7 @@ impl Config {

#[derive(Clone)]
struct PasswordManager {
client: NoiseKVClient,
client: TankClient,
ts: Arc<Mutex<Vec<(usize, String, Instant)>>>,
run_ctr: Arc<RwLock<Option<usize>>>,
app_filename: String,
Expand All @@ -93,7 +93,7 @@ impl PasswordManager {
dal_recv_filename_d: Option<String>,
app_filename: String,
) -> PasswordManager {
let client = NoiseKVClient::new(
let client = TankClient::new(
None,
None,
false,
Expand Down
2 changes: 1 addition & 1 deletion apps/cmdline/auctioning/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
single-key-dal = { path = "../../../client/single-key-dal" }
single-key-tank = { path = "../../../client/single-key-tank" }
reedline-repl-rs = { version = "1.0.3", features = ["async"] }
tokio = { version = "1.25.0", features = ["macros", "io-std", "io-util", "rt", "rt-multi-thread"] }
uuid = "1.3.0"
Expand Down
10 changes: 5 additions & 5 deletions apps/cmdline/auctioning/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use core::cmp::Ordering;
use reedline_repl_rs::clap::{Arg, ArgAction, ArgMatches, Command};
use reedline_repl_rs::Repl;
use reedline_repl_rs::Result as ReplResult;
use single_key_dal::client::NoiseKVClient;
use single_key_dal::data::NoiseData;
use single_key_tank::client::TankClient;
use single_key_tank::data::ScubaData;
use serde::{Deserialize, Serialize};
use std::sync::Arc;
use uuid::Uuid;
Expand Down Expand Up @@ -177,12 +177,12 @@ impl OpenAuctionClients {

#[derive(Clone)]
struct AuctioningApp {
client: NoiseKVClient,
client: TankClient,
}

impl AuctioningApp {
pub async fn new() -> AuctioningApp {
let client = NoiseKVClient::new(
let client = TankClient::new(
None,
None,
false,
Expand Down Expand Up @@ -794,7 +794,7 @@ async fn main() -> ReplResult<()> {
let mut repl = Repl::new(app.clone())
.with_name("Auctioning App")
.with_version("v0.1.0")
.with_description("Noise online auctioning app")
.with_description("Scuba online auctioning app")
.with_command_async(
Command::new("init_new_device"),
|_, context| Box::pin(AuctioningApp::init_new_device(context)),
Expand Down
2 changes: 1 addition & 1 deletion apps/cmdline/calendar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
single-key-dal = { path = "../../../client/single-key-dal" }
single-key-tank = { path = "../../../client/single-key-tank" }
reedline-repl-rs = { version = "1.0.3", features = ["async"] }
tokio = { version = "1.25.0", features = ["macros", "io-std", "io-util", "rt", "rt-multi-thread"] }
uuid = "1.3.0"
Expand Down
12 changes: 6 additions & 6 deletions apps/cmdline/calendar/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use chrono::naive::{NaiveDate, NaiveDateTime, NaiveTime};
use reedline_repl_rs::clap::{Arg, ArgAction, ArgMatches, Command};
use reedline_repl_rs::Repl;
use reedline_repl_rs::Result as ReplResult;
use single_key_dal::client::NoiseKVClient;
use single_key_dal::data::NoiseData;
use single_key_tank::client::TankClient;
use single_key_tank::data::ScubaData;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::sync::Arc;
Expand Down Expand Up @@ -150,7 +150,7 @@ struct AppointmentInfo {
pending: bool,
// TODO add perm field or resolved writer idkeys if clients make apptmts,
// although data_store doesn't have access to metadata_store, so this would
// constitute a larger change in NoiseKV (the two are separate for locking
// constitute a larger change in Tank (the two are separate for locking
// purposes now)
}

Expand Down Expand Up @@ -204,12 +204,12 @@ impl Availability {

#[derive(Clone)]
struct CalendarApp {
client: NoiseKVClient,
client: TankClient,
}

impl CalendarApp {
pub async fn new() -> CalendarApp {
let client = NoiseKVClient::new(
let client = TankClient::new(
None,
None,
false,
Expand Down Expand Up @@ -978,7 +978,7 @@ async fn main() -> ReplResult<()> {
let mut repl = Repl::new(app.clone())
.with_name("Calendar App")
.with_version("v0.1.0")
.with_description("Noise calendar app")
.with_description("Scuba calendar app")
.with_command_async(Command::new("init_new_device"), |_, context| {
Box::pin(CalendarApp::init_new_device(context))
})
Expand Down
2 changes: 1 addition & 1 deletion apps/cmdline/chess/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
single-key-dal = { path = "../../../client/single-key-dal" }
single-key-tank = { path = "../../../client/single-key-tank" }
reedline-repl-rs = { version = "1.0.3", features = ["async"] }
tokio = { version = "1.25.0", features = ["macros", "io-std", "io-util", "rt", "rt-multi-thread"] }
uuid = "1.3.0"
Expand Down
10 changes: 5 additions & 5 deletions apps/cmdline/chess/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use reedline_repl_rs::clap::{Arg, ArgAction, ArgMatches, Command};
use reedline_repl_rs::Repl;
use reedline_repl_rs::Result as ReplResult;
use single_key_dal::client::NoiseKVClient;
use single_key_dal::data::NoiseData;
use single_key_tank::client::TankClient;
use single_key_tank::data::ScubaData;
use std::sync::Arc;
use uuid::Uuid;

Expand Down Expand Up @@ -186,12 +186,12 @@ impl<'a> Game<'a> {

#[derive(Clone)]
struct ChessApp {
client: NoiseKVClient,
client: TankClient,
}

impl ChessApp {
pub async fn new() -> ChessApp {
let client = NoiseKVClient::new(None, None, false, None, None).await;
let client = TankClient::new(None, None, false, None, None).await;
Self { client }
}

Expand Down Expand Up @@ -499,7 +499,7 @@ async fn main() -> ReplResult<()> {
let mut repl = Repl::new(app.clone())
.with_name("Chess App")
.with_version("v0.1.0")
.with_description("Noise chess app")
.with_description("Scuba chess app")
.with_command(
Command::new("create_new_device"),
ChessApp::create_new_device,
Expand Down
2 changes: 1 addition & 1 deletion apps/cmdline/family-app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
single-key-dal = { path = "../../../client/single-key-dal" }
single-key-tank = { path = "../../../client/single-key-tank" }
reedline-repl-rs = { version = "1.0.3", features = ["async"] }
tokio = { version = "1.25.0", features = ["macros", "io-std", "io-util", "rt", "rt-multi-thread"] }
uuid = "1.3.0"
Expand Down
10 changes: 5 additions & 5 deletions apps/cmdline/family-app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use chrono::DateTime;
use reedline_repl_rs::clap::{Arg, ArgAction, ArgMatches, Command};
use reedline_repl_rs::Repl;
use reedline_repl_rs::Result as ReplResult;
use single_key_dal::client::NoiseKVClient;
use single_key_dal::data::NoiseData;
use single_key_tank::client::TankClient;
use single_key_tank::data::ScubaData;
use serde::{Deserialize, Serialize};
use std::collections::BTreeMap;
use std::sync::Arc;
Expand Down Expand Up @@ -165,12 +165,12 @@ impl Member {

#[derive(Clone)]
struct FamilyApp {
client: NoiseKVClient,
client: TankClient,
}

impl FamilyApp {
pub async fn new() -> FamilyApp {
let client = NoiseKVClient::new(
let client = TankClient::new(
None,
None,
false,
Expand Down Expand Up @@ -1103,7 +1103,7 @@ async fn main() -> ReplResult<()> {
let mut repl = Repl::new(app.clone())
.with_name("Family App")
.with_version("v0.1.0")
.with_description("Noise family app")
.with_description("Scuba family app")
.with_command_async(
Command::new("init_new_device").arg(
Arg::new("enable_loc_polling")
Expand Down
2 changes: 1 addition & 1 deletion apps/cmdline/lightswitch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"

[dependencies]
itertools = "0.10.5"
single-key-dal = { path = "../../../client/single-key-dal" }
single-key-tank = { path = "../../../client/single-key-tank" }
reedline-repl-rs = { version = "1.0.3", features = ["async"] }
tokio = { version = "1.25.0", features = ["macros", "io-std", "io-util", "rt", "rt-multi-thread"] }
uuid = "1.3.0"
10 changes: 5 additions & 5 deletions apps/cmdline/lightswitch/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use reedline_repl_rs::clap::{Arg, ArgAction, ArgMatches, Command};
use reedline_repl_rs::Repl;
use reedline_repl_rs::Result as ReplResult;
use single_key_dal::client::NoiseKVClient;
use single_key_dal::data::NoiseData;
use single_key_tank::client::TankClient;
use single_key_tank::data::ScubaData;
use std::sync::Arc;
use uuid::Uuid;

Expand All @@ -15,12 +15,12 @@ const LB_ON_VAL: &str = r#"{ "is_on": true }"#;

#[derive(Clone)]
struct LightswitchApp {
client: NoiseKVClient,
client: TankClient,
}

impl LightswitchApp {
pub async fn new() -> LightswitchApp {
let client = NoiseKVClient::new(
let client = TankClient::new(
None, None,
//Some("sns26.cs.princeton.edu"),
//Some("8080"),
Expand Down Expand Up @@ -415,7 +415,7 @@ async fn main() -> ReplResult<()> {
let mut repl = Repl::new(app.clone())
.with_name("Lightswitch App")
.with_version("v0.1.0")
.with_description("Noise lightswitch app")
.with_description("Scuba lightswitch app")
.with_command_async(Command::new("create_bulb"), |_, context| {
Box::pin(LightswitchApp::create_bulb(context))
})
Expand Down
2 changes: 1 addition & 1 deletion apps/cmdline/password-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
single-key-dal = { path = "../../../client/single-key-dal" }
single-key-tank = { path = "../../../client/single-key-tank" }
reedline-repl-rs = { version = "1.0.3", features = ["async"] }
tokio = { version = "1.25.0", features = ["macros", "io-std", "io-util", "rt", "rt-multi-thread"] }
uuid = "1.3.0"
Expand Down
10 changes: 5 additions & 5 deletions apps/cmdline/password-manager/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use passwords::PasswordGenerator;
use reedline_repl_rs::clap::{Arg, ArgAction, ArgMatches, Command};
use reedline_repl_rs::Repl;
use reedline_repl_rs::Result as ReplResult;
use single_key_dal::client::NoiseKVClient;
use single_key_dal::data::NoiseData;
use single_key_tank::client::TankClient;
use single_key_tank::data::ScubaData;
use serde::{Deserialize, Serialize};
use std::sync::Arc;
use uuid::Uuid;
Expand Down Expand Up @@ -116,12 +116,12 @@ impl PasswordConfig {

#[derive(Clone)]
struct PasswordManager {
client: NoiseKVClient,
client: TankClient,
}

impl PasswordManager {
pub async fn new() -> PasswordManager {
let client = NoiseKVClient::new(
let client = TankClient::new(
None,
None,
false,
Expand Down Expand Up @@ -762,7 +762,7 @@ async fn main() -> ReplResult<()> {
let mut repl = Repl::new(app.clone())
.with_name("Password Manager App")
.with_version("v0.1.0")
.with_description("Noise password manager app")
.with_description("Scuba password manager app")
.with_command_async(
Command::new("init_new_device"),
|_, context| {
Expand Down
2 changes: 1 addition & 1 deletion apps/cmdline/period-tracking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
single-key-dal = { path = "../../../client/single-key-dal" }
single-key-tank = { path = "../../../client/single-key-tank" }
reedline-repl-rs = { version = "1.0.3", features = ["async"] }
tokio = { version = "1.25.0", features = ["macros", "io-std", "io-util", "rt", "rt-multi-thread"] }
uuid = "1.3.0"
Expand Down
Loading

0 comments on commit aa4103c

Please sign in to comment.