From f09f8fd8a4224a9048feb05bdc9bf23fe438f9f0 Mon Sep 17 00:00:00 2001 From: link2xt Date: Thu, 20 Aug 2026 12:50:03 +0000 Subject: [PATCH] docs: always suggest using --locked with "cargo install" Otherwise the lockfile is completely ignored as says "By default, the Cargo.lock file that is included with the package will be ignored." Mostly a reaction to --- README.md | 2 +- deltachat-rpc-server/README.md | 2 +- deltachat-rpc-server/npm-package/src/errors.js | 2 +- python/doc/jsonrpc/install.rst | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ba61fe7a5..bbdef3c30 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ $ cargo test -- --ignored Install [`cargo-bolero`](https://github.com/camshaft/bolero) with ```sh -$ cargo install cargo-bolero +$ cargo install --locked cargo-bolero ``` Run fuzzing tests with diff --git a/deltachat-rpc-server/README.md b/deltachat-rpc-server/README.md index a5108c4c8..7cd84463d 100644 --- a/deltachat-rpc-server/README.md +++ b/deltachat-rpc-server/README.md @@ -11,7 +11,7 @@ Rename the downloaded binary to `deltachat-rpc-server` and add it to your `PATH` To install from source run: ```sh -cargo install --git https://github.com/chatmail/core/ deltachat-rpc-server +cargo install --locked --git https://github.com/chatmail/core/ deltachat-rpc-server ``` The `deltachat-rpc-server` executable will be installed into `$HOME/.cargo/bin` that should be available diff --git a/deltachat-rpc-server/npm-package/src/errors.js b/deltachat-rpc-server/npm-package/src/errors.js index 92f23c194..23737cf0b 100644 --- a/deltachat-rpc-server/npm-package/src/errors.js +++ b/deltachat-rpc-server/npm-package/src/errors.js @@ -2,7 +2,7 @@ import { ENV_VAR_NAME } from "./const.js"; const cargoInstallCommand = - "cargo install --git https://github.com/chatmail/core deltachat-rpc-server"; + "cargo install --locked --git https://github.com/chatmail/core deltachat-rpc-server"; export function NPM_NOT_FOUND_SUPPORTED_PLATFORM_ERROR(package_name) { return `deltachat-rpc-server not found: diff --git a/python/doc/jsonrpc/install.rst b/python/doc/jsonrpc/install.rst index 82daf44f5..d0f6133ff 100644 --- a/python/doc/jsonrpc/install.rst +++ b/python/doc/jsonrpc/install.rst @@ -17,7 +17,7 @@ Install ``deltachat-rpc-server`` To get ``deltachat-rpc-server`` binary you have three options: 1. Install ``deltachat-rpc-server`` from PyPI using ``pip install deltachat-rpc-server``. -2. Build and install ``deltachat-rpc-server`` from source with ``cargo install --git https://github.com/chatmail/core/ deltachat-rpc-server``. +2. Build and install ``deltachat-rpc-server`` from source with ``cargo install --locked --git https://github.com/chatmail/core/ deltachat-rpc-server``. 3. Download prebuilt release from https://github.com/chatmail/core/releases and install it into ``PATH``. Check that ``deltachat-rpc-server`` is installed and can run::