1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 09:42:57 +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 }}
env:
CI: 1
CARGO_INCREMENTAL: 0
VCPKGRS_DYNAMIC: 1
steps:

View File

@ -118,6 +118,10 @@ rcgen = "0.8"
tls-openssl = { package = "openssl", version = "0.10.9" }
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]
lto = true
opt-level = 3

View File

@ -80,10 +80,10 @@ pub fn route() -> Route {
macro_rules! method_route {
($method_fn:ident, $method_const:ident) => {
paste::paste! {
#[doc = "Creates a new route with `" $method_const "` method guard."]
#[doc = " Creates a new route with `" $method_const "` method guard."]
///
/// # 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};
///