···454454* `maturinBuildHook`: use [Maturin](https://github.com/PyO3/maturin)
455455 to build a Python wheel. Similar to `cargoBuildHook`, the optional
456456 variable `buildAndTestSubdir` can be used to build a crate in a
457457- Cargo workspace. Additional maturin flags can be passed through
457457+ Cargo workspace. Additional Maturin flags can be passed through
458458 `maturinBuildFlags`.
459459* `cargoCheckHook`: run tests using Cargo. The build type for checks
460460 can be set using `cargoCheckType`. Features can be specified with
···476476477477The following example outlines how the `tokenizers` Python package is
478478built. Since the Python package is in the `source/bindings/python`
479479-directory of the *tokenizers* project's source archive, we use
479479+directory of the `tokenizers` project's source archive, we use
480480`sourceRoot` to point the tooling to this directory:
481481482482```nix
···758758Actually, the overrides introduced in the previous section are more
759759general. A number of other parameters can be overridden:
760760761761-- The version of rustc used to compile the crate:
761761+- The version of `rustc` used to compile the crate:
762762763763 ```nix
764764 (hello {}).override { rust = pkgs.rust; };
···771771 (hello {}).override { release = false; };
772772 ```
773773774774-- Whether to print the commands sent to rustc when building
774774+- Whether to print the commands sent to `rustc` when building
775775 (equivalent to `--verbose` in cargo:
776776777777 ```nix
···912912913913Fenix is an alternative to `rustup` and can also be used as an overlay.
914914915915-Both Oxalica's overlay and fenix better integrate with nix and cache optimizations.
915915+Both oxalica's overlay and fenix better integrate with nix and cache optimizations.
916916Because of this and ergonomics, either of those community projects
917917-should be preferred to the Mozilla's Rust overlay (nixpkgs-mozilla).
917917+should be preferred to the Mozilla's Rust overlay (`nixpkgs-mozilla`).
918918919919-### How to select a specific rustc and toolchain version {#how-to-select-a-specific-rustc-and-toolchain-version}
919919+### How to select a specific `rustc` and toolchain version {#how-to-select-a-specific-rustc-and-toolchain-version}
920920921921You can consume the oxalica overlay and use it to grab a specific Rust toolchain version.
922922Here is an example `shell.nix` showing how to grab the current stable toolchain: