mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-27 17:52:56 +01:00
prepare codegen 0.5.0-beta.1 release
This commit is contained in:
parent
991363a104
commit
bd26083f33
@ -3,7 +3,11 @@
|
|||||||
## Unreleased - 2021-xx-xx
|
## Unreleased - 2021-xx-xx
|
||||||
|
|
||||||
|
|
||||||
## 4.0.0-beta.2 - 2021-xx-xx
|
## 4.0.0-beta.3 - 2021-02-10
|
||||||
|
* Update `actix-web-codegen` to `0.5.0-beta.1`.
|
||||||
|
|
||||||
|
|
||||||
|
## 4.0.0-beta.2 - 2021-02-10
|
||||||
### Added
|
### Added
|
||||||
* The method `Either<web::Json<T>, web::Form<T>>::into_inner()` which returns the inner type for
|
* The method `Either<web::Json<T>, web::Form<T>>::into_inner()` which returns the inner type for
|
||||||
whichever variant was created. Also works for `Either<web::Form<T>, web::Json<T>>`. [#1894]
|
whichever variant was created. Also works for `Either<web::Form<T>, web::Json<T>>`. [#1894]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "actix-web"
|
name = "actix-web"
|
||||||
version = "4.0.0-beta.2"
|
version = "4.0.0-beta.3"
|
||||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||||
description = "Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust"
|
description = "Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
@ -82,7 +82,7 @@ actix-service = "2.0.0-beta.4"
|
|||||||
actix-utils = "3.0.0-beta.2"
|
actix-utils = "3.0.0-beta.2"
|
||||||
actix-tls = { version = "3.0.0-beta.3", default-features = false, optional = true }
|
actix-tls = { version = "3.0.0-beta.3", default-features = false, optional = true }
|
||||||
|
|
||||||
actix-web-codegen = "0.4.0"
|
actix-web-codegen = "0.5.0-beta.1"
|
||||||
actix-http = "3.0.0-beta.2"
|
actix-http = "3.0.0-beta.2"
|
||||||
awc = { version = "3.0.0-beta.2", default-features = false }
|
awc = { version = "3.0.0-beta.2", default-features = false }
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
## Unreleased - 2021-xx-xx
|
## Unreleased - 2021-xx-xx
|
||||||
|
|
||||||
|
|
||||||
|
## 0.5.0-beta.1 - 2021-02-10
|
||||||
|
* Use new call signature for `System::new`.
|
||||||
|
|
||||||
|
|
||||||
## 0.4.0 - 2020-09-20
|
## 0.4.0 - 2020-09-20
|
||||||
* Added compile success and failure testing. [#1677]
|
* Added compile success and failure testing. [#1677]
|
||||||
* Add `route` macro for supporting multiple HTTP methods guards. [#1674]
|
* Add `route` macro for supporting multiple HTTP methods guards. [#1674]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "actix-web-codegen"
|
name = "actix-web-codegen"
|
||||||
version = "0.4.0"
|
version = "0.5.0-beta.1"
|
||||||
description = "Actix web proc macros"
|
description = "Routing and runtime macros for Actix Web"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
homepage = "https://actix.rs"
|
homepage = "https://actix.rs"
|
||||||
repository = "https://github.com/actix/actix-web"
|
repository = "https://github.com/actix/actix-web"
|
||||||
|
@ -1,22 +1,24 @@
|
|||||||
# actix-web-codegen
|
# actix-web-codegen
|
||||||
|
|
||||||
> Helper and convenience macros for Actix Web
|
> Routing and runtime macros for Actix Web.
|
||||||
|
|
||||||
[![crates.io](https://meritbadge.herokuapp.com/actix-web-codegen)](https://crates.io/crates/actix-web-codegen)
|
[![crates.io](https://img.shields.io/crates/v/actix-web-codegen?label=latest)](https://crates.io/crates/actix-web-codegen)
|
||||||
[![Documentation](https://docs.rs/actix-web-codegen/badge.svg)](https://docs.rs/actix-web-codegen/0.4.0/actix_web_codegen/)
|
[![Documentation](https://docs.rs/actix-web-codegen/badge.svg?version=0.5.0-beta.1)](https://docs.rs/actix-web-codegen/0.5.0-beta.1)
|
||||||
[![Version](https://img.shields.io/badge/rustc-1.46+-ab6000.svg)](https://blog.rust-lang.org/2020/03/12/Rust-1.46.html)
|
[![Version](https://img.shields.io/badge/rustc-1.46+-ab6000.svg)](https://blog.rust-lang.org/2020/03/12/Rust-1.46.html)
|
||||||
[![Build Status](https://travis-ci.org/actix/actix-web.svg?branch=master)](https://travis-ci.org/actix/actix-web)
|
![License](https://img.shields.io/crates/l/actix-web-codegen.svg)
|
||||||
[![codecov](https://codecov.io/gh/actix/actix-web/branch/master/graph/badge.svg)](https://codecov.io/gh/actix/actix-web)
|
<br />
|
||||||
|
[![dependency status](https://deps.rs/crate/actix-web-codegen/0.5.0-beta.1/status.svg)](https://deps.rs/crate/actix-web-codegen/0.5.0-beta.1)
|
||||||
|
[![Download](https://img.shields.io/crates/d/actix-web-codegen.svg)](https://crates.io/crates/actix-web-codegen)
|
||||||
[![Join the chat at https://gitter.im/actix/actix](https://badges.gitter.im/actix/actix.svg)](https://gitter.im/actix/actix?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
[![Join the chat at https://gitter.im/actix/actix](https://badges.gitter.im/actix/actix.svg)](https://gitter.im/actix/actix?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||||
|
|
||||||
## Documentation & Resources
|
## Documentation & Resources
|
||||||
|
|
||||||
- [API Documentation](https://docs.rs/actix-web-codegen)
|
- [API Documentation](https://docs.rs/actix-web-codegen)
|
||||||
- [Chat on Gitter](https://gitter.im/actix/actix-web)
|
- [Chat on Gitter](https://gitter.im/actix/actix-web)
|
||||||
- Cargo package: [actix-web-codegen](https://crates.io/crates/actix-web-codegen)
|
|
||||||
- Minimum supported Rust version: 1.46 or later.
|
- Minimum supported Rust version: 1.46 or later.
|
||||||
|
|
||||||
## Compile Testing
|
## Compile Testing
|
||||||
|
|
||||||
Uses the [`trybuild`] crate. All compile fail tests should include a stderr file generated by `trybuild`. See the [workflow section](https://github.com/dtolnay/trybuild#workflow) of the trybuild docs for info on how to do this.
|
Uses the [`trybuild`] crate. All compile fail tests should include a stderr file generated by `trybuild`. See the [workflow section](https://github.com/dtolnay/trybuild#workflow) of the trybuild docs for info on how to do this.
|
||||||
|
|
||||||
[`trybuild`]: https://github.com/dtolnay/trybuild
|
[`trybuild`]: https://github.com/dtolnay/trybuild
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
//! Macros for reducing boilerplate code in Actix Web applications.
|
//! Routing and runtime macros for Actix Web.
|
||||||
//!
|
//!
|
||||||
//! ## Actix Web Re-exports
|
//! # Actix Web Re-exports
|
||||||
//! Actix Web re-exports a version of this crate in it's entirety so you usually don't have to
|
//! Actix Web re-exports a version of this crate in it's entirety so you usually don't have to
|
||||||
//! specify a dependency on this crate explicitly. Sometimes, however, updates are made to this
|
//! specify a dependency on this crate explicitly. Sometimes, however, updates are made to this
|
||||||
//! crate before the actix-web dependency is updated. Therefore, code examples here will show
|
//! crate before the actix-web dependency is updated. Therefore, code examples here will show
|
||||||
@ -10,7 +10,7 @@
|
|||||||
//! # Runtime Setup
|
//! # Runtime Setup
|
||||||
//! Used for setting up the actix async runtime. See [macro@main] macro docs.
|
//! Used for setting up the actix async runtime. See [macro@main] macro docs.
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```
|
||||||
//! #[actix_web_codegen::main] // or `#[actix_web::main]` in Actix Web apps
|
//! #[actix_web_codegen::main] // or `#[actix_web::main]` in Actix Web apps
|
||||||
//! async fn main() {
|
//! async fn main() {
|
||||||
//! async { println!("Hello world"); }.await
|
//! async { println!("Hello world"); }.await
|
||||||
@ -23,7 +23,7 @@
|
|||||||
//!
|
//!
|
||||||
//! See docs for: [GET], [POST], [PATCH], [PUT], [DELETE], [HEAD], [CONNECT], [OPTIONS], [TRACE]
|
//! See docs for: [GET], [POST], [PATCH], [PUT], [DELETE], [HEAD], [CONNECT], [OPTIONS], [TRACE]
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```
|
||||||
//! # use actix_web::HttpResponse;
|
//! # use actix_web::HttpResponse;
|
||||||
//! # use actix_web_codegen::get;
|
//! # use actix_web_codegen::get;
|
||||||
//! #[get("/test")]
|
//! #[get("/test")]
|
||||||
@ -36,7 +36,7 @@
|
|||||||
//! Similar to the single method handler macro but takes one or more arguments for the HTTP methods
|
//! Similar to the single method handler macro but takes one or more arguments for the HTTP methods
|
||||||
//! it should respond to. See [macro@route] macro docs.
|
//! it should respond to. See [macro@route] macro docs.
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```
|
||||||
//! # use actix_web::HttpResponse;
|
//! # use actix_web::HttpResponse;
|
||||||
//! # use actix_web_codegen::route;
|
//! # use actix_web_codegen::route;
|
||||||
//! #[route("/test", method="GET", method="HEAD")]
|
//! #[route("/test", method="GET", method="HEAD")]
|
||||||
|
Loading…
Reference in New Issue
Block a user