mirror of
https://github.com/actix/actix-website
synced 2025-02-08 22:36:07 +01:00
Updates Rust Version to be shortcode.
This commit is contained in:
parent
d2a2fc6979
commit
e43f408bce
@ -17,3 +17,5 @@ baseURL = "https://actix.rs"
|
|||||||
[params]
|
[params]
|
||||||
actixVersion = "0.7"
|
actixVersion = "0.7"
|
||||||
actixWebVersion = "1.0"
|
actixWebVersion = "1.0"
|
||||||
|
actixWebMinRustVersion = "1.34"
|
||||||
|
actixMinRustVersion = "1.31"
|
||||||
|
@ -12,9 +12,10 @@ installation. The [official rust
|
|||||||
guide](https://doc.rust-lang.org/book/ch01-01-installation.html)
|
guide](https://doc.rust-lang.org/book/ch01-01-installation.html)
|
||||||
has a wonderful section on getting started.
|
has a wonderful section on getting started.
|
||||||
|
|
||||||
We currently require at least Rust 1.24 so make sure you run `rustup update`
|
We currently require at least Rust {{< rust-version "actix-web" >}} so make sure you
|
||||||
to have the latest and greatest Rust version available. In particular this
|
run `rustup update` to have the latest and greatest Rust version available. In
|
||||||
guide will assume that you actually run Rust 1.26 or later.
|
particular this guide will assume that you actually run Rust
|
||||||
|
{{< rust-version "actix-web" >}} or later.
|
||||||
|
|
||||||
# Installing `actix-web`
|
# Installing `actix-web`
|
||||||
|
|
||||||
|
@ -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
|
well as SSL/TLS. This makes it useful for building small services ready for
|
||||||
distribution.
|
distribution.
|
||||||
|
|
||||||
Most importantly: `actix-web` runs on Rust 1.26 or later and it works with
|
Most importantly: `actix-web` runs on Rust {{< rust-version "actix-web" >}} or later
|
||||||
stable releases.
|
and it works with stable releases.
|
||||||
|
5
layouts/shortcodes/rust-version.html
Normal file
5
layouts/shortcodes/rust-version.html
Normal 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 -}}
|
Loading…
x
Reference in New Issue
Block a user