Commit graph

45 commits

Author SHA1 Message Date
Luca Palmieri
4484a32d41 Update dependencies 2024-08-29 16:05:12 +02:00
Luca Palmieri
14c95c1c5f Update sqlx to 0.7 2023-09-19 09:19:35 +02:00
Luca Palmieri
fa0d11566e Update outdated dependencies 2023-02-18 22:26:43 +00:00
Luca Palmieri
41e8cd1691 Update Cargo.lock and resolve cargo-audit report 2023-02-18 18:34:38 +00:00
Luca Palmieri
1a4da5b2db Fix CI 2022-10-01 18:39:40 +01:00
Luca Palmieri
83e12c767e Update deps 2022-10-01 14:32:41 +01:00
Luca P
a5efff2637 Update all dependencies 2022-07-05 18:23:27 +01:00
Luca P
b4977a60d2 Update to actix-web v4 2022-02-26 00:03:42 +00:00
Luca Palmieri
4d19a3c00a Update to actix-web beta.19 2022-01-05 18:19:00 +00:00
Luca Palmieri
5ea2c802c2 Update dependencies. 2021-12-28 13:01:07 +01:00
Luca Palmieri
0967a6030c Use secrecy crate. 2021-12-27 14:29:32 +01:00
Luca Palmieri
948b57e52d Run cargo-update 2021-12-27 11:32:26 +01:00
Luca Palmieri
f2ae25d906 Remove tracing-futures. 2021-12-27 11:16:58 +01:00
Luca Palmieri
dc3837df7c Update to latest version of actix-web, tracing-bunyan-formatter and tracing-subscriber. Use tokio macros instead of actix-web's macros. 2021-12-26 16:48:26 +01:00
LukeMathWalker
4915771980 Lower sqlx's log level 2021-09-30 21:17:09 +01:00
Luca Palmieri
330fb4647b Update actix-web and fix clippy lint. 2021-09-11 21:54:51 +02:00
Luca Palmieri
6b2e47e908 Update actix-http. 2021-08-31 23:29:09 +02:00
LukeMathWalker
c9d1488f33 Re-enable offline feature. 2021-07-14 09:18:55 +01:00
LukeMathWalker
203a796cfe Update to latest actix-web 2021-07-11 17:47:34 +01:00
LukeMathWalker
7bdc51cae9 Update to latest actix-web. 2021-05-01 16:17:21 +01:00
LukeMathWalker
1caa47a383 Use once_cell instead of lazy_static for tracing. Use custom sinks instead of filters to disable logging. 2021-05-01 15:51:06 +01:00
LukeMathWalker
d5e09e849b Update to tokio 1. 2021-02-11 09:23:13 +00:00
LukeMathWalker
3145991669 Happy case test. 2021-01-16 23:01:08 +00:00
LukeMathWalker
e71aaeb3ce Remove reqwest from dev dependency list. 2021-01-16 14:37:57 +00:00
LukeMathWalker
72725c5306 Add reqwest as dependency 2021-01-11 08:32:27 +00:00
LukeMathWalker
95061149da Use at most 2.3 of fake to get rand 0.7. 2021-01-03 18:13:45 +00:00
LukeMathWalker
7fdb2151e0 Merge chapter 6, part 1 2021-01-03 18:06:10 +00:00
LukeMathWalker
9dd9aaffd6 Use TryInto. 2020-12-29 10:00:11 +00:00
LukeMathWalker
f6d62fb7a1 Add email validation. 2020-12-28 12:26:05 +00:00
Luca Palmieri
518db87ced Merge 2020-12-11 23:01:55 +00:00
Luca Palmieri
9dd3b0590a Return 400 on bad names. 2020-12-11 15:50:09 +00:00
Luca Palmieri
0eaf310f29 Add SubscriberName constructor. 2020-12-09 17:20:15 +00:00
Luca Palmieri
96c348bb68 Update CI + update sqlx 2020-12-05 19:14:22 +00:00
Luca Palmieri
847bb8152a Update CI + update sqlx 2020-12-05 19:10:01 +00:00
Luca Palmieri
1f0b14c248 Refactor structure to use one root branch per chapter. 2020-12-05 17:19:11 +00:00
Luca Palmieri
bfbbf96c41 Chapter 05 (snapshot) 2020-12-05 17:07:31 +00:00
Luca Palmieri
0a4addc6bb
Chapter 5 (#13)
* Add chapter 5

* Basic deployment stuff

* Fix Dockerfile.

* Add an explicit connection timeout.

* Align port with configuration.

* Use debug for faster feedback loops.

* Add address configuration.

* Provision database.

* Use structured options.

* Add configuration

* Fix typo.

* Customise deserialization logic.

* Change to Require.

* Fix spec.

* Add a few more things to the dockerignore file.

* Update to match chapter.

* Add base configuration.

* Amend configuratiohn.

Co-authored-by: LukeMathWalker <rust@lpalmieri.com>
2020-11-01 21:25:11 +00:00
LukeMathWalker
39b7682fea Updated to the latest actix-web version. 2020-10-18 15:44:04 +01:00
LukeMathWalker
ff99488030 Remove anyhow. 2020-10-18 14:13:27 +01:00
LukeMathWalker
cfb11a798d Remove unused dependencies. 2020-10-18 13:50:32 +01:00
Luca Palmieri
3e553eaf60
Chapter04 (#9)
* Add chapter 4 code.

* Add logger middleware.

* Add env_logger.

* Instrumented.

* Test logs.

* Introduce instrument.

* Refactor handler.

* Use TracingLogger.

* Update.

* Fix linter error.
2020-09-27 17:09:42 +01:00
Luca Palmieri
24dccda00c
Chapter 3 Part 1 - Patches (#4)
* Adjust content encoding.

* Refactor assertion.

* Add one more test case

* Fix assertions.

* Fix route.

* Stricter assertions

* Few fixes.

* Formatting
2020-08-31 02:05:21 +01:00
Luca Palmieri
656ee46c09
Chapter03, Part 1 (#2) 2020-08-25 22:19:53 +01:00
LukeMathWalker
8f86c3bccf Populate Chapter3 (Part0) 2020-08-23 11:53:08 +01:00
LukeMathWalker
7e63ca87bd Scaffolding 2020-08-23 11:34:29 +01:00