4 releases (2 stable)

new 2.1.1 Nov 16, 2024
2.1.0 Oct 29, 2024
0.0.2 Oct 18, 2024
0.0.1 Jul 17, 2024

#548 in Magic Beans

Download history 15/week @ 2024-09-16 14/week @ 2024-09-23 20/week @ 2024-09-30 179/week @ 2024-10-14 19/week @ 2024-10-21 2973/week @ 2024-10-28 6283/week @ 2024-11-04 6614/week @ 2024-11-11

15,900 downloads per month
Used in 177 crates (24 directly)

Apache-2.0

170KB
2.5K SLoC

Collection of all runtime features.

Steps to add a new feature are outlined below. Note that these steps only cover the process of getting a feature into the core Solana code.

  1. Generate a new keypair with solana-keygen new --outfile feature.json --no-passphrase
    • Keypairs should be held by core contributors only. If you're a non-core contributor going through these steps, the PR process will facilitate a keypair holder being picked. That person will generate the keypair, provide pubkey for PR, and ultimately enable the feature.
  2. Add a public module for the feature, specifying keypair pubkey as the id with solana_pubkey::declare_id!() within the module. Additionally, add an entry to FEATURE_NAMES map.
  3. Add desired logic to check for and switch on feature availability.

For more information on how features are picked up, see comments for Feature.

Dependencies

~1–7MB
~58K SLoC