polaris/Cargo.toml

75 lines
1.9 KiB
TOML
Raw Normal View History

2016-08-14 08:30:40 +00:00
[package]
2016-08-28 23:42:16 +00:00
name = "polaris"
version = "0.0.0"
2016-08-14 08:30:40 +00:00
authors = ["Antoine Gersant <antoine.gersant@lesforges.org>"]
edition = "2021"
build = "build.rs"
2016-08-14 08:30:40 +00:00
[features]
Replace rocket with actix-web (#116) * Adds actix dependency * Failed attempt at test harness using actix * Fixed test panic * Simplified tests * Run web server in tests * Send json payloads * Static file serving * Default shutdown timeout * Implement version endpoint * Implements #[get("/initial_setup")] * WIP put_settings endpoint * Adds AdminRights extractor * Fixed a bug where AdminRights extractor always failed * Implements collection endpoints * Re-use system runnner between calls * Preserve client headers between API calls (tentative) * Fixed test interferences * Implemented more endpoints * Implemented audio file serving * Fixed sketchy responses * Implements thumbnail endpoint * Login endpoint WIP * Implement login endpoint * Auth support * When using HTTP headers to authenticate, response now includes expected cookies * Tentative fix for server not responding within docker * Adds logging middleware + browse troubleshooting * Tentative fix for path decoding issues * Tentative fix for broken path decoding * Fix routing issues w/ paths * Fixed a bug where auth cookies were sent in every response * More lenient test timeouts * Fixed a bug where recent/random endpoints required trailing slashes * Compilation fix for rocket branch * More useful test matrix * Signed session cookies (#106) * Isolate conflicting dependencies between rocket and actix versions * Removed macOS from test matrix * Glorious test harness simplification * Removed RequestBuilder * Shutdown on ctrl+c * Pin to stable * Drop rocket * Simplify dependencies * Removed stray rocket dependency * Better test matrix * Skip windows build without bundled sqlite * Offload thumbnail creation to a thread pool * Compress responses when possible * Removed unused manage state * Fixed a bug where large playlists could not be saved * Return HTTP 401 for last fm requests without authentication * Web block (#115) * web::block around DB operations * web::block during auth utils hitting DB * Fixed incorrect http response code for missing thumbnail * Removed unecessary unwrap * Eliminated unecessary unwrap
2020-12-15 05:18:44 +00:00
default = ["bundle-sqlite"]
bundle-sqlite = ["libsqlite3-sys"]
ui = ["native-windows-gui", "native-windows-derive"]
2016-08-19 06:29:27 +00:00
[dependencies]
actix-files = { version = "0.6" }
actix-web = { version = "4" }
actix-web-httpauth = { version = "0.8" }
2022-03-21 02:50:14 +00:00
ape = "0.4.0"
2020-12-08 08:14:16 +00:00
base64 = "0.13"
branca = "0.10.1"
2020-12-08 08:14:16 +00:00
crossbeam-channel = "0.5"
2022-08-30 18:47:16 +00:00
diesel_migrations = { version = "2.0", features = ["sqlite"] }
Replace rocket with actix-web (#116) * Adds actix dependency * Failed attempt at test harness using actix * Fixed test panic * Simplified tests * Run web server in tests * Send json payloads * Static file serving * Default shutdown timeout * Implement version endpoint * Implements #[get("/initial_setup")] * WIP put_settings endpoint * Adds AdminRights extractor * Fixed a bug where AdminRights extractor always failed * Implements collection endpoints * Re-use system runnner between calls * Preserve client headers between API calls (tentative) * Fixed test interferences * Implemented more endpoints * Implemented audio file serving * Fixed sketchy responses * Implements thumbnail endpoint * Login endpoint WIP * Implement login endpoint * Auth support * When using HTTP headers to authenticate, response now includes expected cookies * Tentative fix for server not responding within docker * Adds logging middleware + browse troubleshooting * Tentative fix for path decoding issues * Tentative fix for broken path decoding * Fix routing issues w/ paths * Fixed a bug where auth cookies were sent in every response * More lenient test timeouts * Fixed a bug where recent/random endpoints required trailing slashes * Compilation fix for rocket branch * More useful test matrix * Signed session cookies (#106) * Isolate conflicting dependencies between rocket and actix versions * Removed macOS from test matrix * Glorious test harness simplification * Removed RequestBuilder * Shutdown on ctrl+c * Pin to stable * Drop rocket * Simplify dependencies * Removed stray rocket dependency * Better test matrix * Skip windows build without bundled sqlite * Offload thumbnail creation to a thread pool * Compress responses when possible * Removed unused manage state * Fixed a bug where large playlists could not be saved * Return HTTP 401 for last fm requests without authentication * Web block (#115) * web::block around DB operations * web::block during auth utils hitting DB * Fixed incorrect http response code for missing thumbnail * Removed unecessary unwrap * Eliminated unecessary unwrap
2020-12-15 05:18:44 +00:00
futures-util = { version = "0.3" }
2022-03-21 02:50:14 +00:00
getopts = "0.2.21"
http = "0.2.8"
id3 = { git = "https://github.com/polyfloyd/rust-id3.git", rev = "f3b5e3a" } # TODO update after 1.5.0 is released
2022-03-21 02:50:14 +00:00
lewton = "0.10.2"
2022-08-30 18:47:16 +00:00
libsqlite3-sys = { version = "0.25", features = ["bundled", "bundled-windows"], optional = true }
log = "0.4.17"
2022-03-21 02:50:14 +00:00
metaflac = "0.2.5"
mp3-duration = "0.1.10"
mp4ameta = "0.11.0"
num_cpus = "1.14.0"
2020-08-07 10:45:43 +00:00
opus_headers = "0.1.2"
pbkdf2 = "0.11"
percent-encoding = "2.2"
2022-03-21 02:50:14 +00:00
rand = "0.8"
rayon = "1.5"
regex = "1.7.0"
rustfm-scrobble = "1.1.1"
serde = { version = "1.0.147", features = ["derive"] }
serde_derive = "1.0.147"
serde_json = "1.0.87"
simplelog = "0.12.0"
thiserror = "1.0.37"
tokio = "1.21"
2019-08-06 09:25:47 +00:00
toml = "0.5"
2022-03-21 02:50:14 +00:00
ureq = "1.5.5"
url = "2.3"
2020-12-08 07:24:57 +00:00
[dependencies.diesel]
version = "2.0.2"
2020-12-08 07:24:57 +00:00
default_features = false
2022-11-10 09:56:46 +00:00
features = ["libsqlite3-sys", "r2d2", "sqlite"]
2020-12-08 07:24:57 +00:00
2020-12-08 07:06:50 +00:00
[dependencies.image]
version = "0.24.4"
2020-12-08 07:06:50 +00:00
default_features = false
features = ["bmp", "gif", "jpeg", "png"]
2017-05-31 05:45:27 +00:00
[target.'cfg(windows)'.dependencies]
native-windows-gui = {version = "1.0.13", default-features = false, features = ["cursor", "image-decoder", "message-window", "menu", "tray-notification"], optional = true }
native-windows-derive = {version = "1.0.5", optional = true }
2018-01-06 22:31:48 +00:00
2017-05-31 05:45:27 +00:00
[target.'cfg(unix)'.dependencies]
daemonize = "0.4.1"
sd-notify = "0.4.1"
[target.'cfg(windows)'.build-dependencies]
winres = "0.1"
2020-01-17 10:37:33 +00:00
[dev-dependencies]
actix-test = "0.1.0"
headers = "0.3"
fs_extra = "1.2.0"