Skip to content

Commit 57f5040

Browse files
add contractmeta entry for spec shaking v2 feature flag
1 parent 4f26c95 commit 57f5040

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

soroban-sdk/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ const _: () = {
112112
key = "rssdkver",
113113
val = concat!(env!("CARGO_PKG_VERSION"), "#", env!("GIT_REVISION")),
114114
);
115+
116+
// An indicator that the spec shaking v2 experimental feature is in use. Signals to the
117+
// stellar-cli that the .wasm needs to have it's spec shaken using markers in the data section.
118+
#[cfg(feature = "experimental_spec_shaking_v2")]
119+
contractmeta!(key = "rssdkfeat", val = "experimental_spec_shaking_v2");
115120
};
116121

117122
// Re-exports of dependencies used by macros.

0 commit comments

Comments
 (0)