1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-22 17:41:11 +00:00
Commit graph

66 commits

Author SHA1 Message Date
Rob Ede
b4faf8820c
chore(actix-web-codegen): prepare release 4.3.0 2024-06-09 00:19:09 +01:00
Rob Ede
ebc43dcf1b
feat: forwards-compatibility for handler visibility inheritance fix (#3391) 2024-06-09 00:10:15 +01:00
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
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
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
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
d22c9f9fb1
update syn to 2 in web codegen (#3081) 2023-07-20 10:49:01 +01:00
Rob Ede
241da6e081
update MSRV to 1.65 (#3059) 2023-07-02 01:09:15 +01: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
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
b59a96d9d7
prepare actix-web-codegen release 4.1.0 2022-09-11 16:42:28 +01:00
Rob Ede
679f61cf37
bump msrv to 1.59 2022-08-27 13:14:16 +01:00
Roland Fredenhagen
8759d79b03
routes macro allowing multiple paths per handler (#2718)
* WIP: basic implementation for `routes` macro

* chore: changelog, docs, tests

* error on missing methods

* Apply suggestions from code review

Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>

* update test stderr expectation

* add additional tests

* fix stderr output

* remove useless ResourceType

this is dead code from back when .to and .to_async were different ways to add a service

Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-07-04 04:31:49 +00:00
Yuki Okushi
6b7196225e
Bump up MSRV to 1.57 (#2789) 2022-06-22 12:08:06 +01:00
Rob Ede
43671ae4aa
release 4.1 group (#2781) 2022-06-12 00:15:43 +09:00
Rob Ede
2253eae2bb
update msrv to 1.56 (#2777)
* update msrv to 1.56

* remove transitive dashmap dependency

closes #2747
2022-06-11 04:03:26 +01:00
JY Choi
8e76a1c775
Allow a path as a guard in route handler macro (#2771)
* Allow a path as a guard in route handler macro

* Update CHANGES.md

Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-06-06 18:53:23 +01:00
Rob Ede
d0c08dbb7d
prepare releases: actix-http 3.0.0 and actix-web 4.0.0 (#2663) 2022-02-25 18:46:35 +00:00
Rob Ede
5469b02638
prepare actix-web-codegen release 0.5.0-rc.2 2022-02-01 00:12:42 +00:00
Rob Ede
5abd1c2c2c
prepare actix-web-codegen release 0.5.0-rc.1 2022-01-04 15:34:16 +00:00
Rob Ede
a87e01f0d1
bump msrv to 1.54 2021-12-29 08:59:15 +00:00
Rob Ede
de20d21703
use dash hyphenation in markdown 2021-12-22 08:21:30 +00:00
Rob Ede
212c6926f9
Revert "use dash hyphenation in changelogs"
This reverts commit 1ea619f2a1.
2021-12-22 08:18:44 +00:00
Rob Ede
1ea619f2a1
use dash hyphenation in changelogs 2021-12-22 08:17:35 +00:00
Rob Ede
fc4e9ff96b
prepare actix-web-codegen release 0.5.0-beta.6 2021-12-11 00:33:31 +00:00
Rob Ede
9abe166d52
actix-web beta 10 releases (#2417) 2021-10-20 22:32:05 +01:00
Rob Ede
591abc37c3
add test runtime macro (#2409) 2021-10-19 17:30:32 +01:00
Rob Ede
ad22cc4e7f
bump msrv to 1.52.1 2021-10-19 01:59:28 +01:00
Rob Ede
6b3ea4fc61
copy original route macro input with compile errors (#2410) 2021-10-14 18:06:31 +01:00
Rob Ede
ba88d3b4bf
prepare actix-web beta.9 releases (#2381)
* prepare actix-router release 0.5.0-beta.2

* prepare actix-web-codegen release 0.5.0-beta.4

* prepare actix-http release 3.0.0-beta.10

* prepare awc release 3.0.0-beta.8

* prepare actix-web release 4.0.0-beta.9

* prepare actix-http-test release 3.0.0-beta.6

* prepare actix-test release 0.1.0-beta.4

* prepare actix-files release 0.6.0-beta.7

* prepare actix-multipart release 0.4.0-beta.6

* prepare actix-web-actors release 4.0.0-beta.7

* fix http test version

* re-add patch

* update router repo url

* fix http test readme version
2021-09-09 01:35:41 +01:00
Rob Ede
5128b1bdfc
bump msrv to 1.51 2021-08-30 23:19:03 +01:00
Aravinth Manivannan
168b2f227d
compile time validation of path (#2350)
* compile time validation of path

* added trybuild err message

* Update Cargo.toml

* add changelog entry

* test more cases of path validation

* fmt

Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-08-30 21:50:40 +01:00
Rob Ede
c260fb1c48
beta.7 releases (#2266) 2021-06-19 11:51:20 +01:00
Rob Ede
b7c406637d
prepare actix-web-codegen release 0.5.0-beta.2 2021-03-09 23:27:38 +00:00
Richard Chien
fc6f974617
Add "name" attribute to route macro (#1934) 2021-03-04 12:38:47 +00:00
Erik Johnston
42711c23d7
Port over doc comments in route macros. (#2022)
Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-02-24 12:26:56 +00:00
Rob Ede
bd26083f33
prepare codegen 0.5.0-beta.1 release 2021-02-10 12:45:46 +00:00
Rob Ede
a1b00b2cd0
change unreleased year 2021-01-02 00:12:18 +00:00
Rob Ede
aa11231ee5
prepare web release 3.1.0 (#1716) 2020-09-30 11:07:35 +01:00
Rob Ede
c53e9468bc
prepare codegen 0.4.0 release (#1702) 2020-09-24 23:54:01 +01:00
Matt Gathu
509b2e6eec
Provide attribute macro for multiple HTTP methods (#1674)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2020-09-16 22:37:41 +01:00
Rob Ede
3fde3be3d8
add trybuild tests to routing codegen (#1677) 2020-09-13 16:31:08 +01:00
Rob Ede
64a2c13cdf
the big three point oh (#1668) 2020-09-11 13:50:10 +01:00