Skip to content

Commit

Permalink
refactor(deps): utilize workspace dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Nov 19, 2022
1 parent a8fa7f9 commit f2def40
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ members = [
"git-cliff",
]

[workspace.dependencies]
regex = "1.6.0"
glob = "0.3.0"

[profile.dev]
opt-level = 0
debug = true
Expand Down
4 changes: 2 additions & 2 deletions git-cliff-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ edition = "2021"
rust-version = "1.60.0"

[dependencies]
glob.workspace = true
regex.workspace = true
thiserror = "1.0.35"
serde = { version = "1.0.145", features = ["derive"] }
serde_json = "1.0.85"
tera = "1.17.1"
regex = "1.6.0"
serde_regex = "1.1.0"
indexmap = "1.9.1"
toml = "0.5.9"
glob = "0.3.0"
lazy-regex = "2.3.0"

[dependencies.git2]
Expand Down
5 changes: 0 additions & 5 deletions git-cliff-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
//! A highly customizable changelog generator
#![warn(missing_docs, clippy::unwrap_used)]

/// Export `glob` crate.
pub use glob;
/// Export `regex` crate.
pub use regex;

/// Command runner.
pub mod command;
/// Git commit.
Expand Down
2 changes: 2 additions & 0 deletions git-cliff/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ path = "src/bin/mangen.rs"
default = ["update-informer"]

[dependencies]
glob.workspace = true
regex.workspace = true
pretty_env_logger = "0.4.0"
log = "0.4.17"
dirs-next = "2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion git-cliff/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use clap::{
ArgEnum,
Parser,
};
use git_cliff_core::glob::Pattern;
use git_cliff_core::DEFAULT_CONFIG;
use glob::Pattern;
use std::path::PathBuf;

#[derive(Debug, Clone, Copy, ArgEnum)]
Expand Down
2 changes: 1 addition & 1 deletion git-cliff/src/changelog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ mod test {
CommitPreprocessor,
GitConfig,
};
use git_cliff_core::regex::Regex;
use pretty_assertions::assert_eq;
use regex::Regex;
use std::str;

fn get_test_data() -> (Config, Vec<Release<'static>>) {
Expand Down

0 comments on commit f2def40

Please sign in to comment.