Skip to content

Commit

Permalink
change: fail early when using Rust 1.57 and earlier, because they don…
Browse files Browse the repository at this point in the history
…'t work (#4435)

* change: set 1.58 as the minimum required Rust version for zebrad and document it

* Update README.md

Co-authored-by: Deirdre Connolly <[email protected]>

* Apply suggestions from code review

Co-authored-by: teor <[email protected]>

Co-authored-by: Deirdre Connolly <[email protected]>
Co-authored-by: teor <[email protected]>
  • Loading branch information
3 people authored May 19, 2022
1 parent e289063 commit 6c1c551
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ install mechanism. To run `zebrad`, follow the instructions to compile `zebrad`
for your platform:

1. Install [`cargo` and `rustc`](https://www.rust-lang.org/tools/install).
- Zebra is tested with the latest `stable` Rust version.
Earlier versions are not supported or tested, but they might work.
(Rust 1.57 and earlier are not supported, due to missing features.)
2. Install Zebra's build dependencies:
- **libclang:** the `libclang`, `libclang-dev`, `llvm`, or `llvm-dev` packages, depending on your package manager
- **clang** or another C++ compiler: `g++`, `Xcode`, or `MSVC`
Expand Down
3 changes: 3 additions & 0 deletions zebrad/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ authors = ["Zcash Foundation <[email protected]>"]
license = "MIT OR Apache-2.0"
version = "1.0.0-beta.10"
edition = "2021"
# Zebra is only supported on the latest stable Rust version. Some earlier versions might work.
# Zebra uses features introduced in Rust 1.58.
rust-version = "1.58"
repository = "https://github.com/ZcashFoundation/zebra"
# make `cargo run` use `zebrad` by default
# when run in the workspace directory
Expand Down

0 comments on commit 6c1c551

Please sign in to comment.