diff --git a/core/rust/utils/Cargo.toml b/core/rust/utils/Cargo.toml index 9def5b045d..37a9279599 100644 --- a/core/rust/utils/Cargo.toml +++ b/core/rust/utils/Cargo.toml @@ -16,10 +16,11 @@ path = "src/lib.rs" [dependencies] arrayref = "0.3.6" solana-program = ">= 1.14.13, < 1.17" -spl-token-2022 = { version = ">= 0.6.0, < 0.9", features = ["no-entrypoint"] } +spl-token-2022 = { version = ">= 0.6.0, < 0.9", features = ["no-entrypoint"], optional = true } [features] -spl-token = [] +spl-token = ["spl-token-2022"] +default = ["spl-token"] [profile.release] overflow-checks = true # Enable integer overflow checks.