Skip to content

Commit

Permalink
Add solana-program-runtime crate (solana-labs#19438)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry authored Aug 27, 2021
1 parent 02b050e commit 2d7f036
Show file tree
Hide file tree
Showing 22 changed files with 1,361 additions and 1,213 deletions.
24 changes: 22 additions & 2 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 core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ num_cpus = "1.13.0"
reqwest = { version = "0.11.4", default-features = false, features = ["blocking", "rustls-tls", "json"] }
serde_json = "1.0.66"
serial_test = "0.5.1"
solana-program-runtime = { path = "../program-runtime", version = "=1.8.0" }
solana-stake-program = { path = "../programs/stake", version = "=1.8.0" }
solana-version = { path = "../version", version = "=1.8.0" }
static_assertions = "1.1.0"
Expand Down
2 changes: 1 addition & 1 deletion core/src/cost_update_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ impl CostUpdateService {
#[cfg(test)]
mod tests {
use super::*;
use solana_runtime::message_processor::ProgramTiming;
use solana_program_runtime::ProgramTiming;
use solana_sdk::pubkey::Pubkey;

#[test]
Expand Down
33 changes: 33 additions & 0 deletions program-runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[package]
name = "solana-program-runtime"
version = "1.8.0"
description = "Solana program runtime"
authors = ["Solana Maintainers <[email protected]>"]
repository = "https://github.com/solana-labs/solana"
license = "Apache-2.0"
homepage = "https://solana.com/"
documentation = "https://docs.rs/solana-program-runtime"
edition = "2018"

[dependencies]
libc = "0.2.101"
libloading = "0.7.0"
log = "0.4.14"
num-derive = { version = "0.3" }
num-traits = { version = "0.2" }
serde = { version = "1.0.129", features = ["derive", "rc"] }
solana-frozen-abi = { path = "../frozen-abi", version = "=1.8.0" }
solana-frozen-abi-macro = { path = "../frozen-abi/macro", version = "=1.8.0" }
solana-logger = { path = "../logger", version = "=1.8.0" }
solana-sdk = { path = "../sdk", version = "=1.8.0" }
thiserror = "1.0"

[lib]
crate-type = ["lib"]
name = "solana_program_runtime"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[build-dependencies]
rustc_version = "0.4"
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
extern crate test;

use log::*;
use solana_runtime::message_processor::{ExecuteDetailsTimings, PreAccount};
use solana_program_runtime::{ExecuteDetailsTimings, PreAccount};
use solana_sdk::{account::AccountSharedData, pubkey, rent::Rent};
use test::Bencher;

Expand Down
1 change: 1 addition & 0 deletions program-runtime/build.rs
Loading

0 comments on commit 2d7f036

Please sign in to comment.