From a483cc97d56a770c4ccf91dfccf790a8c2d0c9fa Mon Sep 17 00:00:00 2001 From: Kim Altintop Date: Wed, 29 Mar 2023 13:20:08 +0200 Subject: core: version each metadata type separately It turns out to be preferable to be able to break one type without affecting the other. So instead of the global SpecVersion, use a separate FmtVersion for each type. For compatibility, keep supporting spec_version fields (until next major bump of the respective types' version). Signed-off-by: Kim Altintop --- src/cmd/id/init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/id/init.rs') diff --git a/src/cmd/id/init.rs b/src/cmd/id/init.rs index a0ed119..35d3bb8 100644 --- a/src/cmd/id/init.rs +++ b/src/cmd/id/init.rs @@ -148,7 +148,7 @@ pub fn init(args: Init) -> cmd::Result { let meta = { let id = metadata::Identity { - spec_version: crate::SPEC_VERSION, + fmt_version: Default::default(), prev: None, keys, threshold, -- cgit v1.2.3