Skip to content

Commit

Permalink
refactor: Split bin/lib into separate crates
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 8, 2019
1 parent ce4a741 commit 164ee9c
Show file tree
Hide file tree
Showing 15 changed files with 162 additions and 54 deletions.
152 changes: 116 additions & 36 deletions Cargo.lock

Large diffs are not rendered by default.

21 changes: 5 additions & 16 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[workspace]
members = ["typos"]

[package]
name = "typos"
name = "typos-cli"
version = "0.1.0"
authors = ["Ed Page <[email protected]>"]
description = "Source Code Spelling Correction"
repository = "https://github.com/epage/typos"
documentation = "https://docs.rs/typos"
readme = "README.md"
categories = ["development-tools", "text-processing"]
keywords = ["development", "spelling"]
Expand All @@ -20,29 +22,16 @@ appveyor = { repository = "epage/typos" }
iterate_unstable = []

[dependencies]
typos = { version = "0.1", path = "typos" }
failure = "0.1"
structopt = "0.2"
clap = "2"
clap-verbosity-flag = "0.2.0"
ignore = "0.4"
phf = { version = "0.7", features = ["unicase"] }
regex = "1.0"
lazy_static = "1.2.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.4"
itertools = "0.8"
unicase = "1.1"
bstr = "0.2"
log = "0.4"
env_logger = "0.6"
unicode-segmentation = "1.3.0"
derive_more = "0.15.0"

[dev-dependencies]
assert_fs = "0.10"

[build-dependencies]
phf_codegen = "0.7"
csv = "1.0"
unicase = "1.1"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ Licensed under either of

at your option.

[Crates.io]: https://crates.io/crates/typos
[Crates.io]: https://crates.io/crates/typos-cli
[Documentation]: https://docs.rs/typos
2 changes: 1 addition & 1 deletion benches/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ fn main() {
}
";

pub const CORPUS: &str = include_str!("../assets/words.csv");
pub const CORPUS: &str = include_str!("../typos/assets/words.csv");
39 changes: 39 additions & 0 deletions typos/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[package]
name = "typos"
version = "0.1.0"
authors = ["Ed Page <[email protected]>"]
description = "Source Code Spelling Correction"
repository = "https://github.com/epage/typos"
documentation = "https://docs.rs/typos"
readme = "README.md"
categories = ["development-tools", "text-processing"]
keywords = ["development", "spelling"]
license = "MIT"
edition = "2018"

[badges]
travis-ci = { repository = "epage/typos" }
appveyor = { repository = "epage/typos" }

[features]
# Support quickly iterating
iterate_unstable = []

[dependencies]
failure = "0.1"
phf = { version = "0.7", features = ["unicase"] }
regex = "1.0"
lazy_static = "1.2.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
itertools = "0.8"
unicase = "1.1"
bstr = "0.2"
log = "0.4"
unicode-segmentation = "1.3.0"
derive_more = "0.15.0"

[build-dependencies]
phf_codegen = "0.7"
csv = "1.0"
unicase = "1.1"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 164ee9c

Please sign in to comment.