Cargo Features

serum-common has no features set by default.

[dependencies]
serum-common = { version = "0.4.7", features = ["program", "client", "strict", "devnet"] }
program = solana-program

Enables program of solana-sdk and spl-token ^2.0.6

solana-sdk:

"program" feature is a legacy feature retained to support v1.3 and older
programs. New development should not use this feature. Instead use the solana-program crate

Affects serum-common::program

client = anyhow, bincode, bs58, rand, serde_json, solana-client

Enables solana-sdk and spl-token ^2.0.6

Affects serum-common::client

strict
devnet

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

solana-program program?

Enables solana-program

Program only.

anyhow client?

Enables anyhow

Client only.

rand client?

Enables rand ^0.7.3

solana-client client?
serde_json client?
bs58 client?

Enables bs58 ^0.3.1

bincode client?