Skip to content

Commit

Permalink
move inner_instruction.rs to solana-message (#4154)
Browse files Browse the repository at this point in the history
* move inner_instruction.rs to solana-message

* fix path in deprecation message

* fmt

* remove inner-instruction feature
  • Loading branch information
kevinheavey authored Jan 9, 2025
1 parent 639006d commit 74673b8
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 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.

1 change: 1 addition & 0 deletions programs/sbf/Cargo.lock

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

1 change: 1 addition & 0 deletions sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ solana-instruction = { workspace = true }
solana-keypair = { workspace = true, optional = true, features = [
"seed-derivable",
] }
solana-message = { workspace = true, features = ["serde"] }
solana-native-token = { workspace = true }
solana-nonce-account = { workspace = true }
solana-offchain-message = { workspace = true, optional = true, features = ["verify"] }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use {
crate::instruction::CompiledInstruction,
serde::{Deserialize, Serialize},
};
use crate::compiled_instruction::CompiledInstruction;

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[derive(Clone, Debug, PartialEq, Eq)]
#[cfg_attr(
feature = "serde",
derive(serde_derive::Deserialize, serde_derive::Serialize),
serde(rename_all = "camelCase")
)]
pub struct InnerInstruction {
pub instruction: CompiledInstruction,
/// Invocation stack height of this instruction. Instruction stack height
Expand Down
1 change: 1 addition & 0 deletions sdk/message/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
pub mod compiled_instruction;
mod compiled_keys;
pub mod inner_instruction;
pub mod legacy;
#[cfg(feature = "serde")]
use serde_derive::{Deserialize, Serialize};
Expand Down
6 changes: 5 additions & 1 deletion sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ pub mod genesis_config;
#[deprecated(since = "2.2.0", note = "Use `solana-hard-forks` crate instead")]
pub use solana_hard_forks as hard_forks;
pub mod hash;
pub mod inner_instruction;
pub mod log;
pub mod native_loader;
pub mod net;
Expand Down Expand Up @@ -135,6 +134,11 @@ pub use solana_feature_set as feature_set;
pub use solana_fee_structure as fee;
#[deprecated(since = "2.1.0", note = "Use `solana-inflation` crate instead")]
pub use solana_inflation as inflation;
#[deprecated(
since = "2.2.0",
note = "Use `solana_message::inner_instruction` instead"
)]
pub use solana_message::inner_instruction;
#[deprecated(since = "2.2.0", note = "Use `solana-nonce-account` crate instead")]
pub use solana_nonce_account as nonce_account;
#[cfg(feature = "full")]
Expand Down
1 change: 1 addition & 0 deletions svm/examples/Cargo.lock

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

0 comments on commit 74673b8

Please sign in to comment.