From 87a02e2a2ab7df25415f6e68c4173b843e8091a9 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 1 Nov 2022 14:20:38 -0500 Subject: [PATCH] chore: Switch to workspace inheritance --- Cargo.toml | 23 +++++++++++++++-------- crates/codespell-dict/Cargo.toml | 17 +++++------------ crates/dictgen/Cargo.toml | 16 +++++----------- crates/misspell-dict/Cargo.toml | 18 +++++------------- crates/typos-dict/Cargo.toml | 17 +++++------------ crates/typos-vars/Cargo.toml | 17 +++++------------ crates/typos/Cargo.toml | 17 +++++------------ crates/varcon-core/Cargo.toml | 17 +++++------------ crates/varcon/Cargo.toml | 17 +++++------------ crates/wikipedia-dict/Cargo.toml | 17 +++++------------ 10 files changed, 60 insertions(+), 116 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 41ed4d4..3bafca8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,17 +2,11 @@ members = [ "crates/*", ] +resolver = "2" -[package] -name = "typos-cli" -version = "1.12.12" -description = "Source Code Spelling Correction" -authors = ["Ed Page "] +[workspace.package] license = "MIT OR Apache-2.0" repository = "https://github.com/crate-ci/typos" -readme = "README.md" -categories = ["development-tools", "text-processing"] -keywords = ["development", "spelling"] edition = "2021" rust-version = "1.64.0" # MSRV include = [ @@ -25,6 +19,19 @@ include = [ "examples/**/*" ] +[package] +name = "typos-cli" +version = "1.12.12" +description = "Source Code Spelling Correction" +readme = "README.md" +categories = ["development-tools", "text-processing"] +keywords = ["development", "spelling"] +license.workspace = true +repository.workspace = true +edition.workspace = true +rust-version.workspace = true +include.workspace = true + [package.metadata.docs.rs] no-default-features = true diff --git a/crates/codespell-dict/Cargo.toml b/crates/codespell-dict/Cargo.toml index 5a73a8a..1373835 100644 --- a/crates/codespell-dict/Cargo.toml +++ b/crates/codespell-dict/Cargo.toml @@ -1,23 +1,16 @@ [package] name = "codespell-dict" version = "0.4.0" -authors = ["Ed Page "] description = "Source Code Spelling Correction" -repository = "https://github.com/crate-ci/typos" readme = "README.md" categories = ["development-tools", "text-processing"] keywords = ["development", "spelling"] -license = "CC-BY-SA-3.0" -edition = "2021" -rust-version = "1.64.0" # MSRV publish = false -include = [ - "src/**/*", - "Cargo.toml", - "LICENSE*", - "README.md", - "examples/**/*" -] +license = "CC-BY-SA-3.0" +repository.workspace = true +edition.workspace = true +rust-version.workspace = true +include.workspace = true [package.metadata.release] release = false diff --git a/crates/dictgen/Cargo.toml b/crates/dictgen/Cargo.toml index fe69728..10d2c40 100644 --- a/crates/dictgen/Cargo.toml +++ b/crates/dictgen/Cargo.toml @@ -2,19 +2,13 @@ name = "dictgen" version = "0.2.4" description = "Compile-time case-insensitive map" -repository = "https://github.com/crate-ci/typos" categories = ["development-tools", "text-processing"] keywords = ["development", "spelling", "no_std"] -license = "MIT OR Apache-2.0" -edition = "2021" -rust-version = "1.64.0" # MSRV -include = [ - "src/**/*", - "Cargo.toml", - "LICENSE*", - "README.md", - "examples/**/*" -] +license.workspace = true +repository.workspace = true +edition.workspace = true +rust-version.workspace = true +include.workspace = true [features] default = ["std"] diff --git a/crates/misspell-dict/Cargo.toml b/crates/misspell-dict/Cargo.toml index ad22338..f39262b 100644 --- a/crates/misspell-dict/Cargo.toml +++ b/crates/misspell-dict/Cargo.toml @@ -1,23 +1,15 @@ [package] name = "misspell-dict" version = "0.4.0" -authors = ["Ed Page "] description = "Source Code Spelling Correction" -repository = "https://github.com/crate-ci/typos" readme = "README.md" categories = ["development-tools", "text-processing"] keywords = ["development", "spelling"] -license = "MIT OR Apache-2.0" -edition = "2021" -rust-version = "1.64.0" # MSRV -publish = false -include = [ - "src/**/*", - "Cargo.toml", - "LICENSE*", - "README.md", - "examples/**/*" -] +license.workspace = true +repository.workspace = true +edition.workspace = true +rust-version.workspace = true +include.workspace = true [package.metadata.release] release = false diff --git a/crates/typos-dict/Cargo.toml b/crates/typos-dict/Cargo.toml index e1daa9d..4f67465 100644 --- a/crates/typos-dict/Cargo.toml +++ b/crates/typos-dict/Cargo.toml @@ -2,21 +2,14 @@ name = "typos-dict" version = "0.9.9" description = "Source Code Spelling Correction" -authors = ["Ed Page "] -license = "MIT OR Apache-2.0" -repository = "https://github.com/crate-ci/typos" readme = "../../README.md" categories = ["development-tools", "text-processing"] keywords = ["development", "spelling"] -edition = "2021" -rust-version = "1.64.0" # MSRV -include = [ - "src/**/*", - "Cargo.toml", - "LICENSE*", - "README.md", - "examples/**/*" -] +license.workspace = true +repository.workspace = true +edition.workspace = true +rust-version.workspace = true +include.workspace = true [dependencies] unicase = "2.6" diff --git a/crates/typos-vars/Cargo.toml b/crates/typos-vars/Cargo.toml index 6209bc4..339ec73 100644 --- a/crates/typos-vars/Cargo.toml +++ b/crates/typos-vars/Cargo.toml @@ -2,21 +2,14 @@ name = "typos-vars" version = "0.8.6" description = "Source Code Spelling Correction" -authors = ["Ed Page "] -license = "MIT OR Apache-2.0" -repository = "https://github.com/crate-ci/typos" readme = "../../README.md" categories = ["development-tools", "text-processing"] keywords = ["development", "spelling"] -edition = "2021" -rust-version = "1.64.0" # MSRV -include = [ - "src/**/*", - "Cargo.toml", - "LICENSE*", - "README.md", - "examples/**/*" -] +license.workspace = true +repository.workspace = true +edition.workspace = true +rust-version.workspace = true +include.workspace = true [dependencies] unicase = "2.6" diff --git a/crates/typos/Cargo.toml b/crates/typos/Cargo.toml index 89df5c9..1604754 100644 --- a/crates/typos/Cargo.toml +++ b/crates/typos/Cargo.toml @@ -2,21 +2,14 @@ name = "typos" version = "0.10.5" description = "Source Code Spelling Correction" -authors = ["Ed Page "] -license = "MIT OR Apache-2.0" -repository = "https://github.com/crate-ci/typos" readme = "../../README.md" categories = ["development-tools", "text-processing"] keywords = ["development", "spelling"] -edition = "2021" -rust-version = "1.64.0" # MSRV -include = [ - "src/**/*", - "Cargo.toml", - "LICENSE*", - "README.md", - "examples/**/*" -] +license.workspace = true +repository.workspace = true +edition.workspace = true +rust-version.workspace = true +include.workspace = true [dependencies] anyhow = "1.0" diff --git a/crates/varcon-core/Cargo.toml b/crates/varcon-core/Cargo.toml index 0d2a235..9778f10 100644 --- a/crates/varcon-core/Cargo.toml +++ b/crates/varcon-core/Cargo.toml @@ -2,20 +2,13 @@ name = "varcon-core" version = "2.2.6" description = "Varcon-relevant data structures" -authors = ["Ed Page "] -license = "MIT OR Apache-2.0" -repository = "https://github.com/crate-ci/typos" readme = "../../README.md" categories = ["text-processing"] -edition = "2021" -rust-version = "1.64.0" # MSRV -include = [ - "src/**/*", - "Cargo.toml", - "LICENSE*", - "README.md", - "examples/**/*" -] +license.workspace = true +repository.workspace = true +edition.workspace = true +rust-version.workspace = true +include.workspace = true [features] default = [] diff --git a/crates/varcon/Cargo.toml b/crates/varcon/Cargo.toml index 459ed5a..71dece2 100644 --- a/crates/varcon/Cargo.toml +++ b/crates/varcon/Cargo.toml @@ -2,21 +2,14 @@ name = "varcon" version = "0.6.5" description = "Source Code Spelling Correction" -authors = ["Ed Page "] -license = "MIT OR Apache-2.0" -repository = "https://github.com/crate-ci/typos" readme = "../../README.md" categories = ["development-tools", "text-processing"] keywords = ["development", "spelling"] -edition = "2021" -rust-version = "1.64.0" # MSRV -include = [ - "src/**/*", - "Cargo.toml", - "LICENSE*", - "README.md", - "examples/**/*" -] +license.workspace = true +repository.workspace = true +edition.workspace = true +rust-version.workspace = true +include.workspace = true [features] default = ["all"] diff --git a/crates/wikipedia-dict/Cargo.toml b/crates/wikipedia-dict/Cargo.toml index 351c8d3..37add1f 100644 --- a/crates/wikipedia-dict/Cargo.toml +++ b/crates/wikipedia-dict/Cargo.toml @@ -2,22 +2,15 @@ name = "wikipedia-dict" version = "0.4.0" description = "Source Code Spelling Correction" -authors = ["Ed Page "] -license = "CC-BY-SA-3.0" -repository = "https://github.com/crate-ci/typos" readme = "README.md" categories = ["development-tools", "text-processing"] keywords = ["development", "spelling"] -edition = "2021" -rust-version = "1.64.0" # MSRV publish = false -include = [ - "src/**/*", - "Cargo.toml", - "LICENSE*", - "README.md", - "examples/**/*" -] +license = "CC-BY-SA-3.0" +repository.workspace = true +edition.workspace = true +rust-version.workspace = true +include.workspace = true [package.metadata.release] release = false