Commit Graph

217 Commits

Author SHA1 Message Date
Rob Ede ec0fe457de
fix: prevent trailing slashes in scope prefixes 2024-06-07 22:54:43 +01:00
Rob Ede ea06965c4b
docs: tweak scope docs 2024-06-07 22:30:43 +01:00
Rob Ede f367105c72
chore: move imports back inside (?) 2024-06-07 21:26:25 +01:00
Rob Ede eca91697f2
test: add negative tests 2024-06-07 21:02:43 +01:00
Rob Ede a58368f871
test: split out scope tests 2024-06-07 19:31:34 +01:00
Rob Ede 47e4950522
Merge branch 'master' into scope_work 2024-06-07 19:04:43 +01:00
Dylan Anthony b2d0196f34
Do not require actix-router default features from actix-web-codegen (#3372)
* fix: Do not require actix-router default features from actix-web-codegen

* docs: update changelog

* test: update trybuild stderr

---------

Co-authored-by: Dylan Anthony <dbanty@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-06-07 14:08:13 +00:00
Rob Ede 7b93780fad
Merge branch 'master' into scope_work 2024-05-14 06:45:59 +01:00
Rob Ede 3c9a930bd1
ci: rely more on justfiles (#3365) 2024-05-14 06:30:58 +01:00
Jon Lim d35801cf12 needed to format code 2024-04-16 22:57:44 -07:00
Jon Lim 89f78190bd sync to master branch by adding test_wrap 2024-04-16 22:55:37 -07:00
Jon Lim 2f4b859dab fix out of date comment for scope macro 2024-04-02 22:39:13 -07:00
Jon Lim bcc0bed4f5 clean up for rust fmt 2024-04-02 22:21:04 -07:00
Jon Lim 4fb51ad70a clean up for rust fmt 2024-04-02 22:19:25 -07:00
Jon Lim 828be28199 clean up code. fix bugs with route and method attributes with parameters 2024-04-02 22:13:13 -07:00
Jon Lim ab73c72596 add tests again. refactor nested code. 2024-03-31 22:37:48 -07:00
Jon Lim c4520d909a work in progress. revised procedural macro to change othe macro call 2024-03-31 20:44:08 -07:00
Jon Lim f8f93d4dab Merge branch 'master' into scope_work
update CHANGES for unreleased scope macro
2024-02-18 10:52:58 -08:00
Rob Ede 3819767fa0
test: fix trybuild tests 2024-02-13 02:14:03 +00:00
Rob Ede 1e08ebabf9
build: bump MSRV to 1.72 2024-02-13 01:24:34 +00:00
Rob Ede 1e2ef6f92f
perf: remove unnecessary allocation when writing http dates (#3261) 2024-02-07 03:47:30 +00:00
Jonathan Lim 4a8b05c837
Merge branch 'master' into scope_work 2024-01-11 13:46:54 -08:00
Rob Ede 33da480709
format project 2024-01-10 04:00:20 +00:00
Jonathan Lim 3ee0dc9329
Update actix-web-codegen/src/lib.rs with comment documentation fix
Co-authored-by: oliver <151407407+kwfn@users.noreply.github.com>
2023-12-09 17:56:28 -08:00
Jonathan Lim 22e51a4287
Merge branch 'master' into scope_work 2023-11-20 07:00:32 -08:00
Rob Ede 989548e36a
chore: remove git from repo URLs 2023-11-10 14:06:38 +00:00
Jon Lim e931a58092 format code with formatter 2023-09-20 19:55:12 -07:00
Jon Lim 3e4c6438f3 add another test for combining and calling 2 scopes 2023-09-16 14:40:53 -07:00
Jon Lim ec4633a911 code formatting cleanup 2023-09-13 22:45:37 -07:00
Jon Lim 6bedb958e4 add some unit tests 2023-09-13 21:57:54 -07:00
Jon Lim db69279557 started some test code 2023-09-10 16:13:12 -07:00
Jon Lim ac82b56ad7 Update scope macro code to work with current HttpServiceFactory 2023-09-10 14:15:41 -07:00
Jon Lim ad90bc926d add scope proc macro 2023-09-03 14:05:21 -07:00
Rob Ede 76f6106f8f
fix: wrap attribute codegen regression when using expression (#3119) 2023-08-29 21:27:36 +01:00
Rob Ede a12d39c93e
chore(actix-web-codegen): prepare release 4.2.1 2023-08-29 01:19:56 +01:00
Rob Ede 384ca0a2cd
chore: remove dates from changelogs 2023-08-29 01:14:33 +01:00
Rob Ede b4fcdffdc3
chore: update msrv to 1.68 (#3094) 2023-08-01 19:33:32 +01:00
Rob Ede 75a97f6b32
chore: remove clippy config file 2023-07-24 03:29:56 +01:00
Rob Ede d22c9f9fb1
update syn to 2 in web codegen (#3081) 2023-07-20 10:49:01 +01:00
Rob Ede 79a38e0628
apply standard formatting 2023-07-17 02:38:12 +01:00
Rob Ede 241da6e081
update MSRV to 1.65 (#3059) 2023-07-02 01:09:15 +01:00
Rob Ede 67efa4a4db
migrate to doc_auto_cfg 2023-02-26 21:55:25 +00:00
Rob Ede d77bcb0b7c
update date in unreleased changelog sections 2023-02-26 21:45:36 +00:00
Rob Ede e35ec28cd2
prepare actix-web release 4.3.1 2023-02-26 03:44:34 +00:00
Rob Ede 35006e9cae
prepare actix-web-codegen release 4.2.0 2023-02-26 03:42:27 +00:00
Rob Ede e2fed91efd
format markdown with prettier 2023-02-26 03:26:51 +00:00
Rob Ede dc08ea044b
clippy 2023-02-13 21:09:28 +00:00
Rob Ede 359d5d5c80
refactor codegen route guards 2023-02-06 17:06:47 +00:00
edgerunnergit 65c0545a7a
added support for creating custom methods with route macro (#2969)
Co-authored-by: Rob Ede <robjtede@icloud.com>
Closes https://github.com/actix/actix-web/issues/2893
2023-02-06 12:40:41 +00:00
Rob Ede 6f0a6bd1bb
address clippy lints
For intrepid commit message readers:
The choice to add allows for the inlined format args lint instead of actually
inlining them is not very clear because our actual real world MSRV is not clear.
We currently claim 1.60 is our MSRV but this is mainly due to dependencies. I'm
fairly sure that we could support < 1.58 if those deps are outdated in a users
lockfile. We'll remove these allows again at some point soon.
2023-01-01 20:56:34 +00:00