Lightweight coding agent that runs in your terminal
Rust
chore: upgrade to Rust 1.90 (#4124)
Michael Bolin639a6fd2f39d
diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.ymlindex 280939c611..846408f3a8 100644--- a/.github/workflows/rust-ci.yml+++ b/.github/workflows/rust-ci.yml@@ -57,7 +57,7 @@ jobs:working-directory: codex-rssteps:- uses: actions/checkout@v5- - uses: dtolnay/[email protected]+ - uses: dtolnay/[email protected]with:components: rustfmt- name: cargo fmt@@ -75,7 +75,7 @@ jobs:working-directory: codex-rssteps:- uses: actions/checkout@v5- - uses: dtolnay/[email protected]+ - uses: dtolnay/[email protected]- uses: taiki-e/install-action@0c5db7f7f897c03b771660e91d065338615679f4 # v2with:tool: cargo-shear@@ -143,7 +143,7 @@ jobs:steps:- uses: actions/checkout@v5- - uses: dtolnay/[email protected]+ - uses: dtolnay/[email protected]with:targets: ${{ matrix.target }}components: clippydiff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.ymlindex 29e4a4c7ee..c808216d96 100644--- a/.github/workflows/rust-release.yml+++ b/.github/workflows/rust-release.yml@@ -77,7 +77,7 @@ jobs:steps:- uses: actions/checkout@v5- - uses: dtolnay/[email protected]+ - uses: dtolnay/[email protected]with:targets: ${{ matrix.target }}diff --git a/codex-rs/core/src/client.rs b/codex-rs/core/src/client.rsindex 0ae057b3e8..e088f9c3ab 100644--- a/codex-rs/core/src/client.rs+++ b/codex-rs/core/src/client.rs@@ -415,9 +415,6 @@ struct SseEvent {delta: Option<String>,}-#[derive(Debug, Deserialize)]-struct ResponseCreated {}-#[derive(Debug, Deserialize)]struct ResponseCompleted {id: String,diff --git a/codex-rs/core/src/rollout/recorder.rs b/codex-rs/core/src/rollout/recorder.rsindex 6befdb1fe9..23e645413f 100644--- a/codex-rs/core/src/rollout/recorder.rs+++ b/codex-rs/core/src/rollout/recorder.rs@@ -7,8 +7,6 @@ use std::path::Path;use std::path::PathBuf;use codex_protocol::mcp_protocol::ConversationId;-use serde::Deserialize;-use serde::Serialize;use serde_json::Value;use time::OffsetDateTime;use time::format_description::FormatItem;@@ -28,7 +26,6 @@ use super::policy::is_persisted_response_item;use crate::config::Config;use crate::default_client::ORIGINATOR;use crate::git_info::collect_git_info;-use codex_protocol::models::ResponseItem;use codex_protocol::protocol::InitialHistory;use codex_protocol::protocol::ResumedHistory;use codex_protocol::protocol::RolloutItem;@@ -36,19 +33,6 @@ use codex_protocol::protocol::RolloutLine;use codex_protocol::protocol::SessionMeta;use codex_protocol::protocol::SessionMetaLine;-#[derive(Serialize, Deserialize, Default, Clone)]-pub struct SessionStateSnapshot {}--#[derive(Serialize, Deserialize, Default, Clone)]-pub struct SavedSession {- pub session: SessionMeta,- #[serde(default)]- pub items: Vec<ResponseItem>,- #[serde(default)]- pub state: SessionStateSnapshot,- pub session_id: ConversationId,-}-/// Records all [`ResponseItem`]s for a session and flushes them to disk after/// every update.///diff --git a/codex-rs/core/src/tool_apply_patch.rs b/codex-rs/core/src/tool_apply_patch.rsindex d4039fd192..164a1e127f 100644--- a/codex-rs/core/src/tool_apply_patch.rs+++ b/codex-rs/core/src/tool_apply_patch.rs@@ -10,11 +10,6 @@ use crate::openai_tools::ResponsesApiTool;const APPLY_PATCH_LARK_GRAMMAR: &str = include_str!("tool_apply_patch.lark");-#[derive(Serialize, Deserialize)]-pub(crate) struct ApplyPatchToolArgs {- pub(crate) input: String,-}-#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash)]#[serde(rename_all = "snake_case")]pub enum ApplyPatchToolType {diff --git a/codex-rs/rust-toolchain.toml b/codex-rs/rust-toolchain.tomlindex 0a9f6e8169..7187a33189 100644--- a/codex-rs/rust-toolchain.toml+++ b/codex-rs/rust-toolchain.toml@@ -1,3 +1,3 @@[toolchain]-channel = "1.89.0"-components = [ "clippy", "rustfmt", "rust-src"]+channel = "1.90.0"+components = ["clippy", "rustfmt", "rust-src"]