Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 995d4a0

Browse files
committed
Remove tokio dev-dependency
1 parent c63d854 commit 995d4a0

File tree

32 files changed

+60
-64
lines changed

32 files changed

+60
-64
lines changed

associated-token-account/program/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ spl-token = { version = "3.1", path = "../../token/program", features = ["no-ent
1818
[dev-dependencies]
1919
solana-program-test = "1.5.11"
2020
solana-sdk = "1.5.11"
21-
tokio = { version = "0.3", features = ["macros"]}
2221

2322
[lib]
2423
crate-type = ["cdylib", "lib"]

examples/rust/cross-program-invocation/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ solana-program = "1.5.11"
1818
[dev-dependencies]
1919
solana-program-test = "1.5.11"
2020
solana-sdk = "1.5.11"
21-
tokio = { version = "0.3", features = ["macros"]}
2221

2322
[lib]
2423
crate-type = ["cdylib", "lib"]

examples/rust/cross-program-invocation/tests/functional.rs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
// Mark this test as BPF-only due to current `ProgramTest` limitations when CPIing into the system program
22
#![cfg(feature = "test-bpf")]
33

4-
use solana_program::{
5-
instruction::{AccountMeta, Instruction},
6-
pubkey::Pubkey,
7-
rent::Rent,
8-
system_program,
4+
use {
5+
solana_program::{
6+
instruction::{AccountMeta, Instruction},
7+
pubkey::Pubkey,
8+
rent::Rent,
9+
system_program,
10+
},
11+
solana_program_test::*,
12+
solana_sdk::{account::Account, signature::Signer, transaction::Transaction},
13+
spl_example_cross_program_invocation::processor::{process_instruction, SIZE},
14+
std::str::FromStr,
915
};
10-
use solana_program_test::{processor, ProgramTest};
11-
use solana_sdk::{account::Account, signature::Signer, transaction::Transaction};
12-
use spl_example_cross_program_invocation::processor::{process_instruction, SIZE};
13-
use std::str::FromStr;
1416

1517
#[tokio::test]
1618
async fn test_cross_program_invocation() {

examples/rust/custom-heap/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ solana-program = "1.5.11"
2020
[dev-dependencies]
2121
solana-program-test = "1.5.11"
2222
solana-sdk = "1.5.11"
23-
tokio = { version = "0.3", features = ["macros"]}
2423

2524
[lib]
2625
crate-type = ["cdylib", "lib"]

examples/rust/custom-heap/tests/functional.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
use solana_program::{instruction::Instruction, pubkey::Pubkey};
2-
use solana_program_test::{processor, ProgramTest};
3-
use solana_sdk::{signature::Signer, transaction::Transaction};
4-
use spl_example_custom_heap::processor::process_instruction;
5-
use std::str::FromStr;
1+
use {
2+
solana_program::{instruction::Instruction, pubkey::Pubkey},
3+
solana_program_test::*,
4+
solana_sdk::{signature::Signer, transaction::Transaction},
5+
spl_example_custom_heap::processor::process_instruction,
6+
std::str::FromStr,
7+
};
68

79
#[tokio::test]
810
async fn test_custom_heap() {

examples/rust/logging/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ solana-program = "1.5.11"
1818
[dev-dependencies]
1919
solana-program-test = "1.5.11"
2020
solana-sdk = "1.5.11"
21-
tokio = { version = "0.3", features = ["macros"]}
2221

2322
[lib]
2423
crate-type = ["cdylib", "lib"]

examples/rust/logging/tests/functional.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
use solana_program::{
2-
instruction::{AccountMeta, Instruction},
3-
pubkey::Pubkey,
1+
use {
2+
solana_program::{
3+
instruction::{AccountMeta, Instruction},
4+
pubkey::Pubkey,
5+
},
6+
solana_program_test::*,
7+
solana_sdk::{signature::Signer, transaction::Transaction},
8+
spl_example_logging::processor::process_instruction,
9+
std::str::FromStr,
410
};
5-
use solana_program_test::{processor, ProgramTest};
6-
use solana_sdk::{signature::Signer, transaction::Transaction};
7-
use spl_example_logging::processor::process_instruction;
8-
use std::str::FromStr;
911

1012
#[tokio::test]
1113
async fn test_logging() {

examples/rust/sysvar/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ solana-program = "1.5.11"
1818
[dev-dependencies]
1919
solana-program-test = "1.5.11"
2020
solana-sdk = "1.5.11"
21-
tokio = { version = "0.3", features = ["macros"]}
2221

2322
[lib]
2423
crate-type = ["cdylib", "lib"]

examples/rust/sysvar/tests/functional.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
use solana_program::{
2-
instruction::{AccountMeta, Instruction},
3-
pubkey::Pubkey,
4-
sysvar::{self},
1+
use {
2+
solana_program::{
3+
instruction::{AccountMeta, Instruction},
4+
pubkey::Pubkey,
5+
sysvar::{self},
6+
},
7+
solana_program_test::*,
8+
solana_sdk::{signature::Signer, transaction::Transaction},
9+
spl_example_sysvar::processor::process_instruction,
10+
std::str::FromStr,
511
};
6-
use solana_program_test::{processor, ProgramTest};
7-
use solana_sdk::{signature::Signer, transaction::Transaction};
8-
use spl_example_sysvar::processor::process_instruction;
9-
use std::str::FromStr;
1012

1113
#[tokio::test]
1214
async fn test_sysvar() {

examples/rust/transfer-lamports/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ solana-program = "1.5.11"
1717
[dev-dependencies]
1818
solana-program-test = "1.5.11"
1919
solana-sdk = "1.5.11"
20-
tokio = { version = "0.3", features = ["macros"]}
2120

2221
[lib]
2322
crate-type = ["cdylib", "lib"]

0 commit comments

Comments
 (0)