Getting ready

We will have to install the following nickel crate before we can go ahead and spawn a web server. Follow the given steps to download and setup a nickel crate for your project:

  1. We will require the Rust compiler and any text editor to develop the Rust code snippet.
  2. Create a Rust project using the Cargo tool and enter the newly created project:
      cargo new nickel-errorhandling --bin && cd nickel-errorhandling
  1. Open the Cargo.toml file in your favorite text editor and make the modification shown in the following screenshot. Here, we are using the nickel crate, which is entered in the dependencies field:
  1. Install the crate in your project with the following command:
      cargo build

This command will install all the dependencies of the nickle crate in your Rust project.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.57.172