diff --git a/Cargo.toml b/Cargo.toml index 1c1eeca..2df9363 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,7 @@ always_equal = { path = "crates/always_equal" } ptth_core = { path = "crates/ptth_core" } ptth_relay = { path = "crates/ptth_relay" } ptth_server = { path = "crates/ptth_server" } +ptth_file_server = { path = "crates/ptth_file_server_bin" } [workspace] diff --git a/crates/ptth_file_server_bin/Cargo.toml b/crates/ptth_file_server_bin/Cargo.toml new file mode 100644 index 0000000..4061612 --- /dev/null +++ b/crates/ptth_file_server_bin/Cargo.toml @@ -0,0 +1,41 @@ +[package] + +name = "ptth_file_server" +version = "0.1.0" +authors = ["Trish"] +edition = "2018" +license = "AGPL-3.0" + +[dependencies] + +aho-corasick = "0.7.14" +anyhow = "1.0.34" +base64 = "0.12.3" +blake3 = "0.3.7" +futures = "0.3.7" +handlebars = "3.5.1" +http = "0.2.1" +hyper = "0.13.8" +lazy_static = "1.4.0" +percent-encoding = "2.1.0" +pulldown-cmark = "0.8.0" +regex = "1.4.1" +reqwest = { version = "0.10.8", features = ["stream"] } +rmp-serde = "0.14.4" +serde = {version = "1.0.117", features = ["derive"]} +structopt = "0.3.20" +thiserror = "1.0.22" +tokio = { version = "0.2.22", features = ["full"] } +tracing = "0.1.21" +tracing-futures = "0.2.4" +tracing-subscriber = "0.2.15" +toml = "0.5.7" + +always_equal = { path = "../always_equal" } +ptth_core = { path = "../ptth_core" } +ptth_server = { path = "../ptth_server" } + +[dev-dependencies] + +maplit = "1.0.2" +rand = "0.6.5" diff --git a/crates/ptth_server/src/bin/ptth_file_server.rs b/crates/ptth_file_server_bin/src/main.rs similarity index 100% rename from crates/ptth_server/src/bin/ptth_file_server.rs rename to crates/ptth_file_server_bin/src/main.rs