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:
parent
d2a2fc6979
commit
e43f408bce
@ -17,3 +17,5 @@ baseURL = "https://actix.rs"
|
||||
[params]
|
||||
actixVersion = "0.7"
|
||||
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)
|
||||
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`
|
||||
|
||||
|
@ -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.
|
||||
|
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