Skip to content

Commit a7ff06d

Browse files
committed
move light-zero-copy-derive tests to light-zero-copy
1 parent aa2cc79 commit a7ff06d

135 files changed

Lines changed: 154 additions & 29 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ light-bounded-vec = { version = "2.0.0" }
200200
light-poseidon = { version = "0.3.0" }
201201
light-test-utils = { path = "program-tests/utils", version = "1.2.1" }
202202
light-indexed-array = { path = "program-libs/indexed-array", version = "0.1.0" }
203-
light-program-profiler = { git = "https://github.com/Lightprotocol/light-program-profiler", rev = "36a75e14f54dd862bf2f338c97435ffc7e3e8de9", version = "0.1.0" }
203+
light-program-profiler = { version = "0.1.0" }
204204
create-address-program-test = { path = "program-tests/create-address-test-program", version = "1.0.0" }
205205
groth16-solana = { version = "0.2.0" }
206206
bytemuck = { version = "1.19.0" }

anchor-programs/system/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description = "ZK Compression on Solana"
55
repository = "https://github.com/Lightprotocol/light-protocol"
66
license = "Apache-2.0"
77
edition = "2021"
8+
publish = false
89

910
[lib]
1011
crate-type = ["cdylib", "lib"]

forester-utils/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edition = "2021"
55
license = "Apache-2.0"
66
repository = "https://github.com/lightprotocol/light-protocol"
77
description = "Utility library for Light's Forester node implementation"
8+
publish = false
89

910
[features]
1011
default = ["v2"]

forester/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "forester"
33
version = "1.1.0"
44
edition = "2021"
5+
publish = false
56

67
[dependencies]
78
anchor-lang = { workspace = true }

program-libs/zero-copy-derive/Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,4 @@ syn = { version = "2.0", features = ["full", "extra-traits"] }
1919
lazy_static = "1.4"
2020

2121
[dev-dependencies]
22-
trybuild = "1.0"
23-
rand = "0.8"
24-
borsh = { workspace = true }
25-
light-zero-copy = { workspace = true, features = ["std", "derive"] }
26-
zerocopy = { workspace = true, features = ["derive"] }
22+
rand = { workspace = true }

program-libs/zero-copy/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ light-zero-copy-derive = { workspace = true, optional = true }
2424
rand = { workspace = true }
2525
zerocopy = { workspace = true, features = ["derive"] }
2626
borsh = { workspace = true }
27+
trybuild = "1.0"
28+
light-zero-copy-derive = { workspace = true }

program-libs/zero-copy-derive/tests/instruction_data.rs renamed to program-libs/zero-copy/tests/derive/instruction_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout, Ref, Unaligned};
1515
Copy,
1616
PartialEq,
1717
Clone,
18+
Default,
1819
Immutable,
1920
FromBytes,
2021
IntoBytes,
2122
KnownLayout,
2223
BorshDeserialize,
2324
BorshSerialize,
24-
Default,
2525
Unaligned,
2626
)]
2727
#[repr(C)]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#![cfg(feature = "mut")]
2+
3+
pub mod instruction_data;
4+
mod random;
5+
mod ui;

program-libs/zero-copy-derive/tests/random.rs renamed to program-libs/zero-copy/tests/derive/random.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use rand::{
99
Rng,
1010
};
1111

12-
mod instruction_data;
12+
use super::instruction_data;
1313
use instruction_data::{
1414
CompressedAccount,
1515
CompressedAccountConfig,

0 commit comments

Comments
 (0)