Skip to content

Commit

Permalink
chore: Use workspace fields for edition and publish (#23291)
Browse files Browse the repository at this point in the history
This prepares us for an upcoming bump to Rust 2024 edition.

Release Notes:

- N/A
  • Loading branch information
osiewicz authored Jan 17, 2025
1 parent cb35b73 commit c9534e8
Show file tree
Hide file tree
Showing 172 changed files with 346 additions and 339 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ members = [
]
default-members = ["crates/zed"]

[workspace.package]
publish = false
edition = "2021"

[workspace.dependencies]

#
Expand Down
4 changes: 2 additions & 2 deletions crates/activity_indicator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "activity_indicator"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/anthropic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "anthropic"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "AGPL-3.0-or-later"

[features]
Expand Down
4 changes: 2 additions & 2 deletions crates/assets/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "assets"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lib]
Expand Down
4 changes: 2 additions & 2 deletions crates/assistant/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "assistant"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/assistant2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "assistant2"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/assistant_settings/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "assistant_settings"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/assistant_slash_command/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "assistant_slash_command"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/assistant_slash_commands/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "assistant_slash_commands"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/assistant_tool/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "assistant_tool"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/assistant_tools/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "assistant_tools"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/audio/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "audio"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/auto_update/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "auto_update"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/auto_update_ui/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "auto_update_ui"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/breadcrumbs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "breadcrumbs"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/call/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "call"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/channel/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "channel"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "cli"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "client"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/clock/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "clock"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/collab/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
authors = ["Nathan Sobo <[email protected]>"]
default-run = "collab"
edition = "2021"
edition.workspace = true
name = "collab"
version = "0.44.0"
publish = false
publish.workspace = true
license = "AGPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/collab_ui/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "collab_ui"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/collections/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "collections"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "Apache-2.0"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/command_palette/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "command_palette"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/command_palette_hooks/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "command_palette_hooks"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/context_server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "context_server"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/context_server_settings/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "context_server_settings"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/copilot/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "copilot"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/db/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "db"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/diagnostics/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "diagnostics"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/docs_preprocessor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "docs_preprocessor"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[dependencies]
Expand Down
4 changes: 2 additions & 2 deletions crates/editor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "editor"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/evals/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "evals"
description = "Evaluations for Zed's AI features"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/extension/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "extension"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
3 changes: 2 additions & 1 deletion crates/extension_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ description = "APIs for creating Zed extensions in Rust"
repository = "https://github.com/zed-industries/zed"
documentation = "https://docs.rs/zed_extension_api"
keywords = ["zed", "extension"]
edition = "2021"
edition.workspace = true
publish = true
license = "Apache-2.0"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/extension_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "extension_cli"
version = "0.1.0"
edition = "2021"
publish = false
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"

[lints]
Expand Down
Loading

0 comments on commit c9534e8

Please sign in to comment.