1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-23 16:21:06 +01:00
actix-web/actix-web-codegen
Jonathan Lim 3db7891303
Scope macro (#3136)
* add scope proc macro

* Update scope macro code to work with current HttpServiceFactory

* started some test code

* add some unit tests

* code formatting cleanup

* add another test for combining and calling 2 scopes

* format code with formatter

* Update actix-web-codegen/src/lib.rs with comment documentation fix

Co-authored-by: oliver <151407407+kwfn@users.noreply.github.com>

* work in progress. revised procedural macro to change othe macro call

* add tests again. refactor nested code.

* clean up code. fix bugs with route and method attributes with parameters

* clean up for rust fmt

* clean up for rust fmt

* fix out of date comment for scope macro

* sync to master branch by adding test_wrap

* needed to format code

* test: split out scope tests

* test: add negative tests

* chore: move imports back inside (?)

* docs: tweak scope docs

* fix: prevent trailing slashes in scope prefixes

* chore: address clippy lints

---------

Co-authored-by: oliver <151407407+kwfn@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-06-07 22:10:48 +00:00
..
src Scope macro (#3136) 2024-06-07 22:10:48 +00:00
tests Scope macro (#3136) 2024-06-07 22:10:48 +00:00
Cargo.toml Do not require actix-router default features from actix-web-codegen (#3372) 2024-06-07 14:08:13 +00:00
CHANGES.md Scope macro (#3136) 2024-06-07 22:10:48 +00:00
LICENSE-APACHE prepare actix-web-codegen release 2019-06-01 17:21:22 +06:00
LICENSE-MIT prepare actix-web-codegen release 2019-06-01 17:21:22 +06:00
README.md build: bump MSRV to 1.72 2024-02-13 01:24:34 +00:00

actix-web-codegen

Routing and runtime macros for Actix Web.

crates.io Documentation Version License
dependency status Download Chat on Discord

Compile Testing

Uses the trybuild crate. All compile fail tests should include a stderr file generated by trybuild. See the workflow section of the trybuild docs for info on how to do this.