the runtime your coding agents live on
Rust agentagent-orchestrationaiai-agentsclaude-codeclicodexcoding-agentsdeveloper-toolsdevtoolsmultiplexerrustterminalterminal-multiplexerterminal-uitmuxtuiworkspace-manager
ci: pin rust toolchain to 1.96.1
Ogulcan Celikb137c7b5ea55
diff --git a/.github/workflows/build-artifacts-manual.yml b/.github/workflows/build-artifacts-manual.ymlindex 320526efc..3896138c5 100644--- a/.github/workflows/build-artifacts-manual.yml+++ b/.github/workflows/build-artifacts-manual.yml@@ -38,6 +38,7 @@ permissions:env:FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true+ RUST_TOOLCHAIN_VERSION: 1.96.1jobs:build-linux:@@ -63,8 +64,9 @@ jobs:persist-credentials: false- name: Install Rust- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable+ uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # v1with:+ toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}targets: ${{ matrix.target }}- name: Install Zig@@ -146,8 +148,9 @@ jobs:persist-credentials: false- name: Install Rust- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable+ uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # v1with:+ toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}targets: ${{ matrix.target }}- name: Install Zig@@ -198,8 +201,9 @@ jobs:persist-credentials: false- name: Install Rust- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable+ uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # v1with:+ toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}targets: x86_64-pc-windows-msvc- name: Install Zigdiff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 1a3f723b8..ca1ebce8b 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -12,6 +12,9 @@ on:permissions:contents: read+env:+ RUST_TOOLCHAIN_VERSION: 1.96.1+concurrency:group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}cancel-in-progress: true@@ -59,12 +62,17 @@ jobs:- name: Install Rustif: matrix.kind == 'unix'- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable+ uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # v1+ with:+ toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}+ components: rustfmt,clippy- name: Install Rustif: matrix.kind == 'windows'- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable+ uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # v1with:+ toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}+ components: rustfmt,clippytargets: x86_64-pc-windows-msvc- name: Install Rust toolsdiff --git a/.github/workflows/preview.yml b/.github/workflows/preview.ymlindex 1adfcc988..fabb2edcc 100644--- a/.github/workflows/preview.yml+++ b/.github/workflows/preview.yml@@ -13,6 +13,7 @@ permissions:env:FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true+ RUST_TOOLCHAIN_VERSION: 1.96.1concurrency:group: preview-publish@@ -82,7 +83,10 @@ jobs:- name: Install Rustif: steps.plan.outputs.should_publish == 'true'- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable+ uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # v1+ with:+ toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}+ components: rustfmt,clippy- name: Install Rust toolsif: steps.plan.outputs.should_publish == 'true'@@ -150,8 +154,9 @@ jobs:persist-credentials: false- name: Install Rust- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable+ uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # v1with:+ toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}targets: ${{ matrix.target }}- name: Install Zigdiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 4d1e256d5..2d07a8f8d 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -10,6 +10,7 @@ permissions:env:FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true+ RUST_TOOLCHAIN_VERSION: 1.96.1jobs:flake-check:@@ -81,8 +82,9 @@ jobs:fi- name: Install Rust- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable+ uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # v1with:+ toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}targets: ${{ matrix.target }}- name: Install Zigdiff --git a/flake.lock b/flake.lockindex 421a64fcb..55be748e8 100644--- a/flake.lock+++ b/flake.lock@@ -18,7 +18,28 @@},"root": {"inputs": {- "nixpkgs": "nixpkgs"+ "nixpkgs": "nixpkgs",+ "rust-overlay": "rust-overlay"+ }+ },+ "rust-overlay": {+ "inputs": {+ "nixpkgs": [+ "nixpkgs"+ ]+ },+ "locked": {+ "lastModified": 1783577481,+ "narHash": "sha256-EWMxOWrJ031f8f/lrcEmhTRs4npw1/5N3Hcjin846c8=",+ "owner": "oxalica",+ "repo": "rust-overlay",+ "rev": "4cdea398dc491b082dccdce0fad1ed0b75fa3394",+ "type": "github"+ },+ "original": {+ "owner": "oxalica",+ "repo": "rust-overlay",+ "type": "github"}}},diff --git a/flake.nix b/flake.nixindex 3a91a3ca0..4d49de7d5 100644--- a/flake.nix+++ b/flake.nix@@ -3,10 +3,18 @@inputs = {nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";+ rust-overlay = {+ url = "github:oxalica/rust-overlay";+ inputs.nixpkgs.follows = "nixpkgs";+ };};outputs =- { self, nixpkgs }:+ {+ self,+ nixpkgs,+ rust-overlay,+ }:letlib = nixpkgs.lib;systems = [@@ -16,14 +24,31 @@"aarch64-darwin"];forAllSystems = lib.genAttrs systems;- pkgsFor = system: import nixpkgs { inherit system; };+ pkgsFor =+ system:+ import nixpkgs {+ inherit system;+ overlays = [ rust-overlay.overlays.default ];+ };+ rustToolchainFor = pkgs: pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;+ rustPlatformFor =+ pkgs:+ let+ rustToolchain = rustToolchainFor pkgs;+ in+ pkgs.makeRustPlatform {+ cargo = rustToolchain;+ rustc = rustToolchain;+ };in{packages = forAllSystems (system:letpkgs = pkgsFor system;- herdr = pkgs.callPackage ./nix/package.nix { };+ herdr = pkgs.callPackage ./nix/package.nix {+ rustPlatform = rustPlatformFor pkgs;+ };in{inherit herdr;@@ -48,20 +73,18 @@system:letpkgs = pkgsFor system;+ rustToolchain = rustToolchainFor pkgs;in{default = pkgs.mkShell {name = "herdr-dev";packages = with pkgs; [- cargocargo-nextest- clippycmakejustninjapkg-config- rustc- rustfmt+ rustToolchainzig_0_15];@@ -75,8 +98,12 @@formatter = forAllSystems (system: (pkgsFor system).nixfmt);- overlays.default = final: _prev: {- herdr = final.callPackage ./nix/package.nix { };- };+ overlays.default = lib.composeExtensions rust-overlay.overlays.default (+ final: _prev: {+ herdr = final.callPackage ./nix/package.nix {+ rustPlatform = rustPlatformFor final;+ };+ }+ );};}diff --git a/rust-toolchain.toml b/rust-toolchain.tomlnew file mode 100644index 000000000..940382286--- /dev/null+++ b/rust-toolchain.toml@@ -0,0 +1,3 @@+[toolchain]+channel = "1.96.1"+components = ["clippy", "rustfmt"]