If you know the size of the list up-front, use an array. That will be a tiny bit faster at runtime. Example:

let values = [1, 2, 3];

If the size of the list may change during program execution, we need to use a vector:

let values = vec![1, 2, 3];

Also, https://blog.tymek.dev/ notes there is a very practical guide to Rust here: https://google.github.io/comprehensive-rust/.

It is in written form, in contrast to the video course I mentioned earlier. If you'd rather follow a book rather than a video course, it could be a great starting point.

It turns out Google has been developing an operating system that does not depend on Linux [1]:

Fuchsia is a general-purpose open-source operating system created by Google. It is based on the Zircon microkernel written in C++ and is currently under active development.

The main repo is here: https://opensource.google/projects/fuchsia

Project main page: https://fuchsia.dev/

Overview from Wikipedia [2]:

Fuchsia is an open-source capability-based operating system developed by Google. In contrast to Google's Linux-based operating systems such as ChromeOS and Android, Fuchsia is based on a custom kernel named Zircon. It publicly debuted as a self-hosted git repository in August 2016 without any official corporate announcement. After years of development, its official product launch was in 2021 on the first-generation Google Nest Hub, replacing its original Linux-based Cast OS.

Notably, Fuchsia is largely built on Rust [3]:

Fuchsia is an open-source operating system with about 2 million lines of Rust code.

What a Fuchsia desktop looks like [4]:

fuchsia-preview-annotated

Although that OS is said to be independent from Linux, one icon on the taskbar looks a lot like Darktable [5], and one to the left from it - just like the Package Manager GUI from Fedora [6]:

screenshot-silverblue-annotated

Does that mean Fuchsia can install Linux packages?


  1. https://a13xp0p0v.github.io/2022/05/24/pwn-fuchsia.html ↩︎

  2. https://en.wikipedia.org/wiki/Fuchsia_(operating_system) ↩︎

  3. https://rustc-dev-guide.rust-lang.org/tests/ecosystem-test-jobs/fuchsia.html ↩︎

  4. https://www.purepc.pl/fuchsia-os-googlea-najwiekszym-poszkodowanym-po-serii-zwolnien-eksperymentalny-projekt-wypychany-na-peryferia ↩︎

  5. https://www.darktable.org/ ↩︎

  6. https://fedoraproject.org/pl/atomic-desktops/ ↩︎