forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdk: Extract instructions-sysvar (#4040)
* sdk: Extract instructions-sysvar #### Problem The instructions sysvar currently lives in the `solana-sysvar` crate, but it doesn't require any of the types from the sysvar crate, making it a great candidate for extraction. #### Summary of changes Since `solana-sysvar` hasn't been officially published yet, we can make a breaking change to it, and totally extract the instructions sysvar from it, then re-export the functionality from `solana-program` directly. * Fix secp256k1 doctests * Sort deps
- Loading branch information
Showing
14 changed files
with
129 additions
and
34 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[package] | ||
name = "solana-instructions-sysvar" | ||
description = "Type for instruction introspection during execution of Solana programs." | ||
documentation = "https://docs.rs/solana-instructions-sysvar" | ||
version = { workspace = true } | ||
authors = { workspace = true } | ||
repository = { workspace = true } | ||
homepage = { workspace = true } | ||
license = { workspace = true } | ||
edition = { workspace = true } | ||
|
||
[dependencies] | ||
qualifier_attr = { workspace = true, optional = true } | ||
solana-account-info = { workspace = true } | ||
solana-instruction = { workspace = true, default-features = false } | ||
solana-program-error = { workspace = true } | ||
solana-pubkey = { workspace = true, default-features = false } | ||
solana-sanitize = { workspace = true } | ||
solana-sdk-ids = { workspace = true } | ||
solana-serialize-utils = { workspace = true } | ||
solana-sysvar-id = { workspace = true } | ||
|
||
[target.'cfg(not(target_os = "solana"))'.dependencies] | ||
bitflags = { workspace = true } | ||
|
||
[features] | ||
dev-context-only-utils = ["dep:qualifier_attr"] | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
all-features = true | ||
rustdoc-args = ["--cfg=docsrs"] | ||
|
||
[lints] | ||
workspace = true |
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
Oops, something went wrong.