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 set up the 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 --bin nickel-demo && cd nickel-demo
  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
..................Content has been hidden....................

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