Go to file
dependabot-preview[bot] 9227874ada
Bump regex from 1.3.7 to 1.3.8 (#10293)
* Bump regex from 1.3.7 to 1.3.8

Bumps [regex](https://github.com/rust-lang/regex) from 1.3.7 to 1.3.8.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/regex-1.3.7...1.3.8)

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

* [auto-commit] Update all Cargo lock files

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2020-05-28 10:02:23 -07:00
.buildkite Remove , 2020-03-23 22:12:16 -07:00
.github Stalebot: Exempt 'blocked' label (#10268) 2020-05-27 11:20:45 -07:00
accounts-bench
banking-bench Optimize banking processing of AccountInUse (#10154) 2020-05-22 15:01:01 -07:00
bench-exchange move builtin programs out of bank (#10132) 2020-05-19 19:45:30 -07:00
bench-streamer Advertise node software version in gossip (#9981) 2020-05-11 15:02:01 -07:00
bench-tps Add option to wait for a specific epoch length to bench-tps (#10083) 2020-05-20 16:42:46 -07:00
ci Use correct --url (#10284) 2020-05-27 21:02:58 -07:00
clap-utils
cli CLI: Don't display inactive stake lockups 2020-05-28 09:45:20 -06:00
cli-config Bump serde_yaml from 0.8.11 to 0.8.12 (#9966) 2020-05-10 18:11:23 -07:00
client Add commitment parameter to getFeeCalculatorForBlockhash (#10255) 2020-05-26 17:23:58 -06:00
core Bump regex from 1.3.7 to 1.3.8 (#10293) 2020-05-28 10:02:23 -07:00
crate-features Update dalek version 2020-04-28 21:02:47 -06:00
docs Adjust mainnet-beta shred version 2020-05-27 17:11:49 -07:00
dos
download-utils Bump tar from 0.4.27 to 0.4.28 (#10185) 2020-05-22 15:55:40 -07:00
faucet
genesis
genesis-programs
gossip
install Bump tar from 0.4.27 to 0.4.28 (#10185) 2020-05-22 15:55:40 -07:00
keygen Advertise node software version in gossip (#9981) 2020-05-11 15:02:01 -07:00
ledger Bump regex from 1.3.7 to 1.3.8 (#10293) 2020-05-28 10:02:23 -07:00
ledger-tool Purge next slots to avoid a blockstore_processor panic on restart (#10281) 2020-05-27 19:55:40 -07:00
local-cluster
log-analyzer Bump byte-unit from 3.1.2 to 3.1.3 (#10248) 2020-05-26 11:04:06 -07:00
logger
measure Only build x86_64-unknown-linux-gnu on docs.rs 2020-04-16 19:06:17 -07:00
merkle-tree 9951 clippy errors in the test suite (#10030) 2020-05-15 09:35:43 -07:00
metrics LedgerCleanupService no longer causes an OOM and actually purges (#10199) 2020-05-24 21:41:54 -07:00
multinode-demo Fetch rpc-url from the gossip entrypoint (#10152) 2020-05-20 14:52:41 -07:00
net multinode-demo/faucet.sh is no longer required (#10129) 2020-05-19 20:07:30 -07:00
net-shaper Bump clap from 2.33.0 to 2.33.1 (#9978) 2020-05-11 14:32:50 -07:00
net-utils Retry a couple times before declaring a UDP port unreachable (#10181) 2020-05-22 14:33:01 -07:00
notifier Remove notifier module duplication (#10051) 2020-05-14 17:32:08 -07:00
perf
programs Bump regex from 1.3.7 to 1.3.8 (#10293) 2020-05-28 10:02:23 -07:00
ramp-tps Bump tar from 0.4.27 to 0.4.28 (#10185) 2020-05-22 15:55:40 -07:00
rayon-threadlimit
remote-wallet Bump hidapi from 1.2.1 to 1.2.2 (#10210) 2020-05-24 19:39:06 -07:00
runtime Add more logging while unpacking snapshots (#10266) 2020-05-27 10:41:05 -07:00
scripts Add stake-o-matic (#10044) 2020-05-20 16:15:03 -07:00
sdk Include GenesisConfig inflation in Display (#10282) 2020-05-27 22:35:19 -07:00
stake-accounts Add unique_signers() to SDK (#10105) 2020-05-18 18:31:45 -07:00
stake-monitor Advertise node software version in gossip (#9981) 2020-05-11 15:02:01 -07:00
stake-o-matic Sort notifications for easier scanning on Discord (#10208) 2020-05-24 00:20:57 -07:00
streamer Bump libc from 0.2.70 to 0.2.71 (#10249) 2020-05-26 11:04:15 -07:00
sys-tuner Bump libc from 0.2.70 to 0.2.71 (#10249) 2020-05-26 11:04:15 -07:00
system-test Update testnet-automation.sh (#10250) 2020-05-26 13:02:24 -07:00
tokens Add unique_signers() to SDK (#10105) 2020-05-18 18:31:45 -07:00
transaction-status
upload-perf Bump serde_json from 1.0.52 to 1.0.53 (#9957) 2020-05-10 11:46:29 -07:00
validator Verify TPU and serve repair ports are reachable (#10291) 2020-05-28 08:41:06 -07:00
version 9951 clippy errors in the test suite (#10030) 2020-05-15 09:35:43 -07:00
vote-signer 9951 clippy errors in the test suite (#10030) 2020-05-15 09:35:43 -07:00
watchtower Remove folds (#10128) 2020-05-19 18:13:41 -07:00
.clippy.toml
.codecov.yml
.gitbook.yaml
.gitignore
.mergify.yml
.travis.yml
CONTRIBUTING.md Move docs from book/ to docs/ (#8469) 2020-02-26 07:11:38 -08:00
Cargo.lock Bump regex from 1.3.7 to 1.3.8 (#10293) 2020-05-28 10:02:23 -07:00
Cargo.toml Add stake-o-matic (#10044) 2020-05-20 16:15:03 -07:00
LICENSE
README.md Update link 2020-04-18 15:11:55 -07:00
RELEASE.md
fetch-perf-libs.sh
run.sh

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

If your rustc version is lower than 1.39.0, please update it:

$ rustup update

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

$ sudo apt-get update
$ sudo apt-get install libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang

2. Download the source code.

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

3. Build.

$ cargo build

4. Run a minimal local cluster.

$ ./run.sh

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 testnet

  • testnet - public stable testnet accessible via devnet.solana.com. Runs 24/7

Benchmarking

First install the nightly build of rustc. cargo bench requires 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 author's best effort. It is up to the reader to check and validate their accuracy and truthfulness. Furthermore nothing in this project constitutes a solicitation for investment.