Skip to content

Write a "practical" Rust guide #13669

Closed
Closed
@brson

Description

@brson

I've been convinced recently that Rust is missing crucial documentation of a particular nature: using Rust in practice. I would like to have such a standalone guide, and these are some ideas about what should be in it.

This is a guide that runs through creating an entire Rust project from installation, using the tools, writing code, through deployment, touching on the practical aspects of coding Rust, not glossing over whatever ugly bits are necessary to do real work.

Some of the topics I might expect include:

  • Installation
  • Running rustc
  • lib.rs/bin.rs/mod.rs conventions
  • Evolving a project from a single file to multi-file/mod/directory
  • Picking the correct types for various problems
  • Obtaining and using other crates
  • Setting up a build system (not cargo to start, cargo when it's ready)
  • Working with the compiler to find the correct algorithms. Show typical ways you might concieve the solution incorrectly and how the compiler helps guide you to the correct one. Particularly re: borrowck.
  • Common Rust patterns (like?)
  • Rust CI, other community resources?
  • Using rust-bindgen to create bindings that don't already exist
  • Error handling
  • Practical corner cases and workarounds of various types, e.g.
    • #[path], #[link_args]?

There's some overlap here with the current tutorial, which I think is good, since I want to find new homes for most of the content there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions