1
0
mirror of https://github.com/actix/examples synced 2025-06-27 01:27:43 +02:00
Commit Graph

1751 Commits

Author SHA1 Message Date
511ab8ce51 Fix bug in state type
Fix bug in state type 
```rust
let counter = Arc::new(Mutex::new(0));
```
may not be usize

Error before this change:
```
App data is not configured, to configure use App::data()
```
2019-05-25 22:22:43 +08:00
eff911db89 Merge pull request #127 from senden9/patch-1
Fix bug in database script
2019-05-25 02:14:24 -07:00
25f7ce87b4 Fix bug in database script
Fix error that occurs if script is used like in the async_db readme.

Error before this change:
``` bash
$ LANG=C bash db/setup_db.sh
db/setup_db.sh: line 2: db.sql: No such file or directory
Error: cannot open "nyc_centralpark_weather.csv
```
2019-05-24 20:34:08 +02:00
49fc6df226 Merge pull request #121 from zeljic/revert-120-fix-http-full-proxy-streaming
Revert "fix streaming issue in http-full-proxy example"
2019-05-21 14:14:10 -07:00
7491a003c3 Merge pull request #124 from hstefan/protobuf-crate
Adapting protobuf example to use actix_protobuf
2019-05-21 14:13:52 -07:00
fdf061610d Adapting protobuf example to use actix_protobuf 2019-05-21 22:09:27 +02:00
e771c05815 Revert "fix streaming issue in http-full-proxy example" 2019-05-16 00:03:08 +02:00
343e240807 Merge pull request #120 from zeljic/fix-http-full-proxy-streaming
fix streaming issue in http-full-proxy example
2019-05-12 18:52:31 -07:00
e07bbfe01c fix streaming issue in http-full-proxy example 2019-05-12 23:11:58 +02:00
cee9142257 upgrade actix-web 2019-05-12 11:58:26 -07:00
68509a7eaf use absolute path 2019-05-06 18:30:39 +03:00
67bc0144ba fix return home link bug 2019-05-06 18:30:39 +03:00
8de183768c upgrade to beta3 2019-05-04 21:52:24 -07:00
d571ee5abb explicit Error for middlewares 2019-04-25 11:19:21 -07:00
0445615e59 update jsonwebtoken 2019-04-23 11:23:46 -07:00
982ec7bb2f multipart: fix size result calculation 2019-04-22 16:42:04 +03:00
f073d9029f use actix-multipart 0.1.0-beta.1 2019-04-21 17:08:16 -07:00
3058f53bac update simple-auth example 2019-04-21 09:37:29 -07:00
1f2d4ed54f Merge branch 'master' of github.com:actix/examples 2019-04-21 09:36:46 -07:00
52811611d0 update to beta.1 2019-04-21 09:36:31 -07:00
22c9dc39ac Merge pull request #112 from mohanson/jsonrpc
Add jsonrpc example
2019-04-20 11:24:15 -07:00
0faa540b8d Merge branch 'master' of github.com:actix/examples 2019-04-16 15:03:20 -07:00
bc2b17602e fix proxy example 2019-04-16 15:03:11 -07:00
916c48367e Merge pull request #114 from NathanielAJohnson/master
clarify use of sleep in async_db
2019-04-15 11:13:19 -04:00
28d008e97c clarify use of sleep in async_db 2019-04-15 10:02:57 -05:00
15833104ef Update README.md 2019-04-15 14:16:38 +08:00
397b8e22fa Fix an error in method wait 2019-04-15 10:27:25 +08:00
8371d77f7c Add jsonrpc example 2019-04-15 10:05:22 +08:00
09b0188ff9 upgrade to alpha.6 2019-04-14 10:34:41 -07:00
8fb2bf6869 update actix-web version 2019-04-12 13:39:14 -07:00
173d65f285 Merge pull request #110 from Dowwie/master
added unit test example to async_ex2
2019-04-10 15:20:52 -04:00
4be1464249 added unit test example to async_ex2 2019-04-10 14:08:10 -04:00
934d6e46f1 Merge pull request #109 from Dowwie/master
moved readme for async_ex2
2019-04-09 14:35:31 -04:00
3b548c20f4 moved readme for async_ex2 2019-04-09 14:34:55 -04:00
80793ccfbd Merge pull request #108 from Dowwie/master
added async_ex2 to illustrate app-level configuration registration for asynchronous handlers
2019-04-09 14:32:56 -04:00
d29f113ffc added async_ex2 2019-04-09 14:12:07 -04:00
4b62438e05 updated async_ex1, removing old Box example and fixing example 2019-04-09 10:36:37 -04:00
4bec1ede67 Merge pull request #107 from xaxoxa/patch-2
Revert to alpha3 multipart example to avoid panic
2019-04-08 08:40:10 -07:00
6545bbfd3d Revert to alpha3 multipart example to avoid panic
The alpha4 multipart example seems to cause a panic (as mentioned in #736). So this reverts to the alpha3 example, tweaked for the actix-multipart crate.

https://github.com/actix/actix-web/issues/736
2019-04-08 16:33:35 +02:00
764ac94a07 Merge branch 'master' of github.com:actix/examples 2019-04-07 23:39:59 -07:00
815e34f32d upgrade to alpha4 2019-04-07 23:39:45 -07:00
d51fdc72f3 Merge pull request #106 from tizgafa/yarte_update
Update template_yarte to actix_web-1.0.0-alpha.3
2019-04-05 12:34:14 -07:00
13516008f8 Update template_yarte to actix_web-1.0.0-alpha.3 2019-04-05 18:43:47 +02:00
86e0f3e02c upgrade to alpha3 2019-04-04 11:37:14 -07:00
fbb3dd2c40 Merge pull request #104 from henrylee2cn/patch-1
fix(async_ex1): send_json(data) -> send_json(&data)
2019-04-04 11:28:22 -07:00
4f4acbd727 fix: send_json(data) -> send_json(&data) 2019-04-04 14:38:07 +08:00
6dccd567db Merge pull request #102 from xaxoxa/patch-1
Fixes parentheses in template_askama main.rs
2019-04-01 03:45:10 -07:00
b806d2254d Update main.rs
Switch the position of a rogue parenthesis.
2019-04-01 10:47:15 +02:00
32da9a82b0 Merge pull request #100 from botika/master
Update yarte to 0.2
2019-03-31 17:02:36 -07:00
8646a89249 Update yarte to 0.2 2019-04-01 01:23:31 +02:00