From e367e0732b93c3008c93949f4eccc269c12a233d Mon Sep 17 00:00:00 2001 From: Dominik Gschwind Date: Thu, 3 Aug 2023 18:30:53 +0200 Subject: [PATCH] Add #[serde(default)] to optional fields --- build/native/cargo_driver/config.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/native/cargo_driver/config.rs b/build/native/cargo_driver/config.rs index a91c0c1e585..5076c1a2deb 100644 --- a/build/native/cargo_driver/config.rs +++ b/build/native/cargo_driver/config.rs @@ -410,15 +410,18 @@ pub struct RemoteComponent { pub version: String, /// An optional git url that contains this remote component. Corresponds to the `git` /// field of the `idf_component.yml`. + #[serde(default)] pub git: Option, /// An optional path to the component in case [`RemoteComponent::git`] is used. /// Corresponds to the `path` field of the `idf_component.yml`. /// /// Note: This should not be used for local components, use /// [`ExtraComponent::component_dirs`] instead. + #[serde(default)] pub path: Option, /// An optional url to a custom component registry. Corresponds to the `service_url` /// field of the `idf_component.yml`. + #[serde(default)] pub service_url: Option, }