forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move secp256k1_recover to its own crate (#1656)
* move secp256k1_recover to its own crate * move syscall definition * remove libsecp256k1 dep from solana-program * update sbf lock file * update doc links * fix doc tests and dev deps * update deps in programs/sbf * fmt * add frozen-abi support * update lock files * use borsh directly in solana-secp256k1-recover dev deps * re-export solana_secp256k1_recover with deprecation * re-export in solana-program too * use define_syscall macro now that it's available as a standalone crate * fix macro import * only require solana-define-syscall when target_os = "solana" * re-export sol_secp256k1_recover with deprecation warning * add docs.rs metadata * don't compile doc examples to get around false positive in order-crates-for-publishing.py * fmt * fix AbiExample duplication * Revert "fix AbiExample duplication" This reverts commit 86e8671. * fix frozen-abi usage
- Loading branch information
1 parent
4f228f4
commit d809bd9
Showing
14 changed files
with
104 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[package] | ||
name = "solana-secp256k1-recover" | ||
description = "Solana SECP256K1 Recover" | ||
documentation = "https://docs.rs/solana-secp256k1-recover" | ||
version = { workspace = true } | ||
authors = { workspace = true } | ||
repository = { workspace = true } | ||
homepage = { workspace = true } | ||
license = { workspace = true } | ||
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] | ||
solana-define-syscall = { workspace = true } | ||
|
||
[target.'cfg(not(target_os = "solana"))'.dependencies] | ||
libsecp256k1 = { workspace = true } | ||
|
||
[dev-dependencies] | ||
anyhow = { workspace = true } | ||
borsh = { workspace = true } | ||
|
||
[target.'cfg(not(target_os = "solana"))'.dev-dependencies] | ||
libsecp256k1 = { workspace = true, features = ["hmac"] } | ||
|
||
[build-dependencies] | ||
rustc_version = { workspace = true } | ||
|
||
[features] | ||
borsh = ["dep:borsh"] | ||
frozen-abi = ["dep:solana-frozen-abi", "dep:solana-frozen-abi-macro"] | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../frozen-abi/build.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters