Skip to content

Commit

Permalink
feat: refactor bounded vec to zero copy (#1444)
Browse files Browse the repository at this point in the history
* refactor: bounded-vec to light-zero-copy
  • Loading branch information
ananas-block authored Jan 5, 2025
1 parent 5d6732e commit 4cbc426
Show file tree
Hide file tree
Showing 40 changed files with 4,106 additions and 3,319 deletions.
84 changes: 56 additions & 28 deletions Cargo.lock

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

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ members = [
"program-libs/utils",
"program-libs/verifier",
"program-libs/merkle-tree-metadata",
"program-libs/bounded-vec",
"program-libs/zero-copy",
"program-libs/concurrent-merkle-tree",
"program-libs/hash-set",
"program-libs/indexed-merkle-tree",
Expand Down Expand Up @@ -95,6 +95,7 @@ light-sdk = { path = "sdk-libs/sdk", version = "0.11.0" }
light-sdk-macros = { path = "sdk-libs/macros", version = "0.4.0" }
light-utils = { path = "program-libs/utils", version = "1.1.0" }
light-verifier = { path = "program-libs/verifier", version = "1.1.0" }
light-zero-copy = { path = "program-libs/zero-copy", version = "0.1.0" }
photon-api = { path = "sdk-libs/photon-api", version = "0.45.0" }
forester-utils = { path = "forester-utils", version = "1.2.0" }
account-compression = { path = "programs/account-compression", version = "1.2.0", features = ["cpi"] }
Expand All @@ -107,7 +108,7 @@ light-batched-merkle-tree = { path = "program-libs/batched-merkle-tree", version
light-merkle-tree-metadata = { path = "program-libs/merkle-tree-metadata", version = "0.1.0" }
aligned-sized = { path = "program-libs/aligned-sized", version = "1.1.0" }
light-bloom-filter = { path = "program-libs/bloom-filter", version = "0.1.0" }
light-bounded-vec = { path = "program-libs/bounded-vec", version = "1.1.0" }
light-bounded-vec = { version = "1.1.0" }
light-poseidon = { version = "0.2.0" }
light-test-utils = { path = "program-tests/utils", version = "1.2.1" }
create-address-program-test = { path = "program-tests/create-address-test-program", version = "1.0.0" }
Expand Down
3 changes: 2 additions & 1 deletion program-libs/batched-merkle-tree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ solana = []
[dependencies]
aligned-sized = { workspace=true}
solana-program = { workspace = true }
light-bounded-vec = { workspace=true, features = ["solana"] }
light-zero-copy = { workspace=true, features = ["solana"] }
light-hasher = { workspace=true, features = ["solana"] }
light-utils = { workspace=true }
light-bloom-filter = { workspace=true, features = ["solana"] }
Expand All @@ -25,6 +25,7 @@ borsh = "0.10"
light-macros = {workspace = true}
anchor-lang = { workspace = true , optional = true }
bytemuck = { workspace = true }
light-bounded-vec = { workspace = true }

[dev-dependencies]
rand = "0.8.5"
Expand Down
Loading

0 comments on commit 4cbc426

Please sign in to comment.