I am new to blockchain and I am using solana/anchor/cargo/rust to build a project. I am confused about these commands. What is the difference between cargo build, cargo build-bpf and cargo build-sbf?
Difference between `cargo build` , `cargo build-bpf` and `cargo build-sbf`
2.1k views Asked by Inaara Kalani At
1
There are 1 answers
Related Questions in RUST-CARGO
- Can't add user info to current request instance after validate the jwt token in actix web middleware in rust
- How to correctly generate an HTML report of coverage with grcov
- Cargo complaining on unused super::* import on tests module
- Cargo patch to redirect registry to local path without having to call cargo login
- Unit Tests not Compiling or Being found without mod tests in main.rs. Is this a requirement or am I missing some configuration?
- implementin filter for vector of custom struct in RUST
- Cargo not found after installing in a devcontainer
- Android developer tools not found even after installing Android studio
- Troubles with linking Rust lib when compiling as shared lib for Android using NDK
- does profile-rustflags allow setting features based on profile?
- set cargo profile for workspace members but not dependencies?
- error: failed to select a version for `tree-sitter`. gpui.rs
- Linking error for SDL2 on linux while building with cargo
- How do I return rows from my query with odbc_api?
- How to make cargo automatically install the dependencies with version suits with a desired rustc?
Related Questions in SOLANA
- invalid transaction: Transaction failed to sanitize accounts offsets correctly
- Solana openbook-dex createMarket script
- Solana SendTransactionError 0x16
- please solve my solana wallet's hacking issues
- How to Mint a Fungible Token with Metadata on Solana using @Solana/web3.js
- Could not build idl using anchor
- How to convert a constant into a ProgramError type in Rust/Anchor when returning in a function?
- How do I speed up transaction filtering on solan blockchain?
- "No data" after sending tx Jupiter Swap Python
- Add Solana Network to Wallet Connect Web package
- Raydium CLLM pool not showing up after 4 days
- get transactions/logs from different program, on a span of blocks
- How do I modify this SPL create token code to use the non transfereable and interest bearing extension using Metaplex
- error: could not find `solana-cargo-build-sbf` in registry `crates-io` with version `=1.19.0`
- Solana add instructions to VersionedTransaction in python
Related Questions in ANCHOR-SOLANA
- Solana openbook-dex createMarket script
- error: could not find `solana-cargo-build-sbf` in registry `crates-io` with version `=1.19.0`
- How do I call an anchor mint program in a react project for production
- When I run "anchor test", I am getting this error (for a sample Solana program"
- Error when running anchor test - rust directory not found
- anchor build can not execute why anchor init works
- Error: Library not loaded - Issue with 'librustc_driver' when building Solana project
- Property 'PROGRAM_ID' does not exist on type 'typeof import @metaplex-foundation/mpl-token-metadata'
- export solpg project locally but got error TS1378 running the client script due to top-level await
- Is it possible to check the Solana program `macro` correctness before deployment?
- Can I set solana account field to private?
- Does program keypair has any other usage besides program deployment?
- Is it possible to deploy program with Solana SDK
- Transaction failing while calling a Solana program with PDA
- How to restrict acces to Solana programs only to owners of certain NFT collection using Sol Cerberus
Related Questions in SOLANA-CLI
- Error running command (re-run needed): invalid type: floating point `18446744073709552000`, expected u64
- Is it possible to deploy program with Solana SDK
- Force a program to have a new program ID
- Account could not be parsed as token account: pubkey Solana
- Anchor test without AVX2 CPU
- Can't connect to Solana devnet/testnet
- Solana: error: not a directory on npm run build:program-rust command
- solana command not found after ubuntu update 22.04 jammy
- Solana: ComputeBudget in Typescript SDK
- solana Validator logs are not coming up
- Solana CLI: Use an other Phantom address
- How can I return an array of integers from Solana rust program function to front end?
- Getting this error message while installing solana: error: failed to run custom build command for `prost-build v0.10.1`
- Solana build crashing on the compilation of solana-validator package
- Solana leader schedule cli vs api correlation
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
cargo build- Unless otherwise directed to build for a different architecture, this will compile your rust source and emit an executable file.cargo build-bpf- Solana programs (smart contracts) are compiled to BPF (google it) bytecode. The Solana program run-time executes your smart contract in a BPF VM. deprecated in favor of:cargo build-sbf- More comprehensive implementation of generated byte-code and interpreter