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 and rustc_serialize crates 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-jsonhandling --bin && cd nickel-    jsonhandling

Take a look at the following screenshot:

  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 and rustc-serialize crates, which are entered in the dependencies field:
  1. Install the crate in your project using the following command:
      cargo build

This command will install all the dependencies of the nickel and rustc-serialize 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
3.145.40.189