diff --git a/Cargo.lock b/Cargo.lock index c3002f449719306f3714754b1fd94811b073b150..65e57c3c9bc922edd5d3658b590e5627a63e1d9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2646,7 +2646,6 @@ dependencies = [ "project", "schemars", "serde", - "serde_derive", "settings", "telemetry", "util", @@ -3357,7 +3356,6 @@ dependencies = [ "semantic_version", "semver", "serde", - "serde_derive", "serde_json", "session", "settings", @@ -3413,7 +3411,6 @@ dependencies = [ "rpc", "schemars", "serde", - "serde_derive", "serde_json", "settings", "smallvec", @@ -5783,7 +5780,6 @@ dependencies = [ "schemars", "search", "serde", - "serde_derive", "serde_json", "settings", "text", @@ -6503,7 +6499,6 @@ dependencies = [ "project", "schemars", "serde", - "serde_derive", "serde_json", "settings", "strum 0.27.1", @@ -7474,7 +7469,6 @@ dependencies = [ "seahash", "semantic_version", "serde", - "serde_derive", "serde_json", "slotmap", "smallvec", @@ -12706,7 +12700,6 @@ dependencies = [ "schemars", "search", "serde", - "serde_derive", "serde_json", "settings", "smallvec", @@ -13623,7 +13616,6 @@ dependencies = [ "runtimelib", "schemars", "serde", - "serde_derive", "serde_json", "settings", "smol", @@ -14730,18 +14722,28 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.219" +version = "1.0.221" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "341877e04a22458705eb4e131a1508483c877dca2792b3781d4e5d8a6019ec43" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.221" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" +checksum = "0c459bc0a14c840cb403fc14b148620de1e0778c96ecd6e0c8c3cacb6d8d00fe" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.219" +version = "1.0.221" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" +checksum = "d6185cf75117e20e62b1ff867b9518577271e58abe0037c40bb4794969355ab0" dependencies = [ "proc-macro2", "quote", @@ -14770,15 +14772,15 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.140" +version = "1.0.144" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" +checksum = "56177480b00303e689183f110b4e727bb4211d692c62d4fcd16d02be93077d40" dependencies = [ "indexmap", "itoa", "memchr", "ryu", - "serde", + "serde_core", ] [[package]] @@ -14878,7 +14880,6 @@ dependencies = [ "rust-embed", "schemars", "serde", - "serde_derive", "serde_json", "serde_json_lenient", "serde_path_to_error", @@ -16465,7 +16466,6 @@ dependencies = [ "release_channel", "schemars", "serde", - "serde_derive", "settings", "smol", "sysinfo", @@ -16568,7 +16568,6 @@ dependencies = [ "refineable", "schemars", "serde", - "serde_derive", "serde_json", "serde_json_lenient", "serde_repr", @@ -18068,7 +18067,6 @@ dependencies = [ "schemars", "search", "serde", - "serde_derive", "serde_json", "settings", "task", @@ -20098,7 +20096,7 @@ dependencies = [ "security-framework-sys", "semver", "serde", - "serde_derive", + "serde_core", "serde_json", "sha1", "simd-adler32", diff --git a/Cargo.toml b/Cargo.toml index 042bd8cf421b737130344242c2a58ad4cfb2a7f2..de1d216561b9d3074eecff5c36d6405a29c4f7d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -617,9 +617,8 @@ rustls-platform-verifier = "0.5.0" scap = { git = "https://github.com/zed-industries/scap", rev = "808aa5c45b41e8f44729d02e38fd00a2fe2722e7", default-features = false } schemars = { version = "1.0", features = ["indexmap2"] } semver = "1.0" -serde = { version = "1.0", features = ["derive", "rc"] } -serde_derive = { version = "1.0", features = ["deserialize_in_place"] } -serde_json = { version = "1.0", features = ["preserve_order", "raw_value"] } +serde = { version = "1.0.221", features = ["derive", "rc"] } +serde_json = { version = "1.0.144", features = ["preserve_order", "raw_value"] } serde_json_lenient = { version = "0.2", features = [ "preserve_order", "raw_value", diff --git a/crates/auto_update_ui/src/auto_update_ui.rs b/crates/auto_update_ui/src/auto_update_ui.rs index efac14968ea48d93ae35089d239916de1f0a5253..aeaa6ae93e635a6cab1487400fb58bd7be1bc6e1 100644 --- a/crates/auto_update_ui/src/auto_update_ui.rs +++ b/crates/auto_update_ui/src/auto_update_ui.rs @@ -31,6 +31,10 @@ pub fn init(cx: &mut App) { #[derive(Deserialize)] struct ReleaseNotesBody { + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] title: String, release_notes: String, } diff --git a/crates/call/Cargo.toml b/crates/call/Cargo.toml index ad3d569d61482ad71ee98e636db8c20274d56820..9dfb4acbb424724ce976f918f3bf5124a450e372 100644 --- a/crates/call/Cargo.toml +++ b/crates/call/Cargo.toml @@ -37,7 +37,6 @@ postage.workspace = true project.workspace = true schemars.workspace = true serde.workspace = true -serde_derive.workspace = true settings.workspace = true telemetry.workspace = true util.workspace = true diff --git a/crates/call/src/call_settings.rs b/crates/call/src/call_settings.rs index b0677e3c3bcb5112fdd9ad2abc4bf188b225aeac..c458c17e9fcd8788aae2661fbaaa0d45b117e10f 100644 --- a/crates/call/src/call_settings.rs +++ b/crates/call/src/call_settings.rs @@ -1,7 +1,7 @@ use anyhow::Result; use gpui::App; use schemars::JsonSchema; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use settings::{Settings, SettingsKey, SettingsSources, SettingsUi}; #[derive(Deserialize, Debug)] diff --git a/crates/collab/Cargo.toml b/crates/collab/Cargo.toml index 4fccd3be7ff8b4d44daf5f761695bdba81bd2ad8..2d431cdf8ce3046d684dc6022dc29682416c0c9a 100644 --- a/crates/collab/Cargo.toml +++ b/crates/collab/Cargo.toml @@ -52,7 +52,6 @@ sea-orm = { version = "1.1.0-rc.1", features = ["sqlx-postgres", "postgres-array semantic_version.workspace = true semver.workspace = true serde.workspace = true -serde_derive.workspace = true serde_json.workspace = true sha2.workspace = true sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "postgres", "json", "time", "uuid", "any"] } diff --git a/crates/collab/src/tests/random_channel_buffer_tests.rs b/crates/collab/src/tests/random_channel_buffer_tests.rs index 9451090af2198117ddb20241b99be5b208daa729..cd4a575bb2f2bd17d9abd747132416c0be16c6a6 100644 --- a/crates/collab/src/tests/random_channel_buffer_tests.rs +++ b/crates/collab/src/tests/random_channel_buffer_tests.rs @@ -5,7 +5,7 @@ use anyhow::Result; use async_trait::async_trait; use gpui::{BackgroundExecutor, SharedString, TestAppContext}; use rand::prelude::*; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use std::{ ops::{Deref, DerefMut, Range}, rc::Rc, diff --git a/crates/collab/src/user_backfiller.rs b/crates/collab/src/user_backfiller.rs index 569a298c9cd5bca6c65e5b7a39b45a784635ad35..fdb9ef67c2f1d04bf0a1919045f91d75a14ef834 100644 --- a/crates/collab/src/user_backfiller.rs +++ b/crates/collab/src/user_backfiller.rs @@ -157,5 +157,9 @@ impl UserBackfiller { struct GithubUser { id: i32, created_at: DateTime, + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] name: Option, } diff --git a/crates/collab_ui/Cargo.toml b/crates/collab_ui/Cargo.toml index 34e40d767ea5a9cab115b4186a642ee234337845..b3b0f1b0e37207582293fcc6d8930cc004ad7405 100644 --- a/crates/collab_ui/Cargo.toml +++ b/crates/collab_ui/Cargo.toml @@ -49,7 +49,6 @@ release_channel.workspace = true rpc.workspace = true schemars.workspace = true serde.workspace = true -serde_derive.workspace = true serde_json.workspace = true settings.workspace = true smallvec.workspace = true diff --git a/crates/collab_ui/src/collab_panel.rs b/crates/collab_ui/src/collab_panel.rs index 82e0f84105b57baa47999db9e086542a4f99adf7..1698fcb89376787bef52c0ee69b5d799976eda3b 100644 --- a/crates/collab_ui/src/collab_panel.rs +++ b/crates/collab_ui/src/collab_panel.rs @@ -24,7 +24,7 @@ use rpc::{ ErrorCode, ErrorExt, proto::{self, ChannelVisibility, PeerId}, }; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use settings::Settings; use smallvec::SmallVec; use std::{mem, sync::Arc}; diff --git a/crates/context_server/src/client.rs b/crates/context_server/src/client.rs index b3b44dbde67d92ce620d85a39a0925f27a4e2086..7dc174bfaab4770ff90623f048223fc2177acde9 100644 --- a/crates/context_server/src/client.rs +++ b/crates/context_server/src/client.rs @@ -127,6 +127,10 @@ struct Notification<'a, T> { #[derive(Debug, Clone, Deserialize)] struct AnyNotification<'a> { + #[expect( + unused, + reason = "Part of the JSON-RPC protocol - we expect the field to be present in a valid JSON-RPC notification" + )] jsonrpc: &'a str, method: String, #[serde(default)] diff --git a/crates/eval/src/examples/mod.rs b/crates/eval/src/examples/mod.rs index d74fbdb937bb3fce089ac1e0dd1b4abb75657ca3..6d47513e373f44b011743c398556a709cf71348e 100644 --- a/crates/eval/src/examples/mod.rs +++ b/crates/eval/src/examples/mod.rs @@ -115,6 +115,10 @@ pub struct ExampleToml { pub url: String, pub revision: String, pub language_extension: Option, + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] pub insert_id: Option, #[serde(default = "default_true")] pub require_lsp: bool, diff --git a/crates/file_finder/Cargo.toml b/crates/file_finder/Cargo.toml index aabfa4362afcf644e5d7e882ef9f9c1b97d261cb..edb7031f939f117ae5d5ec126a1edec58cb157c3 100644 --- a/crates/file_finder/Cargo.toml +++ b/crates/file_finder/Cargo.toml @@ -27,7 +27,6 @@ schemars.workspace = true search.workspace = true settings.workspace = true serde.workspace = true -serde_derive.workspace = true text.workspace = true theme.workspace = true ui.workspace = true diff --git a/crates/file_finder/src/file_finder_settings.rs b/crates/file_finder/src/file_finder_settings.rs index 6a6b98b8ea3e1c7e7f0e3cc0385fdd7f413b659f..05f77ee55e79efb25a822d0aab4e051deeeafce7 100644 --- a/crates/file_finder/src/file_finder_settings.rs +++ b/crates/file_finder/src/file_finder_settings.rs @@ -1,6 +1,6 @@ use anyhow::Result; use schemars::JsonSchema; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use settings::{Settings, SettingsKey, SettingsSources, SettingsUi}; #[derive(Deserialize, Debug, Clone, Copy, PartialEq)] diff --git a/crates/git_hosting_providers/src/providers/codeberg.rs b/crates/git_hosting_providers/src/providers/codeberg.rs index b9f2542d5b00d32b476e20e4925b7805c886d636..2cba745f4970de5bb22bdc84f7a76a28998c385d 100644 --- a/crates/git_hosting_providers/src/providers/codeberg.rs +++ b/crates/git_hosting_providers/src/providers/codeberg.rs @@ -16,25 +16,53 @@ use git::{ #[derive(Debug, Deserialize)] struct CommitDetails { + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] commit: Commit, author: Option, } #[derive(Debug, Deserialize)] struct Commit { + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] author: Author, } #[derive(Debug, Deserialize)] struct Author { + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] name: String, + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] email: String, + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] date: String, } #[derive(Debug, Deserialize)] struct User { + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] pub login: String, + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] pub id: u64, pub avatar_url: String, } diff --git a/crates/git_hosting_providers/src/providers/github.rs b/crates/git_hosting_providers/src/providers/github.rs index 4475afeb495f41e89273ce0336d830db4cc869cf..28c8f7973b87d784de3497345c6db6ecb11eca1c 100644 --- a/crates/git_hosting_providers/src/providers/github.rs +++ b/crates/git_hosting_providers/src/providers/github.rs @@ -25,22 +25,38 @@ fn pull_request_number_regex() -> &'static Regex { #[derive(Debug, Deserialize)] struct CommitDetails { + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] commit: Commit, author: Option, } #[derive(Debug, Deserialize)] struct Commit { + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] author: Author, } #[derive(Debug, Deserialize)] struct Author { + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] email: String, } #[derive(Debug, Deserialize)] struct User { + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] pub id: u64, pub avatar_url: String, } diff --git a/crates/git_ui/Cargo.toml b/crates/git_ui/Cargo.toml index 35f7a603544ae72134a2c6c1b08dcb8a0119b79b..52577d033a94fb819b320d3b18fd384431fe5a1f 100644 --- a/crates/git_ui/Cargo.toml +++ b/crates/git_ui/Cargo.toml @@ -48,7 +48,6 @@ postage.workspace = true project.workspace = true schemars.workspace = true serde.workspace = true -serde_derive.workspace = true serde_json.workspace = true settings.workspace = true strum.workspace = true diff --git a/crates/git_ui/src/git_panel_settings.rs b/crates/git_ui/src/git_panel_settings.rs index 74e8e25927f07ec1f159d12023669fab9e518114..be26061b0d2cbeee9a0a75f52daf56fb9fcb94f4 100644 --- a/crates/git_ui/src/git_panel_settings.rs +++ b/crates/git_ui/src/git_panel_settings.rs @@ -1,7 +1,7 @@ use editor::EditorSettings; use gpui::Pixels; use schemars::JsonSchema; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use settings::{Settings, SettingsKey, SettingsSources, SettingsUi}; use ui::scrollbars::{ScrollbarVisibility, ShowScrollbar}; use workspace::dock::DockPosition; diff --git a/crates/gpui/Cargo.toml b/crates/gpui/Cargo.toml index a6e8d090f0bd1f4eac7218ae1adff5d5f65b05b5..44f819c135298dc991ad6036ad9948b5eaf609a4 100644 --- a/crates/gpui/Cargo.toml +++ b/crates/gpui/Cargo.toml @@ -114,7 +114,6 @@ schemars.workspace = true seahash = "4.1" semantic_version.workspace = true serde.workspace = true -serde_derive.workspace = true serde_json.workspace = true slotmap = "1.0.6" smallvec.workspace = true diff --git a/crates/gpui/src/gpui.rs b/crates/gpui/src/gpui.rs index 7cc56265bd0401eac67305b636ba29ccec6df9ea..eda10a41abc4722f41151c88b531251020bf0326 100644 --- a/crates/gpui/src/gpui.rs +++ b/crates/gpui/src/gpui.rs @@ -112,7 +112,6 @@ pub mod private { pub use inventory; pub use schemars; pub use serde; - pub use serde_derive; pub use serde_json; } diff --git a/crates/gpui/src/text_system/font_fallbacks.rs b/crates/gpui/src/text_system/font_fallbacks.rs index 2be17e0021e42a809547188861ee00641535b110..63dc89ba41ea9cf44bdffb7d81d3015d696f4413 100644 --- a/crates/gpui/src/text_system/font_fallbacks.rs +++ b/crates/gpui/src/text_system/font_fallbacks.rs @@ -1,7 +1,7 @@ use std::sync::Arc; use schemars::JsonSchema; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; /// The fallback fonts that can be configured for a given font. /// Fallback fonts family names are stored here. diff --git a/crates/gpui/tests/action_macros.rs b/crates/gpui/tests/action_macros.rs index 7bff3a97b1c3d22e6c0e9841a26f2adf5d7f3a70..66ef6fba2c9b980e27150bb3bf8d9d07f35ab030 100644 --- a/crates/gpui/tests/action_macros.rs +++ b/crates/gpui/tests/action_macros.rs @@ -1,7 +1,7 @@ use gpui::{Action, actions}; use gpui_macros::register_action; use schemars::JsonSchema; -use serde_derive::Deserialize; +use serde::Deserialize; #[test] fn test_action_macros() { @@ -19,7 +19,7 @@ fn test_action_macros() { #[serde(deny_unknown_fields)] struct AnotherAction; - #[derive(PartialEq, Clone, gpui::private::serde_derive::Deserialize)] + #[derive(PartialEq, Clone, gpui::private::serde::Deserialize)] #[serde(deny_unknown_fields)] struct RegisterableAction {} diff --git a/crates/project_panel/Cargo.toml b/crates/project_panel/Cargo.toml index 6ad3c4c2cd1d6f45180ba752d3ef357aa0c6c2ac..736395913a1c15e88af6be2a308cd3aa522374b2 100644 --- a/crates/project_panel/Cargo.toml +++ b/crates/project_panel/Cargo.toml @@ -29,7 +29,6 @@ project.workspace = true schemars.workspace = true search.workspace = true serde.workspace = true -serde_derive.workspace = true serde_json.workspace = true settings.workspace = true smallvec.workspace = true diff --git a/crates/project_panel/src/project_panel_settings.rs b/crates/project_panel/src/project_panel_settings.rs index 09e450c149ab5580e6c86241f8c3e30515b93a4f..2a01d10a02449d47cad8a1c89bb9269f25db2725 100644 --- a/crates/project_panel/src/project_panel_settings.rs +++ b/crates/project_panel/src/project_panel_settings.rs @@ -1,7 +1,7 @@ use editor::EditorSettings; use gpui::Pixels; use schemars::JsonSchema; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use settings::{Settings, SettingsKey, SettingsSources, SettingsUi}; use ui::scrollbars::{ScrollbarVisibility, ShowScrollbar}; diff --git a/crates/repl/Cargo.toml b/crates/repl/Cargo.toml index dea04243b2ed8f6c0611f17077a00e0c02c13693..5821bc6297266cffba19234d82efec3f6190c310 100644 --- a/crates/repl/Cargo.toml +++ b/crates/repl/Cargo.toml @@ -40,7 +40,6 @@ project.workspace = true runtimelib.workspace = true schemars.workspace = true serde.workspace = true -serde_derive.workspace = true serde_json.workspace = true settings.workspace = true smol.workspace = true diff --git a/crates/repl/src/repl_settings.rs b/crates/repl/src/repl_settings.rs index 541455c7fc3adc16cbb1e48fb811a2ac3a30bbbc..2fbf4b63731009a30691f04067bf96fbb8250880 100644 --- a/crates/repl/src/repl_settings.rs +++ b/crates/repl/src/repl_settings.rs @@ -1,6 +1,6 @@ use gpui::App; use schemars::JsonSchema; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use settings::{Settings, SettingsKey, SettingsSources, SettingsUi}; /// Settings for configuring REPL display and behavior. diff --git a/crates/settings/Cargo.toml b/crates/settings/Cargo.toml index d9b8d7275f9abdd60df85443988595f025bf26c0..4748644604ace11febddd5dcf34b43954dc361c6 100644 --- a/crates/settings/Cargo.toml +++ b/crates/settings/Cargo.toml @@ -29,7 +29,6 @@ release_channel.workspace = true rust-embed.workspace = true schemars.workspace = true serde.workspace = true -serde_derive.workspace = true serde_json.workspace = true settings_ui_macros.workspace = true serde_json_lenient.workspace = true diff --git a/crates/settings/src/settings_store.rs b/crates/settings/src/settings_store.rs index f2270711938c9bcbf27cdcb3d9271d5d2baeec27..abce84daf7cf2b0adc304894476d9c763e5e1a3d 100644 --- a/crates/settings/src/settings_store.rs +++ b/crates/settings/src/settings_store.rs @@ -1588,7 +1588,7 @@ mod tests { use super::*; // This is so the SettingsUi macro can still work properly use crate as settings; - use serde_derive::Deserialize; + use serde::Deserialize; use settings_ui_macros::{SettingsKey, SettingsUi}; use unindent::Unindent; @@ -2232,7 +2232,9 @@ mod tests { #[derive(Debug, Deserialize)] struct JournalSettings { + #[expect(unused)] pub path: String, + #[expect(unused)] pub hour_format: HourFormat, } diff --git a/crates/supermaven_api/src/supermaven_api.rs b/crates/supermaven_api/src/supermaven_api.rs index c4b1409d646b0d402684d3c883a0ea633d12bbb5..539826c8176d0adf0e8ed1fb11ffdec8c15347a9 100644 --- a/crates/supermaven_api/src/supermaven_api.rs +++ b/crates/supermaven_api/src/supermaven_api.rs @@ -56,7 +56,15 @@ pub struct SupermavenDownloadResponse { #[derive(Deserialize)] #[serde(rename_all = "camelCase")] pub struct SupermavenUser { + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] id: String, + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] email: String, api_key: String, } diff --git a/crates/terminal/Cargo.toml b/crates/terminal/Cargo.toml index de27b5e11746576c5923b8a2fca584b39161234d..48a0a1aadd3efe2239754c5c4971492bec6a5612 100644 --- a/crates/terminal/Cargo.toml +++ b/crates/terminal/Cargo.toml @@ -29,7 +29,6 @@ libc.workspace = true release_channel.workspace = true schemars.workspace = true serde.workspace = true -serde_derive.workspace = true settings.workspace = true sysinfo.workspace = true smol.workspace = true diff --git a/crates/terminal/src/terminal_settings.rs b/crates/terminal/src/terminal_settings.rs index 0ab92a0f26d35710da7fd0a2e88542a98c7affed..d0a25257b91eb60b60390cde751d1af8af5866e1 100644 --- a/crates/terminal/src/terminal_settings.rs +++ b/crates/terminal/src/terminal_settings.rs @@ -4,7 +4,7 @@ use alacritty_terminal::vte::ansi::{ use collections::HashMap; use gpui::{AbsoluteLength, App, FontFallbacks, FontFeatures, FontWeight, Pixels, px}; use schemars::JsonSchema; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use settings::{SettingsKey, SettingsSources, SettingsUi}; use std::path::PathBuf; diff --git a/crates/theme/Cargo.toml b/crates/theme/Cargo.toml index 998d31bb3c5473de324dbfd34a3b276c81d95aba..00f8e1868e5ddf00fa1fdaadb042c23d6013f5d8 100644 --- a/crates/theme/Cargo.toml +++ b/crates/theme/Cargo.toml @@ -31,7 +31,6 @@ parking_lot.workspace = true refineable.workspace = true schemars = { workspace = true, features = ["indexmap2"] } serde.workspace = true -serde_derive.workspace = true serde_json.workspace = true serde_json_lenient.workspace = true serde_repr.workspace = true diff --git a/crates/theme/src/styles/accents.rs b/crates/theme/src/styles/accents.rs index cda0ef778a6b974d715cfbdb8b0c8f9067b411cc..52244fee46ce12edbbe361c3bec9bb80139f1167 100644 --- a/crates/theme/src/styles/accents.rs +++ b/crates/theme/src/styles/accents.rs @@ -1,5 +1,5 @@ use gpui::Hsla; -use serde_derive::Deserialize; +use serde::Deserialize; use crate::{ AccentContent, amber, blue, cyan, gold, grass, indigo, iris, jade, lime, orange, pink, purple, diff --git a/crates/theme/src/styles/players.rs b/crates/theme/src/styles/players.rs index 4b1f0976b64b28a06bb7873b994d636a159bb396..d10ac61ba6bfeabbf0642d832e68841c39176546 100644 --- a/crates/theme/src/styles/players.rs +++ b/crates/theme/src/styles/players.rs @@ -1,7 +1,7 @@ #![allow(missing_docs)] use gpui::Hsla; -use serde_derive::Deserialize; +use serde::Deserialize; use crate::{ PlayerColorContent, amber, blue, jade, lime, orange, pink, purple, red, try_parse_color, diff --git a/crates/theme_importer/src/main.rs b/crates/theme_importer/src/main.rs index ebb2840d0401d05b2bcac4e8c001dc30424f0fe5..339c88adea016dc260867ebce1128962bcd563e1 100644 --- a/crates/theme_importer/src/main.rs +++ b/crates/theme_importer/src/main.rs @@ -21,8 +21,20 @@ const ZED_THEME_SCHEMA_URL: &str = "https://zed.dev/schema/themes/v0.2.0.json"; #[derive(Debug, Deserialize)] struct FamilyMetadata { + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] pub name: String, + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] pub author: String, + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] pub themes: Vec, /// Overrides for specific syntax tokens. @@ -31,6 +43,10 @@ struct FamilyMetadata { /// to an exact set of scopes when it is not otherwise possible /// to rely on the default mappings in the theme importer. #[serde(default)] + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] pub syntax: IndexMap>, } diff --git a/crates/theme_importer/src/vscode/theme.rs b/crates/theme_importer/src/vscode/theme.rs index b6b073b4467fa412e023babd8ef3459827ae4083..2479dd312ecc231096e9a26c3a5babd8649133a1 100644 --- a/crates/theme_importer/src/vscode/theme.rs +++ b/crates/theme_importer/src/vscode/theme.rs @@ -6,12 +6,32 @@ use crate::vscode::VsCodeTokenColor; #[derive(Deserialize, Debug)] pub struct VsCodeTheme { #[serde(rename = "$schema")] + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] pub schema: Option, pub name: Option, + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] pub author: Option, + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] pub maintainers: Option>, #[serde(rename = "semanticClass")] + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] pub semantic_class: Option, + #[expect( + unused, + reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove" + )] #[serde(rename = "semanticHighlighting")] pub semantic_highlighting: Option, pub colors: Colors, diff --git a/crates/vim/Cargo.toml b/crates/vim/Cargo.toml index 434b14b07cd64f6ed1e8e658fde68cff855ec633..abe92dd58594f05d8cf71dbde4fb129aafa26a03 100644 --- a/crates/vim/Cargo.toml +++ b/crates/vim/Cargo.toml @@ -38,7 +38,6 @@ regex.workspace = true schemars.workspace = true search.workspace = true serde.workspace = true -serde_derive.workspace = true serde_json.workspace = true settings.workspace = true task.workspace = true diff --git a/crates/vim/src/normal/search.rs b/crates/vim/src/normal/search.rs index 43ec12d9cde762804a2b5c6bfc1cbae08b545403..a92ec7f6d3a05b26d31feca567e7a2e08f7f2b20 100644 --- a/crates/vim/src/normal/search.rs +++ b/crates/vim/src/normal/search.rs @@ -3,7 +3,7 @@ use gpui::{Action, Context, Window, actions}; use language::Point; use schemars::JsonSchema; use search::{BufferSearchBar, SearchOptions, buffer_search}; -use serde_derive::Deserialize; +use serde::Deserialize; use settings::Settings; use std::{iter::Peekable, str::Chars}; use util::serde::default_true; diff --git a/crates/vim/src/vim.rs b/crates/vim/src/vim.rs index 7f388acd0c4bb342a4a7f1e39142cf70c9047f95..7faff54e73b179bdfa944798a9c87fafa245f732 100644 --- a/crates/vim/src/vim.rs +++ b/crates/vim/src/vim.rs @@ -38,7 +38,7 @@ use normal::search::SearchSubmit; use object::Object; use schemars::JsonSchema; use serde::Deserialize; -use serde_derive::Serialize; +use serde::Serialize; use settings::{ Settings, SettingsKey, SettingsSources, SettingsStore, SettingsUi, update_settings_file, }; diff --git a/tooling/workspace-hack/Cargo.toml b/tooling/workspace-hack/Cargo.toml index 54379064460e30818781539d9d28c9f2a53a63bc..7201dedb451c3db27998695b75b62847223e6b72 100644 --- a/tooling/workspace-hack/Cargo.toml +++ b/tooling/workspace-hack/Cargo.toml @@ -114,6 +114,7 @@ sea-orm = { version = "1", features = ["runtime-tokio-rustls", "sqlx-postgres", sea-query-binder = { version = "0.7", default-features = false, features = ["postgres-array", "sqlx-postgres", "sqlx-sqlite", "with-bigdecimal", "with-chrono", "with-json", "with-rust_decimal", "with-time", "with-uuid"] } semver = { version = "1", features = ["serde"] } serde = { version = "1", features = ["alloc", "derive", "rc"] } +serde_core = { version = "1", default-features = false, features = ["alloc", "rc", "result", "std"] } serde_json = { version = "1", features = ["alloc", "preserve_order", "raw_value", "unbounded_depth"] } sha1 = { version = "0.10", features = ["compress"] } simd-adler32 = { version = "0.3" } @@ -249,7 +250,7 @@ sea-orm = { version = "1", features = ["runtime-tokio-rustls", "sqlx-postgres", sea-query-binder = { version = "0.7", default-features = false, features = ["postgres-array", "sqlx-postgres", "sqlx-sqlite", "with-bigdecimal", "with-chrono", "with-json", "with-rust_decimal", "with-time", "with-uuid"] } semver = { version = "1", features = ["serde"] } serde = { version = "1", features = ["alloc", "derive", "rc"] } -serde_derive = { version = "1", features = ["deserialize_in_place"] } +serde_core = { version = "1", default-features = false, features = ["alloc", "rc", "result", "std"] } serde_json = { version = "1", features = ["alloc", "preserve_order", "raw_value", "unbounded_depth"] } sha1 = { version = "0.10", features = ["compress"] } simd-adler32 = { version = "0.3" }