Commit graph

47 commits

Author SHA1 Message Date
Luca Palmieri 5d5cb16ab0 Update linker configuration for macs 2023-09-13 09:54:00 +02:00
Jérôme MEVEL ec31ce4578
feat(.github/workflows/general.yml): improving file a bit (mostly adding comments) (#202) 2023-03-28 13:42:00 +01:00
Luca Palmieri b96ca2314a Update dependencies 2023-02-18 16:39:47 +00:00
Luca Palmieri 9ee2c9aad4 Update CI. 2023-02-18 16:39:47 +00:00
Luca P a1eb372cbb Update README. 2022-03-14 11:16:54 +00:00
Luca P f31413cbb1 Add linker configuration 2022-03-11 22:43:32 +00:00
Luca P 0663a09def Update to actix-web v4 2022-02-25 23:56:02 +00:00
Luca Palmieri 8604d98367 Update to actix-web beta.19. 2022-01-05 18:11:06 +00:00
Luca Palmieri c0d1b050d4 Update dependencies. 2021-12-28 12:45:38 +01:00
Luca Palmieri 31f91e0088 Run cargo-update 2021-12-27 11:30:26 +01:00
Luca Palmieri d14ea5c221 Update to 2021 edition. 2021-12-27 10:56:25 +01:00
Luca Palmieri f80816aad6 Remove actix_rt direct usage. 2021-12-26 15:41:40 +01:00
Luca Palmieri 28d438b478 Remove actix_rt dependency. 2021-12-26 15:37:37 +01:00
Luca Palmieri af9bf0115c Update to latest actix-web. 2021-12-26 15:32:41 +01:00
Luca Palmieri 5cb8192d32 Update to latest actix-web. 2021-09-11 20:42:43 +02:00
Luca Palmieri 9b1fb0159a Update actix-http. 2021-08-31 23:31:08 +02:00
LukeMathWalker 79f52686a7 Fix code coverage. 2021-08-01 21:03:11 +01:00
LukeMathWalker d87a690852 Update to actix-web 4.0.0-beta.8 2021-07-11 14:10:43 +01:00
LukeMathWalker bb6cd88cbf Tokio is a dev dependency. 2021-02-11 08:52:18 +00:00
LukeMathWalker 49f2075ac6 Update to latest actix-web beta. 2021-02-11 08:13:24 +00:00
LukeMathWalker a86170188a Update to use latest versions (with tokio 1 support). 2021-02-06 16:15:17 +00:00
LukeMathWalker 7a6a5c90ae Update clippy and fmt jobs. 2021-01-23 17:56:54 +00:00
Luca Palmieri 447fdbfa96 Update CI 2020-12-05 19:17:08 +00:00
Luca Palmieri 2cc7ae2d37 Update README. 2020-12-05 17:25:08 +00:00
Luca Palmieri 004d1c119b Chapter 03 - Part 0 (snapshot). 2020-12-05 16:50:21 +00:00
Luca Palmieri 95e403575a
Use debian as base image. (#16) 2020-11-04 10:09:04 +00:00
Luca Palmieri 918af7a6c4
Fix Dockerfile (#14)
* 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.

* Cache the copied files.

* Explicitly set the SQLX OFFLINE variable.

* Fix Dockerfile.

Co-authored-by: LukeMathWalker <rust@lpalmieri.com>
2020-11-01 23:27:34 +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 d21c36f74f Ensure consistency of variable naming. 2020-10-18 14:35:08 +01:00
LukeMathWalker 1a4ead9b74 Do not change struct name. 2020-10-18 14:22:22 +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
William Gough 8730d59e70
remove duplicate request_id in subscription instrumentation (#10) 2020-10-14 09:03:11 +01:00
Luca Palmieri 17fa92e395
Update README.md 2020-10-14 08:59:08 +01:00
Luca Palmieri 757bdf9330
Update README.md 2020-09-27 17:17:34 +01:00
Luca Palmieri 2fe0da12f3
Update README.md 2020-09-27 17:13:25 +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 3e01540d57 Make sure to match the state of the tests folder at the end of chapter 3 2020-09-21 13:50:01 +01:00
Jes Bak Hansen f4ba849d91
Bind to all interfaces (#5)
* Bind to all interfaces

When running under WSL2, binding only to localhost via the 127.0.0.1 address
only lets you access the server from within WSL2 itself. It does not allow you
to access the server from Windows.

With this change, you can access the web server from the WSL ip address. You can
find your WSL ip address with

```
$ ip a | grep eth0
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    inet 192.168.161.12/20 brd 192.168.175.255 scope global eth0
```

* Add comment about binding to localhost

When running under WSL2, binding only to localhost via the 127.0.0.1 address
only lets you access the server from within WSL2 itself. It does not allow you
to access the server from Windows.

Add a comment explaining how to work around this, by binding to all
interfaces, instead of only to localhost.
2020-09-01 15:54:53 +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 56fb23e058 Fix Cargo.toml file. 2020-08-23 12:41:41 +01:00
LukeMathWalker ba38b61449 Add CI. 2020-08-23 12:00:32 +01:00
LukeMathWalker 4959ed05a9 Fix code fences. 2020-08-23 11:56:30 +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