A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal
4
edition = "2018"6
[dependencies]7
toml = "*"8
tide = "*"9
rand = "*"10
surf = "*"11
regex = "*"12
tide-sqlx = "*"13
serde_json = "*"14
tide-compress = "*"15
serde = { version = "*", features = ["derive"] }16
async-std = { version = "*", features = ["attributes", "tokio1"] }17
sqlx = { version = "*", features = ["runtime-async-std-rustls", "postgres"] }7
toml = "0.5.9"8
tide = "0.16.0"9
rand = "0.8.5"10
surf = "2.3.2"11
regex = "1.5.6"12
tide-sqlx = "0.6.1"13
serde_json = "1.0.82"14
tide-compress = "0.10.2"15
serde = { version = "1.0.137", features = ["derive"] }16
tokio = { version = "1.19.2", features = ["full"] }17
async-std = { version = "1.12.0", features = ["attributes", "tokio1"] }18
sqlx = { version = "0.5.13", features = ["runtime-tokio-rustls", "postgres"] }20
[[bin]]21
name = "main"
20
use response::Response;21
use service::Service;23
#[async_std::main]23
#[tokio::main]24
async fn main() -> tide::Result<()> {25
let config = Config::from_file("./config.toml").expect("Unable to parse config!");
3
use sqlx::postgres::PgPool;5
#[async_std::main]5
#[tokio::main]6
async fn main() {7
let database_url = "postgres://typable:De24Si98@192.168.2.3:9748/verbal?sslmode=disable";8
let pool = PgPool::connect(&database_url).await.unwrap();