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 best solutions below
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
- Issue with import solana/web3.js package
- Transaction failing while calling a Solana program with PDA
- I am having ParsedProgramError whlie mint programmable NFT
- Is it possible to deploy program with Solana SDK
- Solana Private key with 87 characters
- Error: failed to send transaction: failed to deserialize solana_sdk:transaction::versioned:VersionedTransaction:io error: failed to fill whole buffer
- solana "Program log: Instruction: GetAccountDataSize", "Program log: Error: IncorrectProgramId", "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
- Error occured: CredentialsSignin when trying to log in using Phantom provider
- Does program keypair has any other usage besides program deployment?
- How can I receive WSOL on Solana devnet?
- web3 auth integration to Login page
- Can I set solana account field to private?
- unspendable assets (USDT) on Solana sent from Kucoin
- How can I sign a Solana transaction on the frontend with data coming from the backend?
- Is it possible to check the Solana program `macro` correctness before deployment?
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
- Get new tokens on Solana (realtime)
- How to change currently active version rust compiler?
- Is it possible to send SPL-Tokens to multiple addresses in 1 or multiple transaction with spltoken cli in Solana
- Force a program to have a new program ID
- Web3 batch close/burn spl token on solana (Token no used)
- Error running command (re-run needed): invalid type: floating point `18446744073709552000`, expected u64
- Is it possible to deploy program with Solana SDK
- Solana Installation
- Create own token in Solana Network
- Want to get information about solana validators using solana/web3js
- What is the proper CLI command to transfer Solana delegated tokens?
- I got this error "Error running command (re-run needed): RPC response error -32002:..."
- How create token at solana with image , and dissabled mint new tokens now?
- solana-test-validator doesn't run
- Solana showing wrong timestamp for Testnet Transactions
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)
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?
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