Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 31 additions & 19 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ which = "4.4"
pprof = { version = "0.11", features = ["flamegraph"], optional = true }

[dev-dependencies]
asyncgit = { path = "asyncgit", features = ["test_utils"] }
pretty_assertions = "1.3"
serial_test = "2.0.0"
tempfile = "3.4"

[badges]
Expand Down Expand Up @@ -94,3 +96,4 @@ codegen-units = 1
# makes their debug profile slow
[profile.dev.package."tui"]
opt-level = 3

7 changes: 4 additions & 3 deletions asyncgit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ keywords = ["git"]
[dependencies]
crossbeam-channel = "0.5"
easy-cast = "0.5"
env_logger = "0.10"
git2 = "0.17"
log = "0.4"
# git2 = { path = "../../extern/git2-rs", features = ["vendored-openssl"]}
Expand All @@ -24,18 +25,18 @@ rayon-core = "1.11"
scopetime = { path = "../scopetime", version = "0.1" }
serde = { version = "1.0", features = ["derive"] }
shellexpand = "3.1"
tempfile = "3.4"
thiserror = "1.0"
unicode-truncate = "0.2.0"
url = "2.3"

[dev-dependencies]
env_logger = "0.10"
invalidstring = { path = "../invalidstring", version = "0.1" }
pretty_assertions = "1.3"
serial_test = "1.0"
tempfile = "3.4"
serial_test = "2.0.0"

[features]
default = ["trace-libgit"]
trace-libgit = []
vendor-openssl = ["openssl-sys"]
test_utils =[]
1 change: 1 addition & 0 deletions asyncgit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
// #![deny(clippy::expect_used)]
//TODO: consider cleaning some up and allow specific places
#![allow(clippy::significant_drop_tightening)]
#![allow(clippy::multiple_crate_versions)]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a red-flag. why do we want that? it bloats the binary. did you investigate what introduces the multiple versions of the same crate?


pub mod asyncjob;
mod blame;
Expand Down
16 changes: 13 additions & 3 deletions asyncgit/src/sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,18 @@ pub use utils::{

pub use git2::ResetType;

#[cfg(test)]
mod tests {
#[cfg(feature = "test_utils")]
/// test utilities - exported now
// see https://github.com/rust-lang/cargo/issues/8379
pub mod tests {
// these are now not under 'test' so they get clippied with 'all-features'
// we dont care about tests that panic
#![allow(clippy::unwrap_used, clippy::missing_panics_doc)]
// minor niggles
#![allow(clippy::nursery)]
// this clippy is confused by the name 'read'
// should probably be changed to read_into
#![allow(clippy::read_zero_byte_vec)]
use super::{
commit,
repository::repo,
Expand Down Expand Up @@ -278,7 +288,7 @@ mod tests {

// init log
fn init_log() {
let _ = env_logger::builder()
let _b = env_logger::builder()
.is_test(true)
.filter_level(log::LevelFilter::Trace)
.try_init();
Expand Down
3 changes: 2 additions & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ version = "1.0.3"
multiple-versions = "deny"
skip-tree = [
{ name = "windows-sys" },
{ name = "hermit-abi" }
{ name = "hermit-abi" },
{ name = "syn" }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

]
Loading