From 3fa2c6cd5b45f6b56e78ea69df84d838644d0e84 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Wed, 17 Jul 2024 16:25:29 +0100 Subject: [PATCH] Update README comment about `cargo add` (#841) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since `libcnb.rs`'s minimum Rust version is now Rust 1.76, so the "or install cargo-edit" suggestion won't help if `cargo add` is missing, since theĀ user will need to update their Rust version regardless. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 997f1968..8e3dd9a9 100644 --- a/README.md +++ b/README.md @@ -71,8 +71,8 @@ Then, add the `libcnb` dependency to your project's `Cargo.toml`: cargo add libcnb ``` -Note: If you get an error about `cargo add` not being a supported command, make sure you are -using Rust 1.62+, or else install [cargo-edit](https://github.com/killercup/cargo-edit). +Note: If you get an error about `cargo add` not being a supported command, your Rust version is too old +and will need to be updated (ideally to the latest stable version). Since we're writing a Cloud Native Buildpack, we also need a `buildpack.toml`. Use the template below and write it to a file named `buildpack.toml` in the root of your project, right next to `Cargo.toml`.