Update .gitignore to check in Cargo.lock files
Cargo.lock files should be checked into version control, per the FAQ.[1]
This edits .gitignore to stop ignoring these files, and checks in the
latest Cargo.lock generated for bssl-sys and bssl-crypto crates.
Unrelatedly, start ignoring /out directories which may be used for
builds.
[1] https://doc.rust-lang.org/cargo/faq.html#why-have-cargolock-in-version-control
Change-Id: I77764645cb550b60b1fc15f6c54163da5cf7cac9
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/80447
Commit-Queue: Lily Chen <chlily@google.com>
Auto-Submit: Lily Chen <chlily@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
diff --git a/.gitignore b/.gitignore
index 8c3524b..b172d54 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,11 +6,10 @@
*.pyc
*.swp
*.swo
+/out/
/doc/*.html
/doc/doc.css
-/rust/Cargo.lock
-/rust/bssl-crypto/Cargo.lock
-/rust/target
+/rust/**/target
/user.bazelrc
/util/bazel-example/bazel-*
@@ -36,5 +35,3 @@
/util/bot/tools
/util/bot/windows_sdk
-# Ignore target under any directory.
-target/
diff --git a/rust/bssl-crypto/Cargo.lock b/rust/bssl-crypto/Cargo.lock
new file mode 100644
index 0000000..d1c658f
--- /dev/null
+++ b/rust/bssl-crypto/Cargo.lock
@@ -0,0 +1,14 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 4
+
+[[package]]
+name = "bssl-crypto"
+version = "0.2.0"
+dependencies = [
+ "bssl-sys",
+]
+
+[[package]]
+name = "bssl-sys"
+version = "0.1.0"
diff --git a/rust/bssl-sys/Cargo.lock b/rust/bssl-sys/Cargo.lock
new file mode 100644
index 0000000..24f17f4
--- /dev/null
+++ b/rust/bssl-sys/Cargo.lock
@@ -0,0 +1,7 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 4
+
+[[package]]
+name = "bssl-sys"
+version = "0.1.0"