solana-with-rpc-optimizations/sdk
behzad nouri 880684565c
limits read access into Packet data to Packet.meta.size (#25484)
Bytes past Packet.meta.size are not valid to read from.

The commit makes the buffer field private and instead provides two
methods:
* Packet::data() which returns an immutable reference to the underlying
  buffer up to Packet.meta.size. The rest of the buffer is not valid to
  read from.
* Packet::buffer_mut() which returns a mutable reference to the entirety
  of the underlying buffer to write into. The caller is responsible to
  update Packet.meta.size after writing to the buffer.
2022-05-25 16:52:54 +00:00
..
benches Refactor: move instructions sysvar serialization out of Message (#22544) 2022-01-20 17:33:49 +08:00
bpf Disallow deployment of deprecated _sol_alloc_free syscall (#25179) 2022-05-20 13:19:41 -07:00
cargo-build-bpf chore: bump regex from 1.5.5 to 1.5.6 (#25488) 2022-05-23 13:45:43 -06:00
cargo-test-bpf sdk: Add --jobs parameter in build/test bpf (#24359) 2022-04-15 13:49:43 +02:00
docker-solana Fix solana docker image 2021-10-09 20:35:39 +01:00
gen-headers chore: bump regex from 1.5.5 to 1.5.6 (#25488) 2022-05-23 13:45:43 -06:00
macro Add Ident case (#24390) 2022-04-15 16:27:25 -06:00
program typo (#25479) 2022-05-23 18:42:43 +00:00
src limits read access into Packet data to Packet.meta.size (#25484) 2022-05-25 16:52:54 +00: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 log from 0.4.16 to 0.4.17 (#24987) 2022-05-05 01:49:18 +00: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