1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-24 00:21:08 +01:00

speed up ci

This commit is contained in:
Rob Ede 2021-09-08 17:42:14 +01:00
parent d8a0f46f26
commit 1383c7d701
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
3 changed files with 8 additions and 2 deletions

View File

@ -24,6 +24,8 @@ jobs:
runs-on: ${{ matrix.target.os }} runs-on: ${{ matrix.target.os }}
env: env:
CI: 1
CARGO_INCREMENTAL: 0
VCPKGRS_DYNAMIC: 1 VCPKGRS_DYNAMIC: 1
steps: steps:

View File

@ -118,6 +118,10 @@ rcgen = "0.8"
tls-openssl = { package = "openssl", version = "0.10.9" } tls-openssl = { package = "openssl", version = "0.10.9" }
tls-rustls = { package = "rustls", version = "0.19.0" } tls-rustls = { package = "rustls", version = "0.19.0" }
[profile.dev]
# Disabling debug info speeds up builds a bunch and we don't rely on it for debugging that much.
debug = 0
[profile.release] [profile.release]
lto = true lto = true
opt-level = 3 opt-level = 3

View File

@ -80,10 +80,10 @@ pub fn route() -> Route {
macro_rules! method_route { macro_rules! method_route {
($method_fn:ident, $method_const:ident) => { ($method_fn:ident, $method_const:ident) => {
paste::paste! { paste::paste! {
#[doc = "Creates a new route with `" $method_const "` method guard."] #[doc = " Creates a new route with `" $method_const "` method guard."]
/// ///
/// # Examples /// # Examples
#[doc = "In this example, one `" $method_const " /{project_id}` route is set up:"] #[doc = " In this example, one `" $method_const " /{project_id}` route is set up:"]
/// ``` /// ```
/// use actix_web::{web, App, HttpResponse}; /// use actix_web::{web, App, HttpResponse};
/// ///