Skip to content

Commit 02f6902

Browse files
committed
Update min Rust version; Add more details
1 parent eec7d99 commit 02f6902

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/manual/Installing/Installing-from-source-Unix.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,11 @@ pkg install -y rust
192192
193193
Starting with ClamAV v0.105, a Rust toolchain is required to compile portions of libclamav. You can install the appropriate toolchain for your development environment by following the instructions on the [rustup](https://rustup.rs) website. This ensures that you have the most up-to-date compiler available at the time of installation; keep your toolchain updated for new features and bug/security fixes by periodically executing: `rustup update`.
194194
195-
Building ClamAV requires, at a minimum, Rust compiler version 1.56, as it relies on features introduced in the [Rust 2021 Edition](https://doc.rust-lang.org/edition-guide/rust-2021/index.html).
195+
> _Note_: The minimum supported Rust version varies with each ClamAV release. We make a best effort to never raise the minimum Rust version with patch versions. For example:
196+
> - the minimum Rust version for ClamAV 1.0.0 is Rust 1.61.0. ClamAV 1.0.1+ should also build with Rust 1.61.0.
197+
> - the minimum Rust version for ClamAV 1.4.0 is Rust 1.70.0. ClamAV 1.4.1+ should also build with Rust 1.70.0.
198+
>
199+
> Your distribution may provide a `rust` or `cargo` package, but there is a very good chance it that it will be too old to compile ClamAV.
196200
197201
Depending on your target environment, compilers may be manually installed without downloading and executing the `rustup` script. Some platforms (e.g., Alpine Linux) provide packages that are recent-enough to build ClamAV. For distributions that provide no package, or toolchains that are too old, if you are unable or unwilling to utilize `rustup`, you may [download and install prebuilt toolchain binaries directly from rust-lang.org](https://forge.rust-lang.org/infra/other-installation-methods.html#standalone).
198202

0 commit comments

Comments
 (0)