
+ Leveraging serde_json to use a config.json This lets us use the same config for both the json-api and the rtc-server without adding dependancies
41 lines
706 B
TOML
41 lines
706 B
TOML
[package]
|
|
name = "json-api"
|
|
version = "0.2.0"
|
|
authors = ["shockrah <alejandros714@protonmail.com>"]
|
|
edition = "2018"
|
|
|
|
[features]
|
|
rtc = []
|
|
|
|
[workspace]
|
|
[dependencies]
|
|
# Networking things
|
|
tokio = { version = "1", features = ["full"] }
|
|
hyper = { version = "0.14", features = ["full"] }
|
|
mysql_async = "0.27"
|
|
tokio-tungstenite = "0.14.0"
|
|
futures = "0.3"
|
|
url = "2.2.1"
|
|
|
|
|
|
# Crypto things
|
|
getrandom = "0.1"
|
|
bcrypt = "0.8"
|
|
base64 = "0.12.1"
|
|
rand = "0.7.3"
|
|
jsonwebtoken = "7.2.0"
|
|
|
|
# Cli args
|
|
clap = "2.32.2"
|
|
|
|
# Serialization
|
|
serde_json = "1.0"
|
|
serde = { version = "1.0.114", features = [ "derive" ] }
|
|
lazy_static = "1.4.0"
|
|
|
|
# Database library/interface
|
|
db = { path = "db" }
|
|
|
|
[dev-dependencies]
|
|
tokio-test = "0.2.1"
|