forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract transaction-context crate (#3132)
* extract transaction-context crate * inline MAX_PERMITTED_DATA_INCREASE * add doc_auto_cfg * sort features * update lock file * fix feature activation * move serde dep to correct table * lint * add missing #[cfg(not(target_os = "solana"))] * rename feature to debug_signature * only activate "debug_signature" when "full" is activated, as it was before * replace underscore with hyphen
- Loading branch information
1 parent
31e897b
commit 45bdc18
Showing
7 changed files
with
164 additions
and
24 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,48 @@ | ||
[package] | ||
name = "solana-transaction-context" | ||
description = "Solana data shared between program runtime and built-in programs as well as SBF programs." | ||
documentation = "https://docs.rs/solana-transaction-context" | ||
version = { workspace = true } | ||
authors = { workspace = true } | ||
repository = { workspace = true } | ||
homepage = { workspace = true } | ||
license = { workspace = true } | ||
edition = { workspace = true } | ||
|
||
[dependencies] | ||
serde = { workspace = true, optional = true } | ||
serde_derive = { workspace = true, optional = true } | ||
solana-account = { workspace = true } | ||
solana-instruction = { workspace = true, features = ["std"] } | ||
solana-pubkey = { workspace = true } | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
all-features = true | ||
rustdoc-args = ["--cfg=docsrs"] | ||
|
||
[target.'cfg(not(target_os = "solana"))'.dependencies] | ||
bincode = { workspace = true, optional = true } | ||
solana-rent = { workspace = true } | ||
solana-signature = { workspace = true, optional = true } | ||
|
||
[dev-dependencies] | ||
solana-account-info = { workspace = true } | ||
solana-program = { workspace = true } | ||
solana-transaction-context = { path = ".", features = [ | ||
"dev-context-only-utils", | ||
] } | ||
static_assertions = { workspace = true } | ||
|
||
[features] | ||
bincode = ["dep:bincode", "serde", "solana-account/bincode"] | ||
debug-signature = ["dep:solana-signature"] | ||
dev-context-only-utils = [ | ||
"bincode", | ||
"debug-signature", | ||
"solana-account/dev-context-only-utils" | ||
] | ||
serde = ["dep:serde", "dep:serde_derive"] | ||
|
||
[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