diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index e9565ea962..0776e3f2cd 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -5,6 +5,10 @@ == DFX +=== fix: make `+build+` field optional for custom canisters + +Prior to 0.11.0, a custom canister's `+build+` field could be left off if `+dfx build+` was never invoked. To aid in deploying prebuilt canisters, this behavior is now formalized; omitting `+build+` is equivalent to `+build: []+`. + === feat: Use `+--locked+` for Rust canisters `+dfx build+`, in Rust canisters, now uses the `+--locked+` flag when building with Cargo. To offset this, `+dfx new --type rust+` now runs `+cargo update+` on the resulting project. diff --git a/src/dfx/src/config/dfinity.rs b/src/dfx/src/config/dfinity.rs index 4da122c0ab..e5e643fff9 100644 --- a/src/dfx/src/config/dfinity.rs +++ b/src/dfx/src/config/dfinity.rs @@ -107,6 +107,7 @@ pub enum CanisterTypeProperties { Custom { wasm: PathBuf, candid: PathBuf, + #[serde(default)] build: SerdeVec, }, Motoko,