Skip to content

Commit

Permalink
feat: Merges support crates for hc_data into hc_data (#40)
Browse files Browse the repository at this point in the history
Merges more crates into `hc_data`:

- `hc_git_command`
- `hc_hash`

Signed-off-by: Andrew Lilley Brinker <[email protected]>
Co-authored-by: Andrew Lilley Brinker <[email protected]>
  • Loading branch information
mchernicoff and alilleybrinker authored May 1, 2024
1 parent ccb554d commit b826128
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 37 deletions.
13 changes: 0 additions & 13 deletions Cargo.lock

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

2 changes: 0 additions & 2 deletions libs/hc_data/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ dirs = "5.0.1"
graphql_client = "0.14.0"
hc_common = { path = "../hc_common" }
hc_config = { path = "../hc_config" }
hc_git_command = { path = "../hc_git_command" }
hc_hash = { path = "../hc_hash" }
hc_shell = { path = "../hc_shell" }
hc_version = { path = "../hc_version" }
nom = "7.1.3"
Expand Down
2 changes: 1 addition & 1 deletion libs/hc_data/src/git/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ pub mod parse;
mod query;

pub use data::*;
pub use hc_git_command::*;
use parse::*;
pub use query::*;

pub use crate::git_command::*;
use hc_common::context::Context as _;
use hc_common::{
error::{Error, Result},
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions libs/hc_data/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
mod code_quality;
mod es_lint;
pub mod git;
pub mod git_command;
mod github;
mod hash;
mod modules;
pub mod npm;
mod query;
Expand Down
2 changes: 1 addition & 1 deletion libs/hc_data/src/source/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ mod query;

pub use query::*;

use crate::git_command::GitCommand;
use hc_common::log::{self, debug};
use hc_common::{
context::Context,
error::{Error, Result},
hc_error, pathbuf,
url::Url,
};
use hc_git_command::GitCommand;
use hc_shell::Phase;
use std::ffi::OsStr;
use std::fmt::{self, Debug, Display, Formatter};
Expand Down
6 changes: 4 additions & 2 deletions libs/hc_data/src/source/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

//! A query group for accessing Git repository data.
use crate::source::{Remote, Source};
use crate::{
hash,
source::{Remote, Source},
};
use hc_common::{pathbuf, salsa};
use hc_hash::hash;
use std::path::PathBuf;
use std::rc::Rc;

Expand Down
9 changes: 0 additions & 9 deletions libs/hc_git_command/Cargo.toml

This file was deleted.

9 changes: 0 additions & 9 deletions libs/hc_hash/Cargo.toml

This file was deleted.

0 comments on commit b826128

Please sign in to comment.