Skip to content

Commit

Permalink
fix frozen-abi usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Jul 13, 2024
1 parent db43be3 commit 2d2ab60
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion curves/secp256k1-recover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ edition = { workspace = true }
[dependencies]
borsh = { workspace = true, optional = true }
solana-frozen-abi = { workspace = true, optional = true }
solana-frozen-abi-macro = { workspace = true, optional = true }
thiserror = { workspace = true }

[target.'cfg(target_os = "solana")'.dependencies]
Expand All @@ -32,7 +33,7 @@ rustc_version = { workspace = true }

[features]
borsh = ["dep:borsh"]
frozen-abi = ["dep:solana-frozen-abi"]
frozen-abi = ["dep:solana-frozen-abi", "dep:solana-frozen-abi-macro"]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
2 changes: 1 addition & 1 deletion curves/secp256k1-recover/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub const SECP256K1_SIGNATURE_LENGTH: usize = 64;
pub const SECP256K1_PUBLIC_KEY_LENGTH: usize = 64;

#[repr(transparent)]
#[cfg_attr(feature = "frozen-abi", derive(AbiExample))]
#[cfg_attr(feature = "frozen-abi", derive(solana_frozen_abi_macro::AbiExample))]
#[cfg_attr(
feature = "borsh",
derive(BorshSerialize, BorshDeserialize, BorshSchema),
Expand Down

0 comments on commit 2d2ab60

Please sign in to comment.