Skip to content

Commit

Permalink
rust: Mention unstable features
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed May 5, 2023
1 parent a1a785c commit 664d205
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/rust/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ Preferences

- Prefer crates in the top 250 according to `lib.rs <https://lib.rs/std>`__
- Read the ``Cargo.toml`` files of OCP projects for inspiration
- Us unstable features instead of related crates. For example:

- `let_chains <https://doc.rust-lang.org/unstable-book/language-features/let-chains.html>`__ instead of `if_chain <https://docs.rs/if_chain/latest/if_chain/>`__
- `once_cell <https://doc.rust-lang.org/std/cell/struct.OnceCell.html>`__ instead of `once_cell <https://docs.rs/once_cell/latest/once_cell/>`__ (crate) or `lazy_static <https://docs.rs/lazy_static/latest/lazy_static/>`__
- `unix_sigpipe <https://doc.rust-lang.org/beta/unstable-book/language-features/unix-sigpipe.html>`__ instead of `calm_io <https://github.com/myrrlyn/calm_io>`__

.. seealso::

Expand Down

0 comments on commit 664d205

Please sign in to comment.