Cargo Features

pythnet-sdk-legacy has no features set by default.

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

Enables anchor-lang ^0.24.2, 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-legacy::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