...

/

Solution: Reading a TOML File

Solution: Reading a TOML File

Let's have a look at the solution of reading a TOML file.

We'll cover the following...

Solution

The complete solution to the problem is provided below. Let’s take a look at it.

[package]
name = "combat"
version = "0.1.0"
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
serde = "=1.0.115"
ron = "=0.6.1"
Solution: Reading a TOML file

Explanation

  • Line 1: serde::Deserialize imports the Deserialize procedural ...