Cargo Features

pythnet-sdk has no features set by default.

[dependencies]
pythnet-sdk = { version = "2.1.0", features = ["solana-program", "test-utils", "strum", "quickcheck"] }
solana-program

Enables anchor-lang, proc-macro2 =1.0.79, and solana-program

proc-macro2:

pinned to 1.0.79 to compilation errors with newer versions, remove this if it compiles fine without

test-utils

Enables libsecp256k1, rand, serde_wormhole, and wormhole-vaas-serde

Affects pythnet-sdk::test_utils

Features from optional dependencies

strum implicit feature

Enables strum ^0.24.1

strum:

Helpful macros for working with enums and strings

quickcheck implicit feature

Enables quickcheck

quickcheck:

Automatic property based testing with shrinking