Cargo Features

OpenBook has no features set by default.

[dependencies]
openbook = { version = "0.1.0", features = ["v1", "v2", "cli"] }
v1 = openbook_dex

Affects openbook::v1

v2 = anchor-client, anchor-lang, anchor-spl, async-once-cell, async-trait, fixed, itertools, openbookdex-v2, pyth-sdk-solana, reqwest, solana-account-decoder

Affects openbook::v2

cli = clap, crossterm, ratatui, solana-cli-output, strum, tracing-subscriber, tui-input, unicode-width

Affects cli::Cli, cli::Commands, cli::V1, cli::V2, cli::V1ActionsCommands, cli::V2ActionsCommands, cli::PlaceV2, cli::Place, cli::CancelSettlePlace, cli::CancelSettlePlaceBid, cli::CancelSettlePlaceAsk, cli::Cancel, cli::Settle, cli::Match, cli::Consume, cli::ConsumePermissioned, openbook::cli, openbook::tui

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.

openbook_dex v1?

Enables openbook_dex

v1 deps

clap cli?
solana-cli-output cli?

Enables solana-cli-output =1.17.34

ratatui cli?

Enables ratatui ^0.26.2

tui-input cli?

Enables tui-input ^0.8.0

crossterm cli?

Enables crossterm ^0.27.0

unicode-width cli?

Enables unicode-width ^0.1.12

strum cli?
tracing-subscriber cli?
openbookdex-v2 v2?

Enables openbookdex-v2

v2 deps

reqwest v2?

Enables reqwest ^0.11.27

itertools v2?
anchor-client v2?

Enables anchor-client ^0.29.0

anchor-lang v2?

Enables anchor-lang ^0.29.0

anchor-spl v2?

Enables anchor-spl ^0.29.0

fixed v2?
pyth-sdk-solana v2?
solana-account-decoder v2?

Enables solana-account-decoder =1.17.34

async-once-cell v2?

Enables async-once-cell ^0.4.2

async-trait v2?