Skip to content

Commit 960fa8d

Browse files
suyanhanxHerringtonDarkholme
authored andcommitted
chore: use workspace package info
Signed-off-by: suyanhanx <[email protected]>
1 parent 3435035 commit 960fa8d

File tree

8 files changed

+59
-55
lines changed

8 files changed

+59
-55
lines changed

Cargo.toml

+10
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,13 @@ default-members = ["crates/*"]
88

99
[profile.release]
1010
lto = true
11+
12+
[workspace.package]
13+
version = "0.5.3"
14+
authors = ["Herrington Darkholme <[email protected]>"]
15+
edition = "2021"
16+
license = "MIT"
17+
documentation = "https://ast-grep.github.io/guide/introduction.html"
18+
homepage = "https://ast-grep.github.io/"
19+
repository = "https://github.com/ast-grep/ast-grep"
20+
rust-version = "1.63"

crates/cli/Cargo.toml

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
[package]
22
name = "ast-grep"
3-
version = "0.5.3"
4-
authors = ["Herrington Darkholme <[email protected]>"]
5-
edition = "2021"
6-
repository = "https://github.com/ast-grep/ast-grep"
7-
documentation = "https://ast-grep.github.io/guide/introduction.html"
8-
homepage = "https://ast-grep.github.io/"
93
description = "Search and Rewrite code at large scale using precise AST pattern"
104
keywords = ["ast", "pattern", "codemod", "search", "rewrite"]
115
categories = ["command-line-utilities", "development-tools", "parsing"]
12-
license = "MIT"
13-
rust-version = "1.63"
146
default-run = "sg"
157

16-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8+
version.workspace = true
9+
authors.workspace = true
10+
edition.workspace = true
11+
license.workspace = true
12+
documentation.workspace = true
13+
homepage.workspace = true
14+
repository.workspace = true
15+
rust-version.workspace = true
1716

1817
[[bin]]
1918
name = "sg"

crates/config/Cargo.toml

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
[package]
22
name = "ast-grep-config"
3-
version = "0.5.3"
4-
authors = ["Herrington Darkholme <[email protected]>"]
5-
edition = "2021"
63
description = "Search and Rewrite code at large scale using precise AST pattern"
74
keywords = ["ast", "pattern", "codemod", "search", "rewrite"]
8-
license = "MIT"
9-
repository = "https://github.com/ast-grep/ast-grep"
10-
rust-version = "1.63"
5+
6+
version.workspace = true
7+
authors.workspace = true
8+
edition.workspace = true
9+
license.workspace = true
10+
repository.workspace = true
11+
rust-version.workspace = true
12+
1113

1214
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1315

crates/core/Cargo.toml

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
[package]
22
name = "ast-grep-core"
3-
version = "0.5.3"
4-
authors = ["Herrington Darkholme <[email protected]>"]
5-
edition = "2021"
63
description = "Search and Rewrite code at large scale using precise AST pattern"
74
keywords = ["ast", "pattern", "codemod", "search", "rewrite"]
85
categories = ["command-line-utilities", "development-tools", "parsing"]
9-
license = "MIT"
10-
repository = "https://github.com/ast-grep/ast-grep"
11-
documentation = "https://ast-grep.github.io/guide/introduction.html"
12-
homepage = "https://ast-grep.github.io/"
13-
rust-version = "1.63"
146

15-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
version.workspace = true
8+
authors.workspace = true
9+
edition.workspace = true
10+
license.workspace = true
11+
documentation.workspace = true
12+
homepage.workspace = true
13+
repository.workspace = true
14+
rust-version.workspace = true
1615

1716
[dependencies]
1817
regex = {version = "1.8.1", optional = true }

crates/dynamic/Cargo.toml

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
[package]
22
name = "ast-grep-dynamic"
3-
version = "0.5.3"
4-
authors = [
5-
"Herrington Darkholme <[email protected]>",
6-
]
7-
edition = "2021"
83
description = "Load tree-sitter dynamic library for ast-grep"
94
keywords = ["ast", "pattern", "codemod", "search", "rewrite"]
10-
license = "MIT"
11-
repository = "https://github.com/ast-grep/ast-grep"
12-
rust-version = "1.63"
135

14-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
6+
version.workspace = true
7+
authors.workspace = true
8+
edition.workspace = true
9+
license.workspace = true
10+
repository.workspace = true
11+
rust-version.workspace = true
1512

1613
[dependencies]
1714
ast-grep-core = { version = "0.5.3", path = "../core" }

crates/language/Cargo.toml

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
[package]
22
name = "ast-grep-language"
3-
version = "0.5.3"
4-
authors = ["Herrington Darkholme <[email protected]>"]
5-
edition = "2021"
63
description = "Search and Rewrite code at large scale using precise AST pattern"
74
keywords = ["ast", "pattern", "codemod", "search", "rewrite"]
8-
license = "MIT"
9-
repository = "https://github.com/ast-grep/ast-grep"
10-
rust-version = "1.63"
115

12-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
6+
version.workspace = true
7+
authors.workspace = true
8+
edition.workspace = true
9+
license.workspace = true
10+
repository.workspace = true
11+
rust-version.workspace = true
1312

1413
[dependencies]
1514
ast-grep-core = { version= "0.5.3", path = "../core" }

crates/lsp/Cargo.toml

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
[package]
22
name = "ast-grep-lsp"
3-
version = "0.5.3"
4-
authors = [
5-
"Herrington Darkholme <[email protected]>",
6-
]
7-
edition = "2021"
83
description = "Search and Rewrite code at large scale using precise AST pattern"
94
keywords = ["ast", "pattern", "codemod", "search", "rewrite"]
10-
license = "MIT"
11-
repository = "https://github.com/ast-grep/ast-grep"
12-
rust-version = "1.63"
135

14-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
6+
version.workspace = true
7+
authors.workspace = true
8+
edition.workspace = true
9+
license.workspace = true
10+
repository.workspace = true
11+
rust-version.workspace = true
1512

1613
[dependencies]
1714
ast-grep-core = { version = "0.5.3", path = "../core" }

crates/napi/Cargo.toml

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
[package]
22
name = "ast-grep-napi"
3-
version = "0.5.3"
4-
authors = ["HerringtonDarkholme <[email protected]>"]
5-
edition = "2018"
63
description = "Search and Rewrite code at large scale using precise AST pattern"
74
keywords = ["ast", "pattern", "codemod", "search", "rewrite"]
8-
license = "MIT"
9-
repository = "https://github.com/ast-grep/ast-grep"
10-
rust-version = "1.63"
5+
edition = "2018"
6+
7+
version.workspace = true
8+
authors.workspace = true
9+
license.workspace = true
10+
repository.workspace = true
11+
rust-version.workspace = true
1112

1213
[dependencies]
1314
napi = { version = "2.12.6", features = ["serde-json", "napi4", "error_anyhow"] }

0 commit comments

Comments
 (0)