-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathrust-toolchain.toml
More file actions
26 lines (25 loc) · 1.37 KB
/
Copy pathrust-toolchain.toml
File metadata and controls
26 lines (25 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# SPDX-FileCopyrightText: 2026 Marcus Baw and Baw Medical Ltd
# SPDX-License-Identifier: AGPL-3.0-or-later
# Pinned so that every environment - including ephemeral agent sandboxes that
# ship an older rustc - can build the bundled SQLite in `libsqlite3-sys`, whose
# build script uses the `cfg_select!` macro stabilised in Rust 1.95.0. On 1.94
# and earlier that build script fails outright, taking the whole test suite with
# it, which is why nightly pull requests have reported being unable to run
# `cargo test`. Bumping libsqlite3-sys to 0.38.2 does not help: it still uses
# the macro.
#
# 1.95.0 is the *lowest* version that builds, not a preference for an old
# toolchain. The MSRV promised to consumers of the library is separate, and
# stays `rust-version` in Cargo.toml.
#
# Project convention: native CI/release setup uses plain rustup, not a toolchain
# Action. `rustup toolchain install` without a channel installs the active pin,
# with this file's profile and components rather than updating
# an unrelated `stable`. It then logs the effective compiler/Cargo versions.
# RUSTUP_TOOLCHAIN and directory overrides take precedence over this file;
# CI does not set either. Raise the pin deliberately to test newer compilers.
# Nix, Docker and maturin's manylinux bootstrap have their own setup paths.
[toolchain]
channel = "1.95.0"
profile = "minimal"
components = ["clippy", "rustfmt"]