]> piware.de Git - learn-rust.git/commit
actix-server: Factorize App creation
authorMartin Pitt <martin@piware.de>
Tue, 13 Dec 2022 13:29:05 +0000 (14:29 +0100)
committerMartin Pitt <martin@piware.de>
Tue, 13 Dec 2022 13:29:05 +0000 (14:29 +0100)
commit121e3e9e83ec2bba3f0ebd22bdb1128c83fd5321
treee0ff19a122802c4e588ddeca7960fb52830e6336
parentd1e80e86e989dc0a425429dbac3b5252bfc232c4
actix-server: Factorize App creation

This is too hard as a proper function, as App is too template-y. Use a
macro instead.

Thanks to Aravinth Manivannan for the suggestion!
actix-server/src/main.rs