Repository navigation
fix(compressed-account): make light-program-profiler optional for no_std (#2394) #2397
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
Open
ankittiwari-04
wants to merge
1
commit into
Lightprotocol:main
Choose a base branch
from
ankittiwari-04:fix/no-std-compressed-account-and-token-pinocchio
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+11
−9
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 25685
Web query:
num-bigint 0.4.6 Cargo.toml default features std docs.rs sourceResult:
Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 21811
Web query:
num-bigint 0.4.6 lib.rs cfg_attr no_std feature std source docs.rsResult:
Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 3992
Web query:
site:docs.rs/crate/light-hasher/5.0.0/source/Cargo.toml num-bigint default-featuresResult:
Web query:
github Lightprotocol light-protocol Cargo.toml num-bigint light-hasher workspace dependencies default-features falseResult:
Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 4858
Web query:
site:docs.rs/crate/num-bigint/0.4.6/source/src/lib.rs "extern crate std" "feature" std no_stdResult:
Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 234
Web query:
site:docs.rs/num-bigint/0.4.6/src/num_bigint/lib.rs.html "extern crate std" "cfg(feature"Result:
Remove
num-bigint’sstddependency from the no-std path.When profiling is disabled,
light-hasherstill enablesnum-bigint’s defaultstdfeature. Builds for targets withoutstdtherefore fail. Disable that feature on the no-std dependency path and verify the bare-metal build.Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 560
Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 13383
Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 26293
Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 18736
Web query:
light-program-profiler 0.1.1 crate source lib.rs no_std procedural macro Cargo.tomlResult:
Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 16309
Web query:
site:docs.rs/crate/light-program-profiler/0.1.1/source/src/lib.rs light-program-profiler source std no_stdResult:
Web query:
Solana SBF target std rust standard library available cargo build-sbf Solana no_std official documentationResult:
Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 19092
Web query:
Rust reference no_std attribute automatically links std crate implicit extern crate std library Rust 2021 editionResult:
Web query:
site:doc.rust-lang.org rustc platform support thumbv7em-none-eabi core alloc no stdResult:
Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 5278
Web query:
site:docs.rs/num-bigint 0.4.6 Cargo.toml default std feature no_stdResult:
Web query:
site:docs.rs/crate/num-bigint/0.4.6/source/Cargo.toml "[features]" "default" "std"Result:
Web query:
site:docs.rs/crate/num-bigint/0.4.6/source/src/lib.rs "no_std" "feature" stdResult:
Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 7483
Web query:
https://docs.rs/num-bigint/0.4.6/src/num_bigint/lib.rs.html "extern crate std" "feature"Result:
Web query:
https://docs.rs/crate/num-bigint/0.4.6/source/src/lib.rsResult:
Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 215
Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 166
Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 452
Web query:
site:docs.rs/solana-program/2.3.0/solana_program "also link" "Rust standard library" Solana programsResult:
Script executed:
Repository: Lightprotocol/light-protocol
Length of output: 1014
Add a profiler dependency regression check.
The host and SBF checks do not detect an unconditional profiler dependency. Add a check of the target-side dependency graph with profiling disabled. A bare-metal build check also requires fixing the existing
light-hasherdependency onnum-bigintwithstdenabled.