Expand description
Compile-time feature registry namespace.
This module owns the features namespace: each feature name the runtime
understands is declared here as a pub const &'static str handle, and
KNOWN_FEATURES lists every one of them.
Sibling tables (e.g. the builtin-upgrade registry, the compute-budget gating
table) carry their own compile-time assertions that every feature_name
they reference is a member of KNOWN_FEATURES.
Constants§
- ENABLE_
STAKE_ INFO_ V2 - Enables the
StakeInfoschema version 2 on-disk layout. - KNOWN_
FEATURES - Every feature name the runtime knows about.
- TEST_
AUTHORITY_ PROBE_ 1 - Probe features for the authority-transfer demonstrator. Gate no runtime behaviour; the authority-transfer CLI test enables them to prove that a feature can be activated before/after an authority transfer (and that the old authority can no longer activate features after the transfer).
- TEST_
AUTHORITY_ PROBE_ 2 - See
TEST_AUTHORITY_PROBE_1. - TEST_
GATED_ SYSCALL - Enables the
rlo_test_gatedsystem call at link time. - TEST_
SCHEDULED - Standalone target for the scheduled-activation demonstrator.
- TEST_
SCHEDULED_ CANCEL - Target for the schedule-cancellation demonstrator. Gates no runtime
behaviour; the test
ScheduleEnables it, thenCancels the pending request and confirms it never activates. Registered (like the others) so that, were the cancel to fail and the schedule to fire, the resulting active set would still be a subset ofKNOWN_FEATURESand not halt the node. - TEST_
UPGRADE_ BUILTIN_ V1 - Enables version 1 (the baseline) of the
test-upgradedemonstrator builtin. - TEST_
UPGRADE_ BUILTIN_ V2 - Enables version 2 of the
test-upgradedemonstrator builtin.
Functions§
- const_
str_ eq - Const-evaluable string equality.
- is_
known_ feature - Returns
trueifnameappears inKNOWN_FEATURES.