Laurențiu Nicola
6d963c059f
Use 2018-style macro imports
2019-08-06 12:51:15 +03:00
Laurențiu Nicola
57ded63cb8
2018 edition idioms
2019-08-06 12:31:30 +03:00
Laurențiu Nicola
b70c8ff622
More dependency updates
2019-08-06 12:25:47 +03:00
Tim Peters
b878ac555e
Implement suggestions
2019-05-28 19:15:13 +02:00
Tim Peters
0224a5dee3
Fix logging in docker.
...
Docker by default doesn't have a TTY. The TermLogger doesn't work in that case.
If the TermLogger can't be initiated, try the SimpleLogger.
See https://github.com/Drakulix/simplelog.rs/issues/30 for a similar case.
2019-05-27 21:10:11 +02:00
Antoine Gersant
69c8c93277
Fixed warnings
2019-04-07 23:28:31 -07:00
Antoine Gersant
c8655a2447
Serve swagger files under /swagger
2019-04-07 23:24:15 -07:00
Antoine Gersant
32a808b962
Ship swagger files and mount them on /swagger
2019-04-07 18:54:53 -07:00
Antoine Gersant
5f91da915e
Added unit test for api/version
2018-11-11 17:49:38 -08:00
Antoine Gersant
a3968e9cb7
Moved server initialization outside of main for easier testing
2018-11-11 12:11:18 -08:00
Antoine Gersant
9dbf8526dc
Renamed rocket_api to api
2018-11-11 11:11:24 -08:00
Antoine Gersant
0cd82a338d
Merge branch 'master' into rocket
2018-11-10 23:44:20 -08:00
Antoine Gersant
37a4521e15
Updated rustfm-scrobble to version with recent reqwest dep and nicer API
2018-11-03 17:50:42 -07:00
Antoine Gersant
03a248a020
Undo edition changes, doest not compile on stable
2018-11-02 19:49:33 -07:00
Antoine Gersant
4b4ab8145c
Rust 2018
2018-10-30 23:49:30 -07:00
Antoine Gersant
59b0dda760
Switch to Rust 2018
2018-10-30 23:37:32 -07:00
Antoine Gersant
cba28e8e2c
Run server on expected port (5050 or custom)
2018-10-28 19:09:32 -07:00
Antoine Gersant
ed2ae20951
Allow auth via HTTP authorization header
2018-10-28 19:04:21 -07:00
Antoine Gersant
75449aa0e0
Dont run server on main thread
2018-10-28 17:42:08 -07:00
Antoine Gersant
0f2556516a
Removed more unused dependencies
2018-10-28 17:33:41 -07:00
Antoine Gersant
a8a98fdd22
Removed iron
2018-10-28 17:27:47 -07:00
Antoine Gersant
36e6016e67
Added endpoint for trigger reindex
2018-10-28 10:19:07 -07:00
Antoine Gersant
0ebcc8a280
Autoformat
2018-10-27 17:00:49 -07:00
Antoine Gersant
e8d1baa652
Implemented endpoints to load welcome page
2018-10-27 16:59:05 -07:00
Antoine Gersant
06c694ab4a
Moved rocket API to a separate file
2018-10-27 15:24:52 -07:00
Antoine Gersant
33ae1c07b2
Ported version endpoint to rocket
2018-10-27 15:19:31 -07:00
Antoine Gersant
43894d71f7
Merge branch 'master' into rocket
2018-10-27 15:05:07 -07:00
Antoine Gersant
5de59d8687
Muted diesel warning
2018-10-27 15:02:15 -07:00
Antoine Gersant
64afc8b6f5
Mount static files
2018-10-27 14:33:28 -07:00
Antoine Gersant
b528b77f77
Rocket Hello World
2018-10-27 14:03:56 -07:00
Antoine Gersant
b72517995d
Clippy suggestions
2018-10-27 10:43:18 -07:00
Antoine Gersant
94d39be08b
Fixed init error on Windows
2018-10-24 15:58:14 -07:00
Antoine Gersant
7814984e02
Log static web files location
2018-10-24 15:26:01 -07:00
Antoine Gersant
3fba584671
Last FM auth API now returns HTML content supplied by caller
2018-10-07 13:55:49 -07:00
Antoine Gersant
cd40ce374e
Fixed build breakage on Linux
2018-10-06 21:50:51 -07:00
Antoine Gersant
fea0b4ef25
Updated diesel dependency
2018-10-06 18:13:44 -07:00
Antoine Gersant
0d05db9b46
Updated dependencies
2018-10-06 17:24:06 -07:00
Antoine Gersant
b71a1f6768
Updated dependencies
2018-10-06 17:03:06 -07:00
Antoine Gersant
ec69a3568f
Fixed clippy lints
2018-10-06 16:29:46 -07:00
Antoine Gersant
0297b351bf
Rustfmt
2018-10-06 15:46:30 -07:00
Antoine Gersant
2092813258
Changed LastFM auth flow from application flow to web-flow
2018-10-06 14:41:25 -07:00
Antoine Gersant
c52ec3d30c
Added support for lastfm scrobbling
...
- Added user preferences
- Added time and location to log entries
2018-03-06 21:36:10 -08:00
Antoine Gersant
da01a3f8c2
Updated winapi dependency
2018-01-06 14:31:48 -08:00
Antoine Gersant
063726f92f
Autoformat
2017-12-12 21:23:39 -08:00
Antoine Gersant
d310c1fab0
Updated diesel dependency
2017-12-10 20:41:52 -08:00
Antoine Gersant
52835c4b97
Index now measures duration of mp3 files
2017-12-10 19:05:19 -08:00
Antoine Gersant
2bd1b8220d
Fixed startup error when terminal isn't available
2017-12-09 16:21:57 -08:00
Antoine Gersant
8e97e7346d
Write PID file when forking (unix only)
2017-12-09 00:35:23 -08:00
Antoine Gersant
24c6fcb4f4
Formatting
2017-11-03 12:29:10 -07:00
João Oliveira
55d6e412d6
update project to use log crate and replace println! calls with equivalent log level macro calls
2017-10-14 04:34:54 +01:00