1
0
mirror of https://github.com/actix/actix-website synced 2025-02-02 04:09:06 +01:00

Updates Rust Version to be shortcode.

This commit is contained in:
Cameron Dershem 2019-06-12 23:53:04 -04:00
parent d2a2fc6979
commit e43f408bce
4 changed files with 13 additions and 5 deletions

View File

@ -17,3 +17,5 @@ baseURL = "https://actix.rs"
[params]
actixVersion = "0.7"
actixWebVersion = "1.0"
actixWebMinRustVersion = "1.34"
actixMinRustVersion = "1.31"

View File

@ -12,9 +12,10 @@ installation. The [official rust
guide](https://doc.rust-lang.org/book/ch01-01-installation.html)
has a wonderful section on getting started.
We currently require at least Rust 1.24 so make sure you run `rustup update`
to have the latest and greatest Rust version available. In particular this
guide will assume that you actually run Rust 1.26 or later.
We currently require at least Rust {{< rust-version "actix-web" >}} so make sure you
run `rustup update` to have the latest and greatest Rust version available. In
particular this guide will assume that you actually run Rust
{{< rust-version "actix-web" >}} or later.
# Installing `actix-web`

View File

@ -23,5 +23,5 @@ server `actix-web` is powerful enough to provide HTTP 1 and HTTP 2 support as
well as SSL/TLS. This makes it useful for building small services ready for
distribution.
Most importantly: `actix-web` runs on Rust 1.26 or later and it works with
stable releases.
Most importantly: `actix-web` runs on Rust {{< rust-version "actix-web" >}} or later
and it works with stable releases.

View File

@ -0,0 +1,5 @@
{{- if eq (.Get 0) "actix" -}}
{{- .Page.Site.Params.actixMinRustVersion -}}
{{- else if eq (.Get 0) "actix-web" -}}
{{- .Page.Site.Params.actixWebMinRustVersion -}}
{{- end -}}