1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00
Commit Graph

524 Commits

Author SHA1 Message Date
jamesjmeyer210
fd48c8d021
Jamesjmeyer210/sqlx user crud for mysql (#396) 2021-01-03 18:24:22 +00:00
Rob Ede
44f41e5319
add triox to showcase 2020-12-31 11:51:20 +00:00
Simon Strandgaard
7783600918
Improve the "basics" example (#393) 2020-12-18 21:32:36 +00:00
Juan Aguilar
401753dd90
Refactor template yarte example for use bytes implementation (#392) 2020-12-17 21:34:40 +00:00
Yuki Okushi
47d4067498
Replace env_logger's deprecated function (#391) 2020-12-15 17:06:11 +00:00
yjh
89d2e4e3f7
fix typo and update some deps (#390)
* chore: fix typo for `run-in-thread`

* chore: update some deps for examples
2020-12-14 11:30:06 +00:00
Yuki Okushi
5c8749c2a2
Use rust-argon2 instead of less-maintained argonautica (#389) 2020-12-02 12:29:03 +09:00
Aravinth Manivannan
876da8cf70
stateful websockets using actors (#384)
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-11-30 21:41:33 +09:00
Yuki Okushi
c6f9ce071a
Update tiny_template example and deps (#388)
* Update actix crates in tiny_template example

* Run `cargo update`

    Updating crates.io index
    Updating git repository `https://github.com/bcmyers/argonautica`
    Updating actix-cors v0.5.0 -> v0.5.3
    Updating actix-http v2.1.0 -> v2.2.0
    Updating actix-web v3.2.0 -> v3.3.1
    Updating addr2line v0.13.0 -> v0.14.0
    Updating aes v0.4.0 -> v0.6.0
    Updating aes-gcm v0.6.0 -> v0.8.0
    Updating aes-soft v0.4.0 -> v0.6.4
    Updating aesni v0.7.0 -> v0.10.0
    Updating ahash v0.3.8 -> v0.4.6
    Updating aho-corasick v0.7.14 -> v0.7.15
    Updating anyhow v1.0.33 -> v1.0.34
    Removing arc-swap v0.4.7
    Updating arrayvec v0.5.1 -> v0.5.2
    Updating async-executor v1.3.0 -> v1.4.0
    Updating async-global-executor v1.3.0 -> v1.4.3
    Updating async-graphql v2.0.0 -> v2.1.5
    Updating async-graphql-actix-web v2.0.0 -> v2.1.5
    Updating async-graphql-derive v2.0.0 -> v2.1.4
    Updating async-graphql-parser v2.0.0 -> v2.1.2
    Updating async-graphql-value v2.0.0 -> v2.0.5
    Updating async-io v1.1.10 -> v1.3.0
    Updating async-std v1.6.5 -> v1.7.0
    Updating async-task v4.0.2 -> v4.0.3
    Updating async-trait v0.1.41 -> v0.1.42
    Updating awc v2.0.0 -> v2.0.3
    Updating backtrace v0.3.53 -> v0.3.55
    Updating base-x v0.2.6 -> v0.2.8
    Updating blake2b_simd v0.5.10 -> v0.5.11
    Removing block-cipher v0.7.1
    Updating bstr v0.2.13 -> v0.2.14
    Updating cc v1.0.61 -> v1.0.65
      Adding cipher v0.2.5
    Updating combine v4.3.2 -> v4.4.0
      Adding console_error_panic_hook v0.1.6
    Updating const_fn v0.4.2 -> v0.4.3
    Updating cookie v0.14.2 -> v0.14.3
    Updating core-foundation v0.7.0 -> v0.9.1
    Updating core-foundation-sys v0.7.0 -> v0.8.2
    Updating crc32fast v1.2.0 -> v1.2.1
      Adding crossbeam-utils v0.8.1
    Removing crypto-mac v0.8.0
      Adding crypto-mac v0.9.1
      Adding crypto-mac v0.10.0
      Adding ctr v0.6.0
    Updating derive_utils v0.10.0 -> v0.11.0
    Updating encoding_rs v0.8.24 -> v0.8.26
    Updating env_logger v0.8.1 -> v0.8.2
    Updating flate2 v1.0.18 -> v1.0.19
      Adding form_urlencoded v1.0.0
    Updating futures v0.3.6 -> v0.3.8
    Updating futures-executor v0.3.6 -> v0.3.8
    Updating futures-lite v1.11.1 -> v1.11.2
    Updating gimli v0.22.0 -> v0.23.0
    Updating globset v0.4.5 -> v0.4.6
    Updating h2 v0.2.6 -> v0.2.7
    Updating handlebars v3.5.0 -> v3.5.1
    Removing hashbrown v0.8.2
    Updating hkdf v0.9.0 -> v0.10.0
    Removing hmac v0.8.1
      Adding hmac v0.9.0
      Adding hmac v0.10.1
    Updating hyper v0.13.8 -> v0.13.9
    Updating ignore v0.4.16 -> v0.4.17
    Updating instant v0.1.7 -> v0.1.9
    Updating io-enum v0.2.3 -> v0.2.4
    Removing itertools v0.9.0
    Updating libc v0.2.79 -> v0.2.80
    Updating lock_api v0.4.1 -> v0.4.2
    Updating lru v0.6.0 -> v0.6.1
    Updating memchr v2.3.3 -> v2.3.4
    Removing miow v0.2.1
    Removing miow v0.3.5
      Adding miow v0.2.2
      Adding miow v0.3.6
    Updating native-tls v0.2.4 -> v0.2.6
    Updating net2 v0.2.35 -> v0.2.36
    Updating num-integer v0.1.43 -> v0.1.44
    Updating num-traits v0.2.12 -> v0.2.14
    Updating object v0.21.1 -> v0.22.0
    Updating once_cell v1.4.1 -> v1.5.2
    Updating onig v6.1.0 -> v6.1.1
    Updating onig_sys v69.5.1 -> v69.6.0
    Updating parking_lot v0.11.0 -> v0.11.1
    Updating pin-project v1.0.1 -> v1.0.2
    Updating pin-project-internal v1.0.1 -> v1.0.2
    Removing pin-project-lite v0.1.10
      Adding pin-project-lite v0.1.11
      Adding pin-project-lite v0.2.0
    Updating pkg-config v0.3.18 -> v0.3.19
    Updating polling v2.0.1 -> v2.0.2
    Updating polyval v0.4.1 -> v0.4.2
    Updating postgres-protocol v0.5.2 -> v0.5.3
    Updating postgres-types v0.1.2 -> v0.1.3
    Updating ppv-lite86 v0.2.9 -> v0.2.10
    Updating redis-async v0.6.3 -> v0.6.6
    Updating regex v1.4.0 -> v1.4.2
    Updating regex-syntax v0.6.19 -> v0.6.21
    Updating reqwest v0.10.8 -> v0.10.9
    Updating resolv-conf v0.6.3 -> v0.7.0
    Updating ring v0.16.15 -> v0.16.18
    Updating rust-argon2 v0.8.2 -> v0.8.3
    Updating rustc-demangle v0.1.17 -> v0.1.18
      Adding scoped-tls v1.0.0
    Updating security-framework v0.4.4 -> v2.0.0
    Updating security-framework-sys v0.4.3 -> v2.0.0
    Updating serde v1.0.116 -> v1.0.117
    Updating serde_derive v1.0.116 -> v1.0.117
    Updating serde_urlencoded v0.6.1 -> v0.7.0
    Updating sha-1 v0.9.1 -> v0.9.2
    Updating sha2 v0.9.1 -> v0.9.2
    Updating signal-hook-registry v1.2.1 -> v1.2.2
    Updating smallvec v1.4.2 -> v1.5.0
    Updating socket2 v0.3.15 -> v0.3.17
      Adding spin v0.6.0
    Updating standback v0.2.11 -> v0.2.13
    Updating string_cache v0.8.0 -> v0.8.1
    Updating syn v1.0.44 -> v1.0.53
    Updating termcolor v1.1.0 -> v1.1.2
    Updating terminal_size v0.1.13 -> v0.1.15
    Updating thiserror v1.0.21 -> v1.0.22
    Updating thiserror-impl v1.0.21 -> v1.0.22
    Updating time v0.2.22 -> v0.2.23
    Removing tinyvec v0.3.4
    Removing tinyvec v1.0.1
      Adding tinyvec v1.1.0
    Updating tokio v0.2.22 -> v0.2.23
    Updating tokio-macros v0.2.5 -> v0.2.6
    Updating tracing v0.1.21 -> v0.1.22
      Adding tracing-futures v0.2.4
    Updating trust-dns-proto v0.19.5 -> v0.19.6
    Updating trust-dns-resolver v0.19.5 -> v0.19.6
    Updating twox-hash v1.5.0 -> v1.6.0
    Updating unicode-normalization v0.1.13 -> v0.1.16
    Updating unicode-segmentation v1.6.0 -> v1.7.1
    Updating url v2.1.1 -> v2.2.0
    Updating v_escape v0.14.0 -> v0.14.1
      Adding wasm-bindgen-test v0.3.18
      Adding wasm-bindgen-test-macro v0.3.18
    Updating wepoll-sys v3.0.0 -> v3.0.1
2020-11-30 08:54:00 +00:00
Darin Gordon
1d9e218641
Merge pull request #387 from eckyputrady/patch-1
Adds an article on the use of tracing in actix
2020-11-24 05:06:29 -05:00
Ecky Putrady
f9dc8e371e
Adds an article on the use of tracing in actix
Related [Reddit comment](https://www.reddit.com/r/rust/comments/jv6a5j/productiongrade_logging_in_rust_applications/gcib8ml?utm_source=share&utm_medium=web2x&context=3).
2020-11-19 22:58:10 +08:00
cirm
25d34ee4e1
Upgrade websocket-chat-broker example to actix V3 and actix-broker 3.1 (#383)
Co-authored-by: Madis Jullinen <mjullinen@twilio.com>
2020-11-06 04:11:14 +09:00
Taisuke Fukuno
542e6dbcdd
js without jQuery (#342)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2020-10-31 15:55:23 +00:00
Rob Ede
7148fd3d0e
add client certificate example (#380) 2020-10-30 04:22:24 +00:00
Max
9c9db0de55
Fix rustls example to support pkcs8 keys (#347) 2020-10-25 17:12:33 +00:00
Rob Ede
5573e5fd34
update cors example to 0.5 2020-10-19 23:36:53 +01:00
Rob Ede
15197a271c
update auth-server blog post title 2020-10-14 18:04:53 +01:00
Rob Ede
d745c26c89
tweak readme wording 2020-10-14 17:55:02 +01:00
Rob Ede
b0fdb54996
split showcase into live projects and boilerplates 2020-10-14 17:53:51 +01:00
Rob Ede
a2ba4b61f1
add webapp.rs to community examples 2020-10-14 17:41:36 +01:00
Sunli
66d27bbe61
Update async-graphql-demo for async-graphql v2.0.0 (#378) 2020-10-13 16:45:19 +09:00
Mufeed VH
0e9203d319
Added binserve to community examples (#377) 2020-10-12 22:18:14 +01:00
sjmdsky
412e9c7bcb
Fix Path derefs (#375) 2020-10-04 16:51:42 +01:00
Nicolas Mazzon
323fc66f17
Minor typo within example (#374) 2020-10-04 01:31:58 +09:00
Yuki Okushi
cd62e1301f
web-cors: Update actix-cors to 0.4 (#373) 2020-10-03 07:51:05 +09:00
Scott Xu
60c9b68c26
fix version mismatch of "@vue/cli-service" (#372) 2020-10-02 19:41:28 +09:00
kczimm
bcb02965d2
add Cors to get juniper example to work. (#371) 2020-09-27 21:05:17 +01:00
Emmanuel Keller
95319754a1
Removing namespace usage for clarity (#369) 2020-09-20 18:24:14 +01:00
Yuki Okushi
b727e796b9
Correct some items' name to fix the build (#370) 2020-09-20 06:17:56 +09:00
Roman Frołow
a1f2f9514e
async-graphql-demo: move README.md up (#368) 2020-09-17 00:01:41 +01:00
Sunli
e5f64562b1
Add async-graphql example (#278) 2020-09-16 01:12:41 +01:00
Rob Ede
d836b046c9
migrate ci to github actions (#367) 2020-09-16 01:11:49 +01:00
mattn
e3c6a1ec07
Escape HTML (#366) 2020-09-14 17:02:57 +01:00
Rob Ede
49e29a5751
v3 examples (#364) 2020-09-12 16:49:45 +01:00
Mufeed VH
3f2b2708c3
Update the examples list (#365) 2020-09-12 15:01:07 +09:00
Robert Gabriel Jakabosky
20d7af6c27
Improve json_decode_error example. (#363)
* Improve json_decode_error example.

* Remove 'Per-type' JsonConfig.
2020-09-11 08:31:34 +01:00
Hanif Ariffin
adccbe2a13
Add tiny_template as an example. (#358) 2020-09-10 21:34:32 +01:00
Carlos Tuñón
ec6e14aacc
Fix find_user_by_uid's doc comment (#360)
The previous doc comment was referring to the insert_new_user function
2020-09-03 10:01:16 +01:00
Shane Witbeck
3cebb01309
Fix for build failure in diesel example (#355) 2020-08-23 12:15:52 +01:00
Justin Walters
bd2a0bb8fd
fix db error messages (#353)
Make the error messages for failed Database operations specific to their operation.
2020-08-22 04:30:08 +01:00
Jorge Carrasco
5b98f85afd
add example from community about image processing (#352) 2020-08-21 03:17:25 +09:00
Simon Strandgaard
a3faea082b
Corrected mismatch between html start tag and html end tag. (#349) 2020-08-06 05:08:54 +09:00
Rob Ede
4f29102071
Merge pull request #346 from fiji-flo/patch-1
Fix typo in form example html
2020-07-29 14:49:12 +01:00
Florian Merz
5904258215
Fix typo in form example html
Fix doctype in form.html
2020-07-29 15:19:18 +02:00
Yuki Okushi
7d80c4c3d9
Merge pull request #341 from ReTWi/patch-1
Example tip for key.pem to work
2020-07-19 16:36:37 +09:00
Max
7ac0b75fc7
Tip for key to work
For some reason mkcert default generated sertificate doesn't work. Rust panic on `keys.remove(0)`.
2020-07-19 00:57:15 +03:00
Rob Ede
4ada3c9ed1
Merge pull request #333 from fakeshadow/master 2020-06-28 00:05:25 +01:00
fakeshadow
c7660c8f86 fixes according to reviews
Fix typos. Format the comments. Use macro for routes. etc
2020-06-28 06:15:34 +08:00
Bart Willems
399fbee1e4
send the correct exit code when closing the websocket (#335)
Signed-off-by: Bart Willems <bwillems@protonmail.com>
2020-06-25 05:20:27 +01:00
alvardes
5926035d6c
Update udp-echo example to actix 0.9 and tokio 0.2. (#336) 2020-06-25 05:19:22 +01:00