Skip to content

Commit

Permalink
Merge pull request #27 from lykia-rs/feature/net
Browse files Browse the repository at this point in the history
fix: Simpler comm
  • Loading branch information
can-keklik authored Feb 1, 2024
2 parents 97d5dda + 44e4dea commit 43df385
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
resolver = "1"
members = ["server", "liblykia", "cli"]
members = ["server", "cli"]

[profile.release]
opt-level = 3
Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ edition = "2021"

[dependencies]
clap = { version = "4.4.6", features = ["derive"] }
liblykia = { path = "../liblykia" }
lykiadb-server = { path = "../server" }
tokio = { version = "~1.35.1" }
3 changes: 1 addition & 2 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
use std::{
fs::File,
io::{BufReader, Read},
time::Duration,
};

use clap::Parser;
use liblykia::protocol::connection::{CommunicationError, Connection, Message, Request};
use lykiadb_server::net::{CommunicationError, Connection, Message, Request};
use tokio::net::TcpStream;

#[derive(Parser, Debug)]
Expand Down
19 changes: 0 additions & 19 deletions liblykia/Cargo.toml

This file was deleted.

1 change: 0 additions & 1 deletion liblykia/src/lib.rs

This file was deleted.

1 change: 0 additions & 1 deletion liblykia/src/protocol/mod.rs

This file was deleted.

12 changes: 10 additions & 2 deletions server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
liblykia = { path = "../liblykia" }
bytes = "1.5.0"
bson = { version = "2.9.0" }
bumpalo = "3.12.2"
phf = { version = "0.11", default-features = false, features = ["macros"] }
Expand All @@ -14,7 +14,15 @@ serde = { version = "1.0.188", features=["derive", "rc"] }
serde_json = "1.0.105"
ariadne = { features = ["auto-color"] }
assert-json-diff = "2.0.2"
tokio = { version = "~1.35.1" }
tokio = { version = "~1.35.1", features = [
"macros",
"rt",
"rt-multi-thread",
"net",
"io-util",
"time",
"sync",
] }
tokio-stream = { version = "~0.1.6", features = ["net"] }

[dev-dependencies]
Expand Down
1 change: 1 addition & 0 deletions server/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub mod lang;
pub mod runtime;
pub mod util;
pub mod net;
2 changes: 1 addition & 1 deletion server/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::io::Error;

use liblykia::protocol::connection::{CommunicationError, Connection, Message, Request, Response};
use lykiadb_server::net::{CommunicationError, Connection, Message, Request, Response};
use lykiadb_server::runtime::types::RV;
use lykiadb_server::runtime::{Runtime, RuntimeMode};
use tokio::net::{TcpListener, TcpStream};
Expand Down
File renamed without changes.

0 comments on commit 43df385

Please sign in to comment.