Skip to content

Commit c65cddd

Browse files
committed
program: rewrite crate tests in mollusk
1 parent 30521a1 commit c65cddd

File tree

8 files changed

+1709
-3475
lines changed

8 files changed

+1709
-3475
lines changed

Cargo.lock

Lines changed: 1418 additions & 2881 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[workspace]
22
resolver = "2"
3-
members = ["clients/rust"]
3+
members = ["clients/rust", "program"]
44

55
[workspace.metadata.cli]
66
solana = "1.18.18"
@@ -10,3 +10,10 @@ solana = "1.18.18"
1010
[workspace.metadata.toolchains]
1111
format = "1.78.0"
1212
lint = "1.78.0"
13+
14+
15+
[workspace.lints.rust.unexpected_cfgs]
16+
level = "warn"
17+
check-cfg = [
18+
'cfg(target_os, values("solana"))',
19+
]

clients/rust/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ thiserror = "^1.0"
2424

2525
[dev-dependencies]
2626
assert_matches = "1.5.0"
27-
solana-program-test = "~1.18"
2827
solana-sdk = "~1.18"

program/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ thiserror = "2.0"
2323

2424
[dev-dependencies]
2525
lazy_static = "1.5.0"
26+
mollusk-svm = "0.0.13"
2627
proptest = "1.5"
2728
serial_test = "3.2.0"
28-
solana-program-test = "2.1.0"
2929
solana-sdk = "2.1.0"
3030

3131
[lib]

program/tests/action.rs

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

0 commit comments

Comments
 (0)