♻️ Move ptth_file_server into a bin crate so ptth_server can shed some

dependencies
main
_ 2020-11-29 21:42:03 +00:00
parent d6430e39a9
commit f4b0c64e01
3 changed files with 42 additions and 0 deletions

View File

@ -22,6 +22,7 @@ always_equal = { path = "crates/always_equal" }
ptth_core = { path = "crates/ptth_core" } ptth_core = { path = "crates/ptth_core" }
ptth_relay = { path = "crates/ptth_relay" } ptth_relay = { path = "crates/ptth_relay" }
ptth_server = { path = "crates/ptth_server" } ptth_server = { path = "crates/ptth_server" }
ptth_file_server = { path = "crates/ptth_file_server_bin" }
[workspace] [workspace]

View File

@ -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"