Skip to content

Commit 2a5c16c

Browse files
committed
Add rust to calendar
1 parent fc708e9 commit 2a5c16c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/components_guide_web/controllers/calendar_controller.ex

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ defmodule ComponentsGuideWeb.CalendarController do
4343
go1_18: %{release: {2022, 3, 15}}
4444
}
4545

46+
rust = %{
47+
rust1_62: %{release: {2022, 6, 30}}
48+
}
49+
4650
browsers = %{
4751
firefox99: %{release: {2022, 4, 5}},
4852
firefox100: %{release: {2022, 5, 3}},
@@ -73,6 +77,7 @@ defmodule ComponentsGuideWeb.CalendarController do
7377
react,
7478
swift,
7579
golang,
80+
rust,
7681
browsers,
7782
postgres,
7883
aws_lambda,
@@ -100,6 +105,7 @@ defmodule ComponentsGuideWeb.CalendarController do
100105
swift5_6: "https://www.swift.org/blog/swift-5.6-released/",
101106
safari15_4: "https://webkit.org/blog/12445/new-webkit-features-in-safari-15-4/",
102107
go1_18: "https://go.dev/doc/go1.18",
108+
rust1_62: "https://blog.rust-lang.org/2022/06/30/Rust-1.62.0.html",
103109
nodejs18: "https://nodejs.org/en/blog/announcements/v18-release-announce/",
104110
jest28: "https://jestjs.io/blog/2022/04/25/jest-28"
105111
}
@@ -269,6 +275,7 @@ defmodule ComponentsGuideWeb.CalendarView do
269275
<<"postgres" <> version>> -> "Postgres #{pretty_version(version)}"
270276
<<"swift" <> version>> -> "Swift #{pretty_version(version)}"
271277
<<"go" <> version>> -> "Go #{pretty_version(version)}"
278+
<<"rust" <> version>> -> "Rust #{pretty_version(version)}"
272279
<<"react_query" <> version>> -> "React Query #{pretty_version(version)}"
273280
<<"react" <> version>> -> "React #{pretty_version(version)}"
274281
<<"jest" <> version>> -> "Jest #{pretty_version(version)}"
@@ -308,6 +315,9 @@ defmodule ComponentsGuideWeb.CalendarView do
308315
<<"go" <> _>> ->
309316
"https://cdn.jsdelivr.net/npm/simple-icons@v6/icons/go.svg"
310317

318+
<<"rust" <> _>> ->
319+
"https://cdn.jsdelivr.net/npm/simple-icons@v7/icons/rust.svg"
320+
311321
<<"react_query" <> _>> ->
312322
"https://cdn.jsdelivr.net/npm/simple-icons@v7/icons/reactquery.svg"
313323

0 commit comments

Comments
 (0)