Skip to content

Commit da237d4

Browse files
committed
Use define syscall dependency
1 parent b2ae58b commit da237d4

File tree

7 files changed

+14
-130
lines changed

7 files changed

+14
-130
lines changed

Cargo.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ quote = "1.0"
2525
regex = "1"
2626
solana-account-view = { version = "0.0.0", git = "https://github.com/febo/solana-sdk.git", branch = "solana-instruction-view" }
2727
solana-address = { version = "1.0", git = "https://github.com/febo/solana-sdk.git", branch = "solana-instruction-view" }
28+
solana-define-syscall = { version = "3.0.0", git = "https://github.com/febo/solana-sdk.git", branch = "solana-instruction-view" }
2829
solana-instruction-view = { version = "0.0.0", git = "https://github.com/febo/solana-sdk.git", branch = "solana-instruction-view" }
2930
solana-program-error = { version = "3.0.0", git = "https://github.com/febo/solana-sdk.git", branch = "solana-instruction-view" }
3031
syn = "1.0"

sdk/pinocchio/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,8 @@ solana-address = { workspace = true, features = ["syscalls"] }
2727
solana-instruction-view = { workspace = true, features = ["cpi"] }
2828
solana-program-error = { workspace = true }
2929

30+
[target.'cfg(target_os = "solana")'.dependencies]
31+
solana-define-syscall = { workspace = true }
32+
3033
[dev-dependencies]
3134
five8_const = { workspace = true }

sdk/pinocchio/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@
214214
extern crate std;
215215

216216
pub mod entrypoint;
217-
pub mod syscalls;
218217
pub mod sysvars;
219218

220219
#[deprecated(since = "0.7.0", note = "Use the `entrypoint` module instead")]
@@ -227,6 +226,10 @@ pub use solana_account_view as account;
227226
pub use solana_address as address;
228227
pub use solana_address::Address;
229228

229+
// Re-export the `solana_define_syscall` for downstream use.
230+
#[cfg(target_os = "solana")]
231+
pub use solana_define_syscall::definitions as syscalls;
232+
230233
// Re-export the `solana_instruction_view` for downstream use.
231234
pub use solana_instruction_view as instruction;
232235

sdk/pinocchio/src/syscalls.rs

Lines changed: 0 additions & 128 deletions
This file was deleted.

sdk/pinocchio/src/sysvars/clock.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//! Information about the network's clock, ticks, slots, etc.
22
3+
#![allow(deprecated)]
4+
35
use crate::{
46
account::{AccountView, Ref},
57
error::ProgramError,

sdk/pinocchio/src/sysvars/rent.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
//!
33
//! This is required for the rent sysvar implementation.
44
5+
#![allow(deprecated)]
6+
57
use crate::{
68
account::{AccountView, Ref},
79
error::ProgramError,

0 commit comments

Comments
 (0)