Skip to content

Commit

Permalink
system: Use solana-system-interface symbols (#3809)
Browse files Browse the repository at this point in the history
* Add system interface dependency

* Re-export symbols

* Lock file changes

* Patch extra crates needed to unify build

* Use interface crate impl

* Use empty mod

* Relax dependency version
  • Loading branch information
febo authored Dec 2, 2024
1 parent dbbe367 commit 52c0382
Show file tree
Hide file tree
Showing 12 changed files with 86 additions and 1,918 deletions.
17 changes: 17 additions & 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ solana-svm = { path = "svm", version = "=2.2.0" }
solana-svm-conformance = { path = "svm-conformance", version = "=2.2.0" }
solana-svm-rent-collector = { path = "svm-rent-collector", version = "=2.2.0" }
solana-svm-transaction = { path = "svm-transaction", version = "=2.2.0" }
solana-system-interface = "1.0"
solana-system-program = { path = "programs/system", version = "=2.2.0" }
solana-sysvar = { path = "sdk/sysvar", version = "=2.2.0" }
solana-sysvar-id = { path = "sdk/sysvar-id", version = "=2.2.0" }
Expand Down
17 changes: 17 additions & 0 deletions programs/sbf/Cargo.lock

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

5 changes: 5 additions & 0 deletions sdk/cargo-build-sbf/tests/crates/fail/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ solana-program = { path = "../../../../program", version = "=2.2.0" }
[lib]
crate-type = ["cdylib"]

[patch.crates-io]
solana-decode-error = { path = "../../../../decode-error" }
solana-instruction = { path = "../../../../instruction" }
solana-pubkey = { path = "../../../../pubkey" }

[workspace]
5 changes: 5 additions & 0 deletions sdk/cargo-build-sbf/tests/crates/noop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ solana-program = { path = "../../../../program", version = "=2.2.0" }
[lib]
crate-type = ["cdylib"]

[patch.crates-io]
solana-decode-error = { path = "../../../../decode-error" }
solana-instruction = { path = "../../../../instruction" }
solana-pubkey = { path = "../../../../pubkey" }

[workspace]
5 changes: 5 additions & 0 deletions sdk/cargo-build-sbf/tests/crates/package-metadata/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ solana-program = { path = "../../../../program", version = "=2.2.0" }
[lib]
crate-type = ["cdylib"]

[patch.crates-io]
solana-decode-error = { path = "../../../../decode-error" }
solana-instruction = { path = "../../../../instruction" }
solana-pubkey = { path = "../../../../pubkey" }

[workspace]
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ solana-program = { path = "../../../../program", version = "=2.2.0" }
[lib]
crate-type = ["cdylib"]

[patch.crates-io]
solana-decode-error = { path = "../../../../decode-error" }
solana-instruction = { path = "../../../../instruction" }
solana-pubkey = { path = "../../../../pubkey" }

[workspace]

[workspace.metadata.solana]
Expand Down
1 change: 1 addition & 0 deletions sdk/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ solana-short-vec = { workspace = true }
solana-slot-hashes = { workspace = true, features = ["serde", "sysvar"] }
solana-slot-history = { workspace = true, features = ["serde", "sysvar"] }
solana-stable-layout = { workspace = true }
solana-system-interface = { workspace = true, features = ["bincode"] }
solana-sysvar = { workspace = true, features = ["bincode", "bytemuck"] }
solana-sysvar-id = { workspace = true }
thiserror = { workspace = true }
Expand Down
Loading

0 comments on commit 52c0382

Please sign in to comment.