11 stable releases

new 2.1.11 Jan 25, 2025
2.1.10 Jan 19, 2025
2.1.7 Dec 23, 2024
2.1.4 Nov 27, 2024
0.0.1 Jul 17, 2024

#246 in Magic Beans

Download history 1/week @ 2024-10-06 168/week @ 2024-10-13 29/week @ 2024-10-20 2658/week @ 2024-10-27 6013/week @ 2024-11-03 6727/week @ 2024-11-10 8674/week @ 2024-11-17 8618/week @ 2024-11-24 10187/week @ 2024-12-01 9826/week @ 2024-12-08 10470/week @ 2024-12-15 7595/week @ 2024-12-22 6551/week @ 2024-12-29 9954/week @ 2025-01-05 10411/week @ 2025-01-12 11563/week @ 2025-01-19

39,449 downloads per month
Used in 245 crates (27 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
~57K SLoC