Skip to content

Port history from agave/sdk #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2,747 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2747 commits
Select commit Hold shift + click to select a range
bef8c9b
Revert "Bump platform tools version to v1.42 (#2310)" (#2345)
LucasSte Jul 29, 2024
8e81aa2
extract solana-msg crate (#1983)
kevinheavey Jul 31, 2024
d3f4004
clippy: Applies automatic v1.80.0 fixes (#2387)
brooksprumo Aug 1, 2024
6cbc705
Introduce VoteState::deserialize_into_uninit (#2272)
alessandrod Aug 2, 2024
522fc79
Bump platform tools version to v1.42 (#2355)
LucasSte Aug 2, 2024
f973ed2
extends Turbine fanout experiment to wider fanout values (#2373)
behzadnouri Aug 5, 2024
83caf1d
banking_stage: do not drain votes that cannot land on our leader fork…
AshwinSekar Aug 7, 2024
1941758
fix: remove expensive versioned epoch stakes clone (#2453)
jstarry Aug 8, 2024
2a22be2
SDK: Add `PodSlotHashes` API (#2481)
buffalojoec Aug 8, 2024
3e0deec
fix: borrow stakes delegation during snapshot serialization (#2455)
jstarry Aug 8, 2024
76be156
Only run frozen-abi build script when needed (#2443)
kevinheavey Aug 8, 2024
b51408e
Improve type safety in stake state module (#2482)
jstarry Aug 9, 2024
b80504a
fix docs format (#2497)
yihau Aug 11, 2024
a1b97c7
clippy: arithmetic-side-effects (#2493)
yihau Aug 11, 2024
9a256d3
AccountLocks: validate_account_locks (#2448)
apfitzge Aug 12, 2024
d8995ce
docs: fix coption doc test (#2571)
yihau Aug 13, 2024
db5e5d7
sdk: Use Duration methods in duration_as_*() (#2584)
steviez Aug 14, 2024
7a6c51e
sdk: Deprecate timing::duration_as_*() functions (#2586)
steviez Aug 14, 2024
ef73756
ff cleanup: deprecate_unused_legacy_vote_plumbing (#2585)
AshwinSekar Aug 15, 2024
79dc100
vote: deprecate legacy vote instructions (#587)
AshwinSekar Aug 15, 2024
1853649
bump rust to 1.80.1 / 2024-08-08 (#2487)
yihau Aug 16, 2024
0485479
feat: support committing fee-only transactions (#2425)
jstarry Aug 22, 2024
963b163
sdk: refactor: clean up entrypoint (#2635)
andreisilviudragnea Aug 22, 2024
4120f4b
sdk: Add `deserialize_into` to entrypoint to avoid heap allocations (…
joncinque Aug 26, 2024
041731f
feat: move precompile verification to SVM (#2441)
jstarry Aug 27, 2024
55a3686
Bump platform tools version (#2745)
LucasSte Aug 28, 2024
de7d21d
Adjustments of loader-v4 (part 2) (#2750)
Lichtso Aug 29, 2024
506f705
SIMD-0118: fix `total_rewards` for recalculation (#2780)
CriesofCarrots Aug 30, 2024
a492d35
chore: bump curve25519-dalek from 3.2.1 to 4.1.3 (#2252)
yihau Sep 3, 2024
7edc6f9
sdk: Extract clock crate (#1967)
kevinheavey Sep 4, 2024
67b15c7
Extract serde-varint crate (#2053)
kevinheavey Sep 4, 2024
1608829
sdk: Extract hash and hasher crates (#2015)
kevinheavey Sep 5, 2024
b812f4f
Extract derivation-path crate (#2056)
kevinheavey Sep 5, 2024
f90c8bb
Extract signature crate (#2054)
kevinheavey Sep 6, 2024
46a20f8
Extract program-option crate (#2369)
kevinheavey Sep 6, 2024
11c44e9
Extract feature-set crate (#2172)
kevinheavey Sep 10, 2024
0e0040a
Extract pubkey crate (#2394)
kevinheavey Sep 10, 2024
ca320bc
Feature - `disable_sbpf_v1_execution` for tests (#2884)
Lichtso Sep 12, 2024
c65cad5
Extract transaction-status-client-types (#2870)
kevinheavey Sep 12, 2024
72aec74
Extract instruction crate (#2405)
kevinheavey Sep 13, 2024
0c7e730
Extract program-error crate (#2413)
kevinheavey Sep 16, 2024
2bc58c5
Remove frozen-abi build script (#2911)
kevinheavey Sep 17, 2024
994ad40
bump blake3 1.5.1 -> 1.5.4 (#2959)
4r33x Sep 24, 2024
b274809
[secp256k1] Remove old `libsecp256k1_fail_on_bad_count` features (#2795)
samkim-crypto Sep 25, 2024
b3dbbd7
extract serialize-utils crate (#2926)
kevinheavey Sep 25, 2024
aa207fb
Extract account-info crate (#2429)
kevinheavey Sep 25, 2024
a16c786
generic get nonce and ix signers (#2826)
apfitzge Sep 25, 2024
ce24e91
runtime-transaction: get_signature_details (#2847)
apfitzge Sep 25, 2024
38d0db0
Address Resolved TransactionView (#2792)
apfitzge Sep 27, 2024
70db2ed
RuntimeTransaction: cache TransactionSignatureDetails (#2983)
apfitzge Sep 27, 2024
d0243a1
add #![no_std] to solana-clock (#3023)
kevinheavey Oct 1, 2024
35c55f9
remove cu price rounding (#3047)
apfitzge Oct 2, 2024
33d3c63
Extract program-pack crate (#2930)
kevinheavey Oct 4, 2024
16b4e19
appropriate precompile failure error (#3066)
apfitzge Oct 4, 2024
f8d8721
Extract solana-rent crate (#3022)
kevinheavey Oct 7, 2024
6aa0362
Extract solana-account crate (#2294)
kevinheavey Oct 8, 2024
e85b62f
cargo-build-sbf: Use `metadata.solana.tools-version` in Cargo.toml (#…
joncinque Oct 8, 2024
3460167
move LamportsError to solana-instruction (#3081)
kevinheavey Oct 9, 2024
af7839e
extract solana-bincode crate (#3020)
kevinheavey Oct 9, 2024
d261cbf
fix a link in the solana-instruction docs (#3122)
kevinheavey Oct 10, 2024
9453d92
extract slot-hashes crate (#3010)
kevinheavey Oct 10, 2024
640da32
Extract epoch-schedule crate (#3021)
kevinheavey Oct 10, 2024
7f359a9
remove thiserror from solana-derivation-path (#3086)
kevinheavey Oct 11, 2024
a006334
SDK doc fixes (#3133)
kevinheavey Oct 11, 2024
9337475
add doc_auto_cfg to relevant sdk crates (#3121)
kevinheavey Oct 12, 2024
54fc2d0
Add const pubkey support and make declare_id a declarative macro (#2348)
kevinheavey Oct 14, 2024
713a2be
package-metadata: Add macro to define program id from Cargo.toml (#1…
joncinque Oct 15, 2024
d3cd2ad
move sanitize crate to sdk dir (#3073)
kevinheavey Oct 15, 2024
ffcd259
remove solana-program from solana-feature-set (#3140)
kevinheavey Oct 15, 2024
858838b
Move `solana_sdk::pubkey` functions to solana-pubkey (#2980)
kevinheavey Oct 15, 2024
18e672c
Scheduler: Improve TTL (#3161)
apfitzge Oct 15, 2024
8e6b5a7
extract native-token crate (#3072)
kevinheavey Oct 15, 2024
88cf43e
Extract entrypoint crate (#2430)
kevinheavey Oct 15, 2024
2942e29
move account_utils to account crate (#3174)
kevinheavey Oct 15, 2024
0989b77
fix doc link in solana-epoch-schedule (#3175)
kevinheavey Oct 15, 2024
f74948a
Extract precompile-error crate (#2300)
kevinheavey Oct 16, 2024
4907dbd
load_addresses performance (#3182)
apfitzge Oct 17, 2024
f091359
fix solana-instruction when std feature is not activated (#3193)
kevinheavey Oct 18, 2024
7b62981
extract stable-layout crate (#2924)
kevinheavey Oct 22, 2024
8f8398b
extract fee-calculator crate (#2969)
kevinheavey Oct 22, 2024
ef395af
extract transaction-error crate (#2295)
kevinheavey Oct 22, 2024
c72d794
msg: Move all logging syscalls down to solana-msg (#3271)
joncinque Oct 23, 2024
a816ff8
Always inline should_update and should_update_ext (#3228)
ksolana Oct 24, 2024
e34f7ba
extract solana-cpi crate (#2981)
kevinheavey Oct 25, 2024
f860126
remove test-only bool arg from calculate_fee (#3211)
apfitzge Oct 25, 2024
7704c8a
extract packet crate (#3029)
kevinheavey Oct 28, 2024
10f5427
sdk: Extract borsh helpers into solana-borsh (#3310)
joncinque Oct 28, 2024
f4e7b74
sdk: Extract last-restart-slot crate (#3272)
joncinque Oct 28, 2024
bbf8af4
sdk: Extract slot-history sysvar (#3249)
joncinque Oct 28, 2024
113e89b
extract inflation crate (#2970)
kevinheavey Oct 28, 2024
8b986dc
Update version to v2.2.0 (#3342)
willhickey Oct 29, 2024
492dc73
sdk: Extract `solana-sysvar-id` crate (#3309)
joncinque Oct 29, 2024
fc22d01
Extract solana-nonce crate (#3082)
kevinheavey Oct 29, 2024
b0845e5
extract timing-utils crate (#3327)
kevinheavey Oct 29, 2024
824358b
Revert "remove test-only bool arg from calculate_fee (#3211)" (#3367)
apfitzge Oct 29, 2024
6ea0a72
Extract commitment-config crate (#2136)
kevinheavey Oct 30, 2024
0ce6cb5
Extract fee-structure crate (#3311)
kevinheavey Oct 30, 2024
5d672a9
sdk: Extract epoch-rewards crate (#3338)
joncinque Oct 30, 2024
5731bc6
TransactionBatch - hold RuntimeTransaction (#3041)
apfitzge Nov 4, 2024
d547fdd
Feature - Remove accounts executable flag checks (#2182)
Lichtso Nov 4, 2024
9d4bb91
extract reward-info crate (#2971)
kevinheavey Nov 5, 2024
8cc96c9
Feature - Lift CPI Caller Restriction (#2202)
Lichtso Nov 6, 2024
fe8677f
Extract signer crates (#3087)
kevinheavey Nov 6, 2024
91a97f4
move sdk crates to sdk dir (#3498)
kevinheavey Nov 6, 2024
b10bc8c
extract file-download crate to remove solana-runtime dep from cargo-b…
kevinheavey Nov 6, 2024
409f3e6
Extract reserved-account-keys and sdk-ids crates (#3141)
kevinheavey Nov 7, 2024
c14e5eb
remove solana-sdk from cargo-build-sbf (#3512)
kevinheavey Nov 7, 2024
e99314a
RuntimeTransacton for TransactionView types (#3529)
apfitzge Nov 8, 2024
20c166f
Feature - disable account loader special case (#3548)
Lichtso Nov 8, 2024
cd4efa3
Generic processing pipeline (#3467)
apfitzge Nov 11, 2024
564187b
Fix typos (#3579)
omahs Nov 12, 2024
4781d66
Extract quic-definitions crate (#3119)
kevinheavey Nov 12, 2024
1099ec4
Move remaining syscall definitions out of solana-program (#3405)
kevinheavey Nov 13, 2024
0282890
fix: `build-sbf` Home Directory Error on Windows (#3597)
KartikSoneji Nov 13, 2024
5fd0291
instruction: Derive everything for wasm build (#3606)
joncinque Nov 13, 2024
3f12dd2
extract cluster-type crate (#3372)
kevinheavey Nov 13, 2024
82b1177
Adds accounts lt hash featurization (#3334)
brooksprumo Nov 13, 2024
08a4290
Extract ed25519-instructions crate (#3330)
kevinheavey Nov 13, 2024
428415a
extract deserialize-utils crate (#3387)
kevinheavey Nov 14, 2024
57fe4bd
deprecates Hash::new in favor of Hash::new_from_array (#3617)
behzadnouri Nov 14, 2024
be29134
sdk: Rename ed25519-instructions -> ed25519-program (#3632)
joncinque Nov 14, 2024
0d24b11
Fix - loader-v4 (#3586)
Lichtso Nov 14, 2024
b4913ee
removes double iteration and unwrap in Transaction::try_partial_sign …
behzadnouri Nov 14, 2024
33a8cd2
SIMD-0075: Precompile for Secp256r1 (#3152)
0xRigel Nov 15, 2024
eaf1195
fix secp256r1-program id location (#3663)
kevinheavey Nov 15, 2024
241b573
move BorrowedAccountMeta and BorrowedInstruction to instruction crate…
kevinheavey Nov 18, 2024
dd64a71
removes serde::Serialize trait bound from Packet::{from_data,populate…
behzadnouri Nov 18, 2024
9757fb9
rekey feature enable_get_epoch_stake_syscall (#3627)
buffalojoec Nov 19, 2024
bc03d8a
Extract transaction-context crate (#3132)
kevinheavey Nov 19, 2024
72969dd
extract epoch-info crate (#3028)
kevinheavey Nov 19, 2024
820e71e
Extract sysvar crate, including program_stubs.rs (#3680)
kevinheavey Nov 19, 2024
2276b2e
runtime: migrate stake program to core bpf (#3655)
2501babe Nov 20, 2024
47cb865
sdk: Feature gate BorrowedInstruction properly (#3711)
joncinque Nov 20, 2024
44a1330
Remove GenericArray (#2857)
kevinheavey Nov 20, 2024
6707c91
move solana_sdk::transaction::Result to solana_transaction_error (#3652)
kevinheavey Nov 20, 2024
f7ac389
Extract keccak-hasher crate (#3408)
kevinheavey Nov 20, 2024
6351a6f
Extract secp256k1-program (#3331)
kevinheavey Nov 20, 2024
b345ec0
remove solana-program from solana-account (#3681)
kevinheavey Nov 21, 2024
389b71f
Extract compute-budget-interface crate (#3393)
kevinheavey Nov 21, 2024
ecc7ffd
Extract precompiles crate (#3622)
kevinheavey Nov 21, 2024
5d9bf12
Extract rent-debits crate (#3150)
kevinheavey Nov 22, 2024
cddcbbe
Fixes whitespace in feature-set (#3743)
brooksprumo Nov 22, 2024
97b9244
sysvar: Remove bincode feature for `get_sysvar` (#3741)
joncinque Nov 22, 2024
4fc7189
feature cleanup: address lookup table program authority checks (#3540)
buffalojoec Nov 25, 2024
ed0897e
impl TransactionWithMeta for ResolvedTransactonView (#3651)
apfitzge Nov 25, 2024
9a68215
FeatureSet: ahash (#3756)
apfitzge Nov 25, 2024
70e150f
transaction-error: Fix warning for bpf build, feature gating (#3742)
joncinque Nov 25, 2024
c4bc2a6
chore(cargo-build-sbf): allow using it from nix store (#3762)
dzmitry-lahoda Nov 27, 2024
39f160d
ff cleanup: timely_vote_credits (#3798)
AshwinSekar Nov 27, 2024
469f8dc
chore: remove redundant words in comment (#3847)
hishope Dec 1, 2024
73448d8
system: Use solana-system-interface symbols (#3809)
febo Dec 2, 2024
ac293fd
Extract message crate (#3704)
kevinheavey Dec 2, 2024
18bb241
[secp256r1] Add bench logic (#3825)
samkim-crypto Dec 3, 2024
81d9e68
Memory syscalls cannot start in an account and end outside of it (#3744)
seanyoung Dec 3, 2024
f21a14d
move program::wasm::instructions to instruction crate (#3874)
kevinheavey Dec 3, 2024
26f6cab
move incinerator ID to sdk-ids (#3828)
kevinheavey Dec 3, 2024
89940e3
Extract solana-transaction from solana-sdk (#3634)
kevinheavey Dec 4, 2024
495dc6f
[runtime-transaction] add secp256r1 to precompile signature details (…
samkim-crypto Dec 4, 2024
c579ffb
sdk: Add wasm target for docs (#3901)
joncinque Dec 4, 2024
b259238
Fix reserve minimal compute units for builtins (#3799)
tao-stones Dec 5, 2024
698d0e6
remove solana-program from solana-precompiles (#3904)
kevinheavey Dec 5, 2024
ff7af1f
remove solana-program from solana-fee-structure (#3905)
kevinheavey Dec 5, 2024
d538241
remove solana-program from solana-cpi dev deps (#3906)
kevinheavey Dec 5, 2024
6dcbbc6
remove solana-program from solana-reserved-account-keys dev deps (#3907)
kevinheavey Dec 5, 2024
fed9401
remove solana-program from solana-bincode dev deps (#3908)
kevinheavey Dec 5, 2024
e0e4919
remove solana-program from solana-signature dev deps (#3942)
kevinheavey Dec 5, 2024
0426ff6
Extract system-transaction crate (#3834)
kevinheavey Dec 5, 2024
393af8e
Extract client-traits crate (#3829)
kevinheavey Dec 5, 2024
a8c8c38
extract poh-config crate (#3855)
kevinheavey Dec 5, 2024
01e894b
remove solana-program from transaction-context dev deps (#3944)
kevinheavey Dec 5, 2024
2ced27d
Extract solana-feature crate (#3120)
kevinheavey Dec 5, 2024
c5f79aa
remove unused direct deps from solana-program (#3892)
kevinheavey Dec 5, 2024
3ae327c
feat: deplete compute meter for vm errors (#3751)
jstarry Dec 5, 2024
fc059b8
[big-num-exp] Add bench code for big number modular exponentiation (#…
samkim-crypto Dec 6, 2024
0d1ab4a
bump solana docker image's based image to bookworm (#3977)
yihau Dec 6, 2024
14cec5b
Extract offchain-message crate (#3443)
kevinheavey Dec 9, 2024
060ee12
extract epoch-rewards-hasher crate (#3896)
kevinheavey Dec 9, 2024
827437f
sdk: evict hard_forks (#3962)
buffalojoec Dec 11, 2024
d0a19cf
extract nonce-account crate (#4036)
kevinheavey Dec 11, 2024
35083f5
sdk: Extract instructions-sysvar (#4040)
joncinque Dec 11, 2024
81637d8
Rekey direct mapping feature (#4058)
seanyoung Dec 11, 2024
fe8abd1
use new feature gate for cu depletion (#3994)
jstarry Dec 11, 2024
b5b122a
SIMD-0207: Raise block limit to 50M (#4026)
apfitzge Dec 11, 2024
16be437
Remove Tracer packet as a concept (#4043)
apfitzge Dec 12, 2024
8c71c4e
Revert "SIMD-0207: Raise block limit to 50M (#4026)" (#4110)
apfitzge Dec 13, 2024
4ed73fe
SIMD-0207: Raise block limit to 50M (#4112)
apfitzge Dec 16, 2024
efc38ce
chore(cargo-build-sbf): allow building from nix store (#4061)
dzmitry-lahoda Dec 16, 2024
bd190e1
sdk: evict shred version (#4049)
buffalojoec Dec 17, 2024
8f7cb70
Bumps solana-sbpf to v0.9.0 (#3830)
Lichtso Dec 17, 2024
b03ca25
extract validator-exit crate (#3895)
kevinheavey Dec 17, 2024
e92cc27
[secp256r1] Add CU costs (#3826)
samkim-crypto Dec 20, 2024
1a3e46a
ci: unify solana docker base image (#4052)
yihau Dec 30, 2024
6e3fb3b
Update syscalls code in definitions (#4196)
LucasSte Jan 2, 2025
47af828
Snapshots use lattice-based accounts hash (#4113)
brooksprumo Jan 2, 2025
b982bbe
Add `writable` permission description for some ubpfl instructions (#4…
mohanson Jan 3, 2025
b4138c1
move Signable trait to solana-keypair (#4230)
kevinheavey Jan 7, 2025
ea510d1
Points the accounts lt hash feature gate to the SIMD (#4307)
brooksprumo Jan 7, 2025
79bda29
move inner_instruction.rs to solana-message (#4154)
kevinheavey Jan 9, 2025
20ec0df
clippy: needless_lifetimes (#4377)
brooksprumo Jan 10, 2025
2b734fe
Support tx poh recording in unified scheduler (#4150)
ryoqun Jan 10, 2025
d78332a
clippy: empty_line_after_doc_comments (#4393)
brooksprumo Jan 10, 2025
bd5f569
clippy: unnecessary_map_or (#4392)
brooksprumo Jan 11, 2025
d55eadb
Points the snapshots_lt_hash feature gate to the SIMD (#4444)
brooksprumo Jan 13, 2025
9b2e8cd
[message] Do not include secp256r1 signature from the total number of…
samkim-crypto Jan 14, 2025
54d8543
remove "internal use only" from solana-define-syscall definition (#4466)
kevinheavey Jan 15, 2025
48dfeb5
clippy: needless_lifetimes (#4477)
brooksprumo Jan 15, 2025
ddad4a0
sdk: evict genesis config (#4076)
buffalojoec Jan 16, 2025
673816a
Extract address-lookup-table-interface (#4476)
kevinheavey Jan 19, 2025
0f743c5
extract big-mod-exp crate (#4491)
kevinheavey Jan 19, 2025
50924cc
extract vote-interface crate (#4482)
kevinheavey Jan 19, 2025
55554fb
fix: secp256r1 metrics bug and doc typo (#4546)
jstarry Jan 20, 2025
7e9b9bb
remove solana-program from solana-vote-program (#4536)
kevinheavey Jan 20, 2025
3283b4b
use explicit path for impl_sysvar_id in declare_sysvar_id (#4534)
kevinheavey Jan 21, 2025
7ff67cd
sdk: evict rent collector (#4160)
buffalojoec Jan 21, 2025
1171f46
removes dependency on byteorder crate (#4561)
behzadnouri Jan 21, 2025
67067fd
move sdk::feature utils into feature-gate-interface (#4498)
kevinheavey Jan 21, 2025
3912272
Convert the StableVec class to use virtual addressing (#3608)
jason-nitro Jan 22, 2025
1297063
extract loader-v3-interface crate (#4484)
kevinheavey Jan 22, 2025
df68287
sdk: Remove now-unused dependencies (#4568)
joncinque Jan 22, 2025
2a990d8
Extract loader-v2-interface crate (#4487)
kevinheavey Jan 22, 2025
429dd3f
secp256r1 signature fees (#4472)
apfitzge Jan 22, 2025
a1ced39
extract blake3-hasher crate (#4490)
kevinheavey Jan 22, 2025
d007a79
quic: disable send fairness (#4586)
0x0ece Jan 23, 2025
2ff653c
Check account boundaries on overlapping memmove syscall (#4563)
seanyoung Jan 23, 2025
8687f81
Refactor - Makes loader-v4 the default (#2796)
Lichtso Jan 23, 2025
8149945
Fix ALT_BN128_MULTIPLICATION_INPUT_LEN constant (#3686)
LStan Jan 24, 2025
6552c29
extract loader-v4-interface crate (#4486)
kevinheavey Jan 24, 2025
9a3661e
Feature - Adds `LoaderV4Instruction::Copy` (#4613)
Lichtso Jan 24, 2025
995c141
quic: increase timeout and keep alive (#4585)
0x0ece Jan 24, 2025
8174894
Revert "quic: increase timeout and keep alive (#4585)" (#4637)
lijunwangs Jan 27, 2025
7b94ef4
sdk: Move out things that won't be in the sdk (#4624)
joncinque Jan 27, 2025
ead77bd
Extract example-mocks crate (#4615)
kevinheavey Jan 27, 2025
90bbc75
pubkey: Add `as_array` method (#4649)
febo Jan 27, 2025
2b86d87
sdk: Move solana-sdk into sdk/sdk (#4625)
joncinque Jan 28, 2025
49afeae
Feature - Separates gate for `disable_new_loader_v3_deployments` (#4666)
Lichtso Jan 28, 2025
c74e2dc
Revert "Update syscalls code in definitions (#4196)" (#4669)
LucasSte Jan 29, 2025
11fbfa0
Refactor - loader v4 `SetProgramLength` (#4687)
Lichtso Jan 30, 2025
c9fce84
Feature - loader-v2 and loader-v3 deprecation warnings (#4704)
Lichtso Jan 30, 2025
cd3681d
Feature cleanup: Removing unwanted rounding in fee calculation #21 (#…
tao-stones Jan 30, 2025
405af82
Replace solana_program::stake with solana_stake_interface (#4664)
kevinheavey Jan 31, 2025
6b305c2
curves: Move bn254 and secp256k1-recover to sdk (#4675)
joncinque Feb 3, 2025
62fab95
sdk: Fixup features for separation (#4731)
joncinque Feb 3, 2025
ffbcbe1
sdk: Create new Cargo workspace for sdk/ (#4685)
joncinque Feb 4, 2025
9863bd5
Remove SVM's dependency on system program (#4759)
pgarg66 Feb 4, 2025
7928dcf
prevent check-crates from crashing on PRs which do not touch any carg…
alexpyattaev Feb 4, 2025
b775dd7
adds feature to drop unchained Merkle shreds (#2149)
behzadnouri Feb 4, 2025
52e2605
build(deps): bump bytes from 1.9.0 to 1.10.0 (#4778)
dependabot[bot] Feb 5, 2025
2c7c5f4
no resize area for unaligned programs (#4750)
seanyoung Feb 5, 2025
8f3bbf1
typo fixes (#4825)
maximevtush Feb 6, 2025
e545453
Removes accounts delta hash from bank hash (#4826)
brooksprumo Feb 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
147 changes: 147 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
name: Setup environment

inputs:
cargo-cache-key:
description: The key to cache cargo dependencies. Skips cargo caching if not provided.
required: false
cargo-cache-fallback-key:
description: The fallback key to use when caching cargo dependencies. Default to not using a fallback key.
required: false
cargo-cache-local-key:
description: The key to cache local cargo dependencies. Skips local cargo caching if not provided.
required: false
stable-toolchain:
description: Install stable toolchain if `true`. Defaults to `false`.
required: false
nightly-toolchain:
description: Install nightly toolchain if `true`. Defaults to `false`.
required: false
clippy:
description: Install Clippy if `true`. Defaults to `false`.
required: false
rustfmt:
description: Install Rustfmt if `true`. Defaults to `false`.
required: false
miri:
description: Install Miri if `true`. Defaults to `false`.
required: false
llvm-tools-preview:
description: Install llvm-tools-preview if `true`. Defaults to `false`.
required: false
purge:
description: Purge unused directories if `true`. Defaults to `false`.
required: false

runs:
using: 'composite'
steps:
- name: Purge unused ubuntu runner directories
if: ${{ inputs.purge == 'true' }}
shell: bash
run: |
# If there are still disk space issues, try to add more packages from
# https://github.com/jlumbroso/free-disk-space
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/share/swift
sudo rm -rf /usr/share/mysql
sudo rm -rf /usr/share/az_*
sudo rm -rf /usr/share/postgresql-common
sudo rm -rf /opt/ghc
sudo rm -rf /opt/az
sudo rm -rf /opt/pipx
sudo rm -rf /opt/microsoft
sudo rm -rf /opt/google
sudo rm -rf /opt/hostedtoolcache
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/local/lib/heroku
sudo rm -rf /imagegeneration
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo docker image prune --all --force

- name: Set Environment Variables
shell: bash
run: |
source ./sdk/scripts/rust-version.sh
echo "RUST_STABLE=${rust_stable}" >> $GITHUB_ENV
echo "RUST_NIGHTLY=${rust_nightly}" >> $GITHUB_ENV

- name: Install stable toolchain
if: ${{ inputs.stable-toolchain == 'true' }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_STABLE }}

- name: Install nightly toolchain
if: ${{ inputs.nightly-toolchain == 'true' }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_NIGHTLY }}

- name: Install Rustfmt
if: ${{ inputs.rustfmt == 'true' }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_NIGHTLY }}
components: rustfmt

- name: Install Clippy
if: ${{ inputs.clippy == 'true' }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_NIGHTLY }}
components: clippy

- name: Install Miri
if: ${{ inputs.miri == 'true' }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_NIGHTLY }}
components: miri

- name: Install llvm-tools-preview
if: ${{ inputs.llvm-tools-preview == 'true' }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_NIGHTLY }}
components: llvm-tools-preview

- name: Cache Cargo Dependencies
if: ${{ inputs.cargo-cache-key && !inputs.cargo-cache-fallback-key }}
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-${{ inputs.cargo-cache-key }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-${{ inputs.cargo-cache-key }}

- name: Cache Cargo Dependencies With Fallback
if: ${{ inputs.cargo-cache-key && inputs.cargo-cache-fallback-key }}
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-${{ inputs.cargo-cache-key }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-${{ inputs.cargo-cache-key }}
${{ runner.os }}-${{ inputs.cargo-cache-fallback-key }}-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-${{ inputs.cargo-cache-fallback-key }}

- name: Cache Local Cargo Dependencies
if: ${{ inputs.cargo-cache-local-key }}
uses: actions/cache@v4
with:
path: |
.cargo/bin/
.cargo/registry/index/
.cargo/registry/cache/
.cargo/git/db/
key: ${{ runner.os }}-${{ inputs.cargo-cache-local-key }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-${{ inputs.cargo-cache-local-key }}
Loading