Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
Change base dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pwbh committed Nov 1, 2023
1 parent cc398d4 commit 20d035f
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 28 deletions.
28 changes: 7 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["nyx-storage"]
members = ["nyx-storage", "nyx-network"]

[workspace.package]
name = "nyx"
Expand All @@ -10,9 +10,7 @@ description = "Streaming data platform of the 21st century"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[workspace.dependencies]
uuid = { version = "1.3.3", features = ["v4"] }
nanoid = "0.4.0"
clap = { version = "4.3.8", features = ["cargo"] }
serde = { version = "1.0.171", features = ["derive", "rc"] }
serde_json = "1.0.102"
sysinfo = "0.29.8"
async-std = { version = "1.12.0", features = ["attributes"] }
bincode = "1.3.3"
9 changes: 9 additions & 0 deletions nyx-network/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "nyx-network"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
async-std.workspace = true
14 changes: 14 additions & 0 deletions nyx-network/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: usize, right: usize) -> usize {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
1 change: 0 additions & 1 deletion nyx-storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ edition = "2021"

[dependencies]
async-std.workspace = true
serde.workspace = true
2 changes: 1 addition & 1 deletion nyx-storage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ mod tests {

#[async_std::test]
#[cfg_attr(miri, ignore)]
async fn get_returns_err_on_index_out_of_bounds() {
async fn get_returns_none_on_index_out_of_bounds() {
let total_count = 5;

let test_message = b"hello world hello world hello worldrld hello worldrld hello worl";
Expand Down

0 comments on commit 20d035f

Please sign in to comment.