Bump bpf-tools version to 1.9
- upgrade rustc to 1.52.1 and clang to 12.0
This commit is contained in:
committed by
Dmitri Makarov
parent
a544010b03
commit
2ae57c172a
@ -92,7 +92,7 @@ if [[ ! -e criterion-$version.md || ! -e criterion ]]; then
|
||||
fi
|
||||
|
||||
# Install Rust-BPF
|
||||
version=v1.8
|
||||
version=v1.9
|
||||
if [[ ! -e bpf-tools-$version.md || ! -e bpf-tools ]]; then
|
||||
(
|
||||
set -e
|
||||
|
@ -360,7 +360,7 @@ fn build_bpf_package(config: &Config, target_directory: &Path, package: &cargo_m
|
||||
install_if_missing(
|
||||
&config,
|
||||
"bpf-tools",
|
||||
"v1.8",
|
||||
"v1.9",
|
||||
"https://github.com/solana-labs/bpf-tools/releases/download",
|
||||
&PathBuf::from(bpf_tools_filename),
|
||||
)
|
||||
|
@ -135,7 +135,7 @@ pub fn hashv(vals: &[&[u8]]) -> Hash {
|
||||
{
|
||||
extern "C" {
|
||||
fn sol_sha256(vals: *const u8, val_len: u64, hash_result: *mut u8) -> u64;
|
||||
};
|
||||
}
|
||||
let mut hash_result = [0; HASH_BYTES];
|
||||
unsafe {
|
||||
sol_sha256(
|
||||
|
@ -133,7 +133,7 @@ pub fn hashv(vals: &[&[u8]]) -> Hash {
|
||||
{
|
||||
extern "C" {
|
||||
fn sol_keccak256(vals: *const u8, val_len: u64, hash_result: *mut u8) -> u64;
|
||||
};
|
||||
}
|
||||
let mut hash_result = [0; HASH_BYTES];
|
||||
unsafe {
|
||||
sol_keccak256(
|
||||
|
@ -227,7 +227,7 @@ impl Pubkey {
|
||||
program_id_addr: *const u8,
|
||||
address_bytes_addr: *const u8,
|
||||
) -> u64;
|
||||
};
|
||||
}
|
||||
let mut bytes = [0; 32];
|
||||
let result = unsafe {
|
||||
sol_create_program_address(
|
||||
@ -309,7 +309,7 @@ impl Pubkey {
|
||||
address_bytes_addr: *const u8,
|
||||
bump_seed_addr: *const u8,
|
||||
) -> u64;
|
||||
};
|
||||
}
|
||||
let mut bytes = [0; 32];
|
||||
let mut bump_seed = std::u8::MAX;
|
||||
let result = unsafe {
|
||||
@ -342,7 +342,7 @@ impl Pubkey {
|
||||
{
|
||||
extern "C" {
|
||||
fn sol_log_pubkey(pubkey_addr: *const u8);
|
||||
};
|
||||
}
|
||||
unsafe { sol_log_pubkey(self.as_ref() as *const _ as *const u8) };
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user