-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pallet without try-runtime
feature flag produces a compiler warning
#5092
Comments
I'm on it. Also we could introduce 2 new attribute macros in
User could use them to have some code discarded/included depending on whether This would allow people not to have to bother adding If I'm correct runtime crate would only need: runtime-benchmarks = [
"frame-support/runtime-benchmarks",
]
try-runtime = [
"frame-support/try-runtime",
] |
…port doesn't have try-runtime. (#5099) Status: Ready for review Fix #5092 Introduce a new macro in frame-support which discard content if `try-runtime` is not enabled. Use this macro inside `frame-support-procedural` to generate code only when `frame-support` is compiled with `try-runtime`. --------- Co-authored-by: Bastian Köcher <git@kchr.de>
…port doesn't have try-runtime. (paritytech#5099) Status: Ready for review Fix paritytech#5092 Introduce a new macro in frame-support which discard content if `try-runtime` is not enabled. Use this macro inside `frame-support-procedural` to generate code only when `frame-support` is compiled with `try-runtime`. --------- Co-authored-by: Bastian Köcher <git@kchr.de>
Ran into this while making some tutorial content:
This is reproducible by taking a pallet without
try-runtime
feature in theCargo.toml
, and then running:The solution can be to add
try-runtime = []
in the features, but probably better this is fixed within the macros and pallet code.The text was updated successfully, but these errors were encountered: