Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit e4858fe

Browse files
committed
Specify authors, edition and license via workspace.package
1 parent 679df2a commit e4858fe

File tree

36 files changed

+144
-71
lines changed

36 files changed

+144
-71
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ exclude = ["crates/proc-macro-test/imp"]
44

55
[workspace.package]
66
rust-version = "1.66"
7+
edition = "2021"
8+
license = "MIT OR Apache-2.0"
9+
authors = ["rust-analyzer team"]
710

811
[profile.dev]
912
# Disabling debug info speeds up builds a bunch,

crates/base-db/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "base-db"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/cfg/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "cfg"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/flycheck/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "flycheck"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/hir-def/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "hir-def"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/hir-expand/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "hir-expand"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/hir-ty/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "hir-ty"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/hir/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "hir"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/ide-assists/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "ide-assists"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/ide-completion/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "ide-completion"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/ide-db/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "ide-db"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/ide-diagnostics/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "ide-diagnostics"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/ide-ssr/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
name = "ide-ssr"
33
version = "0.0.0"
44
description = "Structural search and replace of Rust code"
5-
license = "MIT OR Apache-2.0"
65
repository = "https://github.com/rust-lang/rust-analyzer"
7-
edition = "2021"
6+
7+
authors.workspace = true
8+
edition.workspace = true
9+
license.workspace = true
810
rust-version.workspace = true
911

1012
[lib]

crates/ide/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "ide"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/intern/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "intern"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/limit/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "limit"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[features]

crates/mbe/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "mbe"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/parser/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "parser"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/paths/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "paths"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/proc-macro-api/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "proc-macro-api"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/proc-macro-srv-cli/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "proc-macro-srv-cli"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[dependencies]

crates/proc-macro-srv/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "proc-macro-srv"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/proc-macro-test/Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
[package]
22
name = "proc-macro-test"
33
version = "0.0.0"
4-
license = "MIT OR Apache-2.0"
5-
edition = "2021"
6-
rust-version.workspace = true
74
publish = false
85

6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
9+
rust-version.workspace = true
10+
911
[lib]
1012
doctest = false
1113

crates/profile/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "profile"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/project-model/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "project-model"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/rust-analyzer/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
[package]
22
name = "rust-analyzer"
33
version = "0.0.0"
4-
authors = ["rust-analyzer Team"]
54
homepage = "https://github.com/rust-analyzer/rust-analyzer"
65
description = "A language server for the Rust programming language"
76
documentation = "https://rust-analyzer.github.io/manual.html"
8-
license = "MIT OR Apache-2.0"
97
autobins = false
10-
edition = "2021"
8+
9+
authors.workspace = true
10+
edition.workspace = true
11+
license.workspace = true
1112
rust-version.workspace = true
1213

1314
[lib]

crates/sourcegen/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "sourcegen"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/stdx/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
name = "stdx"
33
version = "0.0.0"
44
description = "TBD"
5-
license = "MIT OR Apache-2.0"
6-
edition = "2021"
5+
6+
authors.workspace = true
7+
edition.workspace = true
8+
license.workspace = true
79
rust-version.workspace = true
810

911
[lib]

crates/syntax/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
name = "syntax"
33
version = "0.0.0"
44
description = "Comment and whitespace preserving parser for the Rust language"
5-
license = "MIT OR Apache-2.0"
65
repository = "https://github.com/rust-lang/rust-analyzer"
7-
edition = "2021"
6+
7+
authors.workspace = true
8+
edition.workspace = true
9+
license.workspace = true
810
rust-version.workspace = true
911

1012
[lib]

crates/syntax/fuzz/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
name = "syntax-fuzz"
44
version = "0.0.1"
55
publish = false
6-
edition = "2021"
6+
7+
authors.workspace = true
8+
edition.workspace = true
9+
license.workspace = true
710
rust-version.workspace = true
811

912
[package.metadata]

0 commit comments

Comments
 (0)