solana/sdk
Alessandro Decina b9f4c8e3c0
BorrowedAccount: add set_data_from_slice(), make set_data() take owned values (#27836)
* BorrowedAccount: add set_data_from_slice(), make set_data() take owned values

set_data() used to take a slice and would force alloc+copy if the caller
has owned values (eg account creation, account lookup table).

Expose set_data_from_slice() for callers that have slices, and switch
set_data() to taking an owned Vec.

* BorrowAccount: refactor common accounts_update_delta code in helper method

* BorrowedAccount: add extend_from_slice()

This allows avoiding copies appending entries to account lookup tables.

* BorrowedAccount: remove unnecessary ifs around update_accounts_resize_delta
2022-09-24 01:37:02 +01:00
..
benches AccountSharedData: optimize set_data_from_slice 2022-09-23 11:31:33 +01:00
bpf Increase transaction account lock limit from 64 to 128 (#27242) 2022-09-15 13:50:14 -04:00
cargo-build-bpf Whickey/version v1.15 (#27739) 2022-09-13 09:06:15 -05:00
cargo-build-sbf patches clippy errors from new rust nightly release (#27996) 2022-09-22 22:23:03 +00:00
cargo-test-bpf Whickey/version v1.15 (#27739) 2022-09-13 09:06:15 -05:00
cargo-test-sbf patches clippy errors from new rust nightly release (#27996) 2022-09-22 22:23:03 +00:00
docker-solana Fix solana docker image 2021-10-09 20:35:39 +01:00
gen-headers chore: bump regex from 1.5.6 to 1.6.0 (#27678) 2022-09-21 18:09:33 +00:00
macro patches clippy errors from new rust nightly release (#27996) 2022-09-22 22:23:03 +00:00
program Require program account to be writable in extend program data ix (#27911) 2022-09-22 12:03:06 +08:00
src BorrowedAccount: add set_data_from_slice(), make set_data() take owned values (#27836) 2022-09-24 01:37:02 +01:00
tests fix: renamed the internal wasm_bindgen init function to avoid collision 2022-03-10 11:33:24 -08:00
.gitignore Add wasm bindings for `Pubkey` and `Keypair` 2021-12-09 15:53:58 -08:00
Cargo.toml chore: bump sha3 from 0.10.2 to 0.10.4 (#27656) 2022-09-21 15:31:42 -06:00
README.md Add new logos to README files and docs (#20049) 2021-09-21 13:35:36 -06:00
build.rs
package.json Add wasm bindings for `Pubkey` and `Keypair` 2021-12-09 15:53:58 -08:00

README.md

Solana

Solana SDK

Use the Solana SDK Crate to write client side applications in Rust. If writing on-chain programs, use the Solana Program Crate instead.

More information about Solana is available in the Solana documentation.

The Solana Program Library provides examples of how to use this crate.

Still have questions? Ask us on Discord