Go to file
dependabot[bot] 2b4a6a4dd9
Bump libloading from 0.7.3 to 0.7.4 (#30216)
Bumps [libloading](https://github.com/nagisa/rust_libloading) from 0.7.3
to 0.7.4.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="6e284984ae"><code>6e28498</code></a>
Fix CI</li>
<li><a
href="95a0f62e8f"><code>95a0f62</code></a>
Placate clippy</li>
<li><a
href="224a3def35"><code>224a3de</code></a>
Release 0.7.4</li>
<li><a
href="bd17713dcc"><code>bd17713</code></a>
Support AIX dyld constants</li>
<li><a
href="6e07929736"><code>6e07929</code></a>
fix typo</li>
<li><a
href="6b33651a90"><code>6b33651</code></a>
Construct a PathBuf</li>
<li><a
href="964dd8b4c0"><code>964dd8b</code></a>
Simplify lib_path</li>
<li><a
href="8009f51a9f"><code>8009f51</code></a>
Honor Cargo's target directory when building LIBPATH</li>
<li><a
href="842e377ae4"><code>842e377</code></a>
Fix a typo in the CI scripts</li>
<li>See full diff in <a
href="https://github.com/nagisa/rust_libloading/compare/0.7.3...0.7.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=libloading&package-manager=cargo&previous-version=0.7.3&new-version=0.7.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

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-02-09 10:53:18 -07:00
.buildkite chore: stop uploading test data to buildkite (#28411) 2022-10-17 00:48:06 +08:00
.github ci: cancel previous Windows build when start a new one (#30086) 2023-02-03 11:54:29 +08:00
account-decoder Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
accounts-bench Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
accounts-cluster-bench Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
banking-bench Refactor connection cache to support generic msgs (#29774) 2023-02-01 18:10:06 -08:00
banks-client Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
banks-interface Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
banks-server Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
bench-streamer Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
bench-tps removes dynamic cast and dynamic dispatch from connection-cache (#30128) 2023-02-09 00:50:44 +00:00
bloom Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
bucket_map Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
cd Create continuous delivery directory and add readme with canary details. (#27683) 2022-09-13 14:33:49 -05:00
ci ci: make merge conflict marker sanity check more robust (#29995) 2023-02-01 21:15:12 -07:00
clap-utils Use RangeBounds for is_within_range (#29763) 2023-02-01 09:17:12 -08:00
clap-v3-utils Use RangeBounds for is_within_range (#29763) 2023-02-01 09:17:12 -08:00
cli removes dynamic cast and dynamic dispatch from connection-cache (#30128) 2023-02-09 00:50:44 +00:00
cli-config Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
cli-output Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
client removes dynamic cast and dynamic dispatch from connection-cache (#30128) 2023-02-09 00:50:44 +00:00
client-test Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
connection-cache removes dynamic cast and dynamic dispatch from connection-cache (#30128) 2023-02-09 00:50:44 +00:00
core BankingStage Refactor: transaction recorder record transactions (#30106) 2023-02-09 08:34:02 -08:00
docs [docs] style: prettier force line length to 80 chars (#30133) 2023-02-09 03:23:21 +00:00
dos removes dynamic cast and dynamic dispatch from connection-cache (#30128) 2023-02-09 00:50:44 +00:00
download-utils Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
entry chore: Use `i` over `ix` variable name when naming worker threads (#30206) 2023-02-09 01:24:57 +00:00
explorer [explorer] Add Account Compression Program to searchable programs on explorer (#30033) 2023-02-01 00:31:17 -05:00
faucet Use Ipv4Addr constants in socketaddr! (#30095) 2023-02-02 16:48:21 -07:00
frozen-abi Bump rand_core from 0.6.3 to 0.6.4 (#30114) 2023-02-08 21:27:26 -07:00
genesis Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
genesis-utils Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
geyser-plugin-interface Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
geyser-plugin-manager Bump libloading from 0.7.3 to 0.7.4 (#30216) 2023-02-09 10:53:18 -07:00
gossip flattens the internal buffer in the duplicate-shreds handler (#30196) 2023-02-09 16:33:20 +00:00
install Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
keygen Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
ledger chore: Use `i` over `ix` variable name when naming worker threads (#30206) 2023-02-09 01:24:57 +00:00
ledger-tool ledger-tool: Move shred storage type inference next to Blockstore::open (#30084) 2023-02-02 16:55:18 -06:00
local-cluster Refactor connection cache to support generic msgs (#29774) 2023-02-01 18:10:06 -08:00
log-analyzer Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
logger Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
measure Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
memory-management Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
merkle-root-bench Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
merkle-tree Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
metrics Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
multinode-demo Added option to turn on UDP for TPU transaction and make UDP based TPU off by default (#27462) 2022-09-07 13:19:14 -07:00
net add client-type cli option documentation (#30170) 2023-02-08 10:56:25 +01:00
net-shaper Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
net-utils Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
notifier Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
perf chore: Use `i` over `ix` variable name when naming worker threads (#30206) 2023-02-09 01:24:57 +00:00
poh BankingStage Refactor: transaction recorder record transactions (#30106) 2023-02-09 08:34:02 -08:00
poh-bench Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
program-runtime Bump libloading from 0.7.3 to 0.7.4 (#30216) 2023-02-09 10:53:18 -07:00
program-test Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
programs Bump libloading from 0.7.3 to 0.7.4 (#30216) 2023-02-09 10:53:18 -07:00
pubsub-client Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
quic-client removes dynamic cast and dynamic dispatch from connection-cache (#30128) 2023-02-09 00:50:44 +00:00
rayon-threadlimit Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
rbpf-cli Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
remote-wallet Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
rpc Use Ipv4Addr constants in socketaddr! (#30095) 2023-02-02 16:48:21 -07:00
rpc-client Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
rpc-client-api Fix camelCase response for RpcPrioritizationFee (#30162) 2023-02-07 13:42:58 -07:00
rpc-client-nonce-utils Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
rpc-test removes dynamic cast and dynamic dispatch from connection-cache (#30128) 2023-02-09 00:50:44 +00:00
runtime AliveAccounts includes source slot (#30208) 2023-02-09 05:57:58 -08:00
scripts Fuck this whole web3.js thing (#30062) 2023-02-01 14:34:23 -08:00
sdk sdk: Make `declare_id` mostly const (#30177) 2023-02-09 01:26:09 +01:00
send-transaction-service removes dynamic cast and dynamic dispatch from connection-cache (#30128) 2023-02-09 00:50:44 +00:00
stake-accounts Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
storage-bigtable Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
storage-proto Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
streamer Exclude loopback from valid IP addresses (#29992) 2023-02-01 11:16:15 -08:00
sys-tuner Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
system-test chore: all gce performance tests use n2-standard-16 (#28509) 2022-10-22 00:34:20 +08:00
test-validator Use Ipv4Addr constants in socketaddr! (#30095) 2023-02-02 16:48:21 -07:00
thin-client removes dynamic cast and dynamic dispatch from connection-cache (#30128) 2023-02-09 00:50:44 +00:00
tokens Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
tpu-client removes dynamic cast and dynamic dispatch from connection-cache (#30128) 2023-02-09 00:50:44 +00:00
transaction-dos Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
transaction-status Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
udp-client removes dynamic cast and dynamic dispatch from connection-cache (#30128) 2023-02-09 00:50:44 +00:00
upload-perf Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
validator Refactor connection cache to support generic msgs (#29774) 2023-02-01 18:10:06 -08:00
version Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
watchtower Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
zk-token-sdk Bump version to v1.16 (#30028) 2023-01-31 17:48:33 -06:00
.clippy.toml
.gitignore Ingest duplicate proofs sent through Gossip (#29227) 2023-01-19 13:00:56 -08:00
.mergify.yml Mergify: include destination branch in backport PR title (#30153) 2023-02-06 16:13:54 -08:00
.travis.yml Fuck this whole web3.js thing (#30062) 2023-02-01 14:34:23 -08:00
CONTRIBUTING.md Update maintainers references (#29997) 2023-01-31 08:07:13 -05:00
Cargo.lock Bump libloading from 0.7.3 to 0.7.4 (#30216) 2023-02-09 10:53:18 -07:00
Cargo.toml Refactor connection cache to support generic msgs (#29774) 2023-02-01 18:10:06 -08:00
LICENSE update license 2023-01-30 15:42:44 -05:00
README.md update disclaimer 2023-01-30 17:40:53 -05:00
RELEASE.md RELEASE.md cleanup (#28007) 2022-09-24 20:30:25 -06:00
SECURITY.md security-policy: correct bounty split example 2023-01-17 16:19:38 -07:00
cargo Speed up net.sh builds (#16360) 2021-04-07 14:45:03 +08:00
cargo-build-bpf replace ./cargo with cargo in sbf/bpf build scripts (#29371) 2022-12-22 20:17:11 +01:00
cargo-build-sbf replace ./cargo with cargo in sbf/bpf build scripts (#29371) 2022-12-22 20:17:11 +01:00
cargo-test-bpf replace ./cargo with cargo in sbf/bpf build scripts (#29371) 2022-12-22 20:17:11 +01:00
cargo-test-sbf replace ./cargo with cargo in sbf/bpf build scripts (#29371) 2022-12-22 20:17:11 +01:00
fetch-perf-libs.sh
fetch-spl.sh solana-genesis: add support for initializing upgradeable programs (#29994) 2023-01-31 11:15:42 -07:00
run.sh
rust-toolchain.toml Upgrades to Rust 1.66.1 (#29827) 2023-01-24 15:11:10 +08:00
rustfmt.toml Add rustfmt.toml and `cargo fmt` (#23238) 2022-02-19 13:32:29 +08:00
test-abi.sh
vercel.json removing the "autoJobCancelation": false 2021-10-07 20:49:58 +05:30

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.