Rust


Series: Using Rust's TcpStream

Jun - 2020

Series: Intro to Rust Macros

Jul - 2020

Hide Cargo.lock in git Diff

Jun - 2020 (~3 minutes read time)

Whenever you add or update dependencies in Cargo.toml, the diff output in Cargo.lock can be verbose and distracting when I'm looking at git diff output:

$ git diff --stat
 Cargo.lock | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 Cargo.toml |  3 +++
 2 files changed, 57 insertions(+)
$ git diff
diff --git a/Cargo.lock b/Cargo.lock
index c287579..a41401e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -151,6 +151,7 @@ dependencies = [
  "jsonrpsee",
  "log",
  "net2",
+ "pcap-file",
  "prettytable-rs",
  "serde",
  "serde_json",
@@ -344,6 +345,16 @@ dependencies = [
  "memchr",
 ]

+[[package]]
+ ... pages of [[package]] updates