refactor: Follow monorepo pattern elsewhere

This commit is contained in:
Ed Page 2020-05-18 19:58:38 -05:00
parent 04837f0bfd
commit 814ff82aff
39 changed files with 12 additions and 12 deletions

View file

@ -1,10 +1,10 @@
[workspace] [workspace]
members = [ members = [
"typos", "crates/typos",
"dict/typos", "dict/typos/codegen", "crates/typos-dict", "crates/typos-dict/codegen",
"dict/codespell", "dict/codespell/codegen", "crates/codespell-dict", "crates/codespell-dict/codegen",
"dict/misspell", "dict/misspell/codegen", "crates/misspell-dict", "crates/misspell-dict/codegen",
"dict/wikipedia", "dict/wikipedia/codegen", "crates/wikipedia-dict", "crates/wikipedia-dict/codegen",
] ]
[package] [package]
@ -29,8 +29,8 @@ azure-devops = { project = "crate-ci", pipeline = "typos" }
codecov = { repository = "crate-ci/typos" } codecov = { repository = "crate-ci/typos" }
[dependencies] [dependencies]
typos = { version = "^0.3", path = "typos" } typos = { version = "^0.3", path = "crates/typos" }
typos-dict = { version = "^0.2", path = "dict/typos" } typos-dict = { version = "^0.2", path = "crates/typos-dict" }
phf = { version = "0.8", features = ["unicase"] } phf = { version = "0.8", features = ["unicase"] }
unicase = "2.5" unicase = "2.5"
anyhow = "1.0" anyhow = "1.0"

View file

@ -28,16 +28,16 @@ stages:
steps: steps:
- template: install-rust.yml@templates - template: install-rust.yml@templates
- script: | - script: |
cargo run --package typos-codegen -- --output dict/typos/src/dict_codegen.rs --check cargo run --package typos-codegen -- --output crates/typos-dict/src/dict_codegen.rs --check
displayName: Verify typos-dict displayName: Verify typos-dict
- script: | - script: |
cargo run --package codespell-codegen -- --output dict/codespell/src/dict_codegen.rs --check cargo run --package codespell-codegen -- --output crates/codespell-dict/src/dict_codegen.rs --check
displayName: Verify codespell-dict displayName: Verify codespell-dict
- script: | - script: |
cargo run --package misspell-codegen -- --output dict/misspell/src/dict_codegen.rs --check cargo run --package misspell-codegen -- --output crates/misspell-dict/src/dict_codegen.rs --check
displayName: Verify misspell-dict displayName: Verify misspell-dict
- script: | - script: |
cargo run --package wikipedia-codegen -- --output dict/wikipedia/src/dict_codegen.rs --check cargo run --package wikipedia-codegen -- --output crates/wikipedia-dict/src/dict_codegen.rs --check
displayName: Verify wikipedia-dict displayName: Verify wikipedia-dict
- stage: committed - stage: committed
displayName: Lint History displayName: Lint History

View file

@ -28,4 +28,4 @@ fn main() {
} }
"; ";
pub const CORPUS: &str = include_str!("../dict/typos/assets/words.csv"); pub const CORPUS: &str = include_str!("../crates/typos-dict/assets/words.csv");

View file

Can't render this file because it is too large.