Go to file
dependabot[bot] 74a9fc9641
Bump libc from 0.2.145 to 0.2.146 (#32010)
* Bump libc from 0.2.145 to 0.2.146

Bumps [libc](https://github.com/rust-lang/libc) from 0.2.145 to 0.2.146.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.145...0.2.146)

---
updated-dependencies:
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [auto-commit] Update all Cargo lock files

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-06-07 12:18:40 -06:00
.buildkite Bump borsh to 0.10.3 (#30975) 2023-05-30 23:33:21 +02:00
.github Patch ntapi to restore windows build (#31961) 2023-06-05 16:51:43 +09:00
account-decoder Hide Keybase and replace with URL (#31852) 2023-06-06 06:22:55 -07:00
accounts-bench
accounts-cluster-bench Clean up Spl type conversions (#31845) 2023-05-30 14:34:38 -06:00
banking-bench
banks-client ci: update cargo.toml (#31934) 2023-06-02 15:08:07 +00:00
banks-interface
banks-server Cleanup - require_static_program_ids_in_transaction (#31767) 2023-06-07 17:12:41 +02:00
bench-streamer
bench-tps removes redundant NewConnectionConfig trait (#31979) 2023-06-06 21:28:29 +00:00
bloom
bucket_map
cd
ci ci: fix publish crate version checking (#31894) 2023-06-01 14:28:10 +08:00
clap-utils
clap-v3-utils
cli Hide Keybase and replace with URL (#31852) 2023-06-06 06:22:55 -07:00
cli-config
cli-output
client removes redundant NewConnectionConfig trait (#31979) 2023-06-06 21:28:29 +00:00
client-test Pass Arc<AtomicBool> by value, not by reference. (#31916) 2023-06-01 17:25:48 -07:00
connection-cache removes redundant NewConnectionConfig trait (#31979) 2023-06-06 21:28:29 +00:00
core Cleanup - require_static_program_ids_in_transaction (#31767) 2023-06-07 17:12:41 +02:00
docs Hide Keybase and replace with URL (#31852) 2023-06-06 06:22:55 -07:00
dos
download-utils
entry Cleanup - require_static_program_ids_in_transaction (#31767) 2023-06-07 17:12:41 +02:00
faucet
frozen-abi
genesis
genesis-utils
geyser-plugin-interface
geyser-plugin-manager GeyserPluginService: Use common `exit` flag. (#31915) 2023-06-01 11:20:59 -07:00
gossip Pass Arc<AtomicBool> by value, not by reference. (#31916) 2023-06-01 17:25:48 -07:00
install
keygen
ledger Cleanup - require_static_program_ids_in_transaction (#31767) 2023-06-07 17:12:41 +02:00
ledger-tool Cleanup - require_static_program_ids_in_transaction (#31767) 2023-06-07 17:12:41 +02:00
local-cluster Pass Arc<AtomicBool> by value, not by reference. (#31916) 2023-06-01 17:25:48 -07:00
log-analyzer
logger
measure ci: deflake `Measurement` tests (#31812) 2023-05-25 12:46:46 -06:00
memory-management
merkle-root-bench
merkle-tree
metrics fix prometheus path reference (#32003) 2023-06-07 02:56:55 +00:00
multinode-demo
net
net-shaper
net-utils
notifier
perf check simple vote could have 1 or 2 signatures when creating sanitized transaction (#31807) 2023-05-25 15:45:15 -05:00
poh Pass Arc<AtomicBool> by value, not by reference. (#31916) 2023-06-01 17:25:48 -07:00
poh-bench
program-runtime Add runtime environment to FailedVerification tombstones (#31991) 2023-06-06 22:24:39 +00:00
program-test
programs Bump libc from 0.2.145 to 0.2.146 (#32010) 2023-06-07 12:18:40 -06:00
pubsub-client
quic-client removes redundant NewConnectionConfig trait (#31979) 2023-06-06 21:28:29 +00:00
rayon-threadlimit
rbpf-cli
remote-wallet
rpc Cleanup - require_static_program_ids_in_transaction (#31767) 2023-06-07 17:12:41 +02:00
rpc-client
rpc-client-api
rpc-client-nonce-utils
rpc-test
runtime add RewardInterval::InsideInterval (#31799) 2023-06-07 09:56:36 -07:00
scripts Bump patched ntapi from v0.3.6 to v0.3.7 (#31981) 2023-06-06 13:33:57 +09:00
sdk Fixup missed instances of SanitizedTransaction::try_create() (#32013) 2023-06-07 11:39:51 -05:00
send-transaction-service Fixing send-transaction-service using quic, tpu address is wrong (#31899) 2023-06-02 09:25:23 -07:00
stake-accounts
storage-bigtable
storage-proto add ProgramExecutionTemporarilyRestricted error (#31796) 2023-06-06 14:13:41 -07:00
streamer Use QUIC Retry packets during handshake (#31802) 2023-06-06 14:23:23 -07:00
system-test
test-validator
thin-client removes redundant NewConnectionConfig trait (#31979) 2023-06-06 21:28:29 +00:00
tokens Clean up Spl type conversions (#31845) 2023-05-30 14:34:38 -06:00
tpu-client removes redundant NewConnectionConfig trait (#31979) 2023-06-06 21:28:29 +00:00
transaction-dos
transaction-status Cleanup - require_static_program_ids_in_transaction (#31767) 2023-06-07 17:12:41 +02:00
udp-client removes redundant NewConnectionConfig trait (#31979) 2023-06-06 21:28:29 +00:00
upload-perf
validator Pass Arc<AtomicBool> by value, not by reference. (#31916) 2023-06-01 17:25:48 -07:00
version
watchtower Add --active-stake-alert-threshold to watchtower (#31858) 2023-05-29 23:33:11 +00:00
web3.js
zk-keygen
zk-token-sdk ci: update cargo.toml (#31934) 2023-06-02 15:08:07 +00:00
.clippy.toml
.codecov.yml
.gitignore
.mergify.yml Add Mergify rules for v1.16 backport (#31875) 2023-05-30 15:07:05 -05:00
.travis.yml
CONTRIBUTING.md
Cargo.lock Bump libc from 0.2.145 to 0.2.146 (#32010) 2023-06-07 12:18:40 -06:00
Cargo.toml Bump libc from 0.2.145 to 0.2.146 (#32010) 2023-06-07 12:18:40 -06:00
LICENSE Correct LICENSE to conform with https://apache.org/licenses/LICENSE-2.0 (#31860) 2023-05-31 03:06:42 +00:00
README.md
RELEASE.md
SECURITY.md
cargo
cargo-build-bpf
cargo-build-sbf
cargo-test-bpf
cargo-test-sbf
fetch-perf-libs.sh
fetch-spl.sh
nextest.toml
run.sh
rust-toolchain.toml
rustfmt.toml
test-abi.sh
vercel.json

README.md

Solana

Solana crate Solana documentation Build status codecov

Building

1. Install rustc, cargo and rustfmt.

$ curl https://sh.rustup.rs -sSf | sh
$ source $HOME/.cargo/env
$ rustup component add rustfmt

When building the master branch, please make sure you are using the latest stable rust version by running:

$ rustup update

When building a specific release branch, you should check the rust version in ci/rust-version.sh and if necessary, install that version by running:

$ rustup install VERSION

Note that if this is not the latest rust version on your machine, cargo commands may require an override in order to use the correct version.

On Linux systems you may need to install libssl-dev, pkg-config, zlib1g-dev, protobuf etc.

On Ubuntu:

$ sudo apt-get update
$ sudo apt-get install libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang cmake make libprotobuf-dev protobuf-compiler

On Fedora:

$ sudo dnf install openssl-devel systemd-devel pkg-config zlib-devel llvm clang cmake make protobuf-devel protobuf-compiler perl-core

2. Download the source code.

$ git clone https://github.com/solana-labs/solana.git
$ cd solana

3. Build.

$ ./cargo build

Testing

Run the test suite:

$ ./cargo test

Starting a local testnet

Start your own testnet locally, instructions are in the online docs.

Accessing the remote development cluster

  • devnet - stable public cluster for development accessible via devnet.solana.com. Runs 24/7. Learn more about the public clusters

Benchmarking

First, install the nightly build of rustc. cargo bench requires the use of the unstable features only available in the nightly build.

$ rustup install nightly

Run the benchmarks:

$ cargo +nightly bench

Release Process

The release process for this project is described here.

Code coverage

To generate code coverage statistics:

$ scripts/coverage.sh
$ open target/cov/lcov-local/index.html

Why coverage? While most see coverage as a code quality metric, we see it primarily as a developer productivity metric. When a developer makes a change to the codebase, presumably it's a solution to some problem. Our unit-test suite is how we encode the set of problems the codebase solves. Running the test suite should indicate that your change didn't infringe on anyone else's solutions. Adding a test protects your solution from future changes. Say you don't understand why a line of code exists, try deleting it and running the unit-tests. The nearest test failure should tell you what problem was solved by that code. If no test fails, go ahead and submit a Pull Request that asks, "what problem is solved by this code?" On the other hand, if a test does fail and you can think of a better way to solve the same problem, a Pull Request with your solution would most certainly be welcome! Likewise, if rewriting a test can better communicate what code it's protecting, please send us that patch!

Disclaimer

All claims, content, designs, algorithms, estimates, roadmaps, specifications, and performance measurements described in this project are done with the Solana Labs, Inc. (“SL”) good faith efforts. It is up to the reader to check and validate their accuracy and truthfulness. Furthermore, nothing in this project constitutes a solicitation for investment.

Any content produced by SL or developer resources that SL provides are for educational and inspirational purposes only. SL does not encourage, induce or sanction the deployment, integration or use of any such applications (including the code comprising the Solana blockchain protocol) in violation of applicable laws or regulations and hereby prohibits any such deployment, integration or use. This includes the use of any such applications by the reader (a) in violation of export control or sanctions laws of the United States or any other applicable jurisdiction, (b) if the reader is located in or ordinarily resident in a country or territory subject to comprehensive sanctions administered by the U.S. Office of Foreign Assets Control (OFAC), or (c) if the reader is or is working on behalf of a Specially Designated National (SDN) or a person subject to similar blocking or denied party prohibitions.

The reader should be aware that U.S. export control and sanctions laws prohibit U.S. persons (and other persons that are subject to such laws) from transacting with persons in certain countries and territories or that are on the SDN list. Accordingly, there is a risk to individuals that other persons using any of the code contained in this repo, or a derivation thereof, may be sanctioned persons and that transactions with such persons would be a violation of U.S. export controls and sanctions law.