confy requires serde for serialization and deserialization and the documentaion is not clear about this. Also confy will fail in file is missing my_app so Default trait was also added.
Add confy and serde to your cargo.toml
confy = "0.4.0"
serde = { version = "1.0", features = ["derive"] }
Add Default trait to generate a file with default values if missing.
confy requires serde for serialization and deserialization and the documentaion is not clear about this. Also confy will fail in file is missing
my_app
so Default trait was also added.Add confy and serde to your cargo.toml
Add Default trait to generate a file with default values if missing.