Snap for 8564071 from ce209ea135636ba3e355ba72a9fe1a8a8cf97aa7 to mainline-adbd-release

Change-Id: I1c9c8920055de040ea62db30c2855bf2ae182b2f
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json
index 4b0f3cd..46b53e4 100644
--- a/.cargo_vcs_info.json
+++ b/.cargo_vcs_info.json
@@ -1,5 +1,5 @@
 {
   "git": {
-    "sha1": "c6b06516c13c2ab01854908bab6e59c004725353"
+    "sha1": "def8d8b4033af35963bc9b11cdb444cf99f91b5a"
   }
 }
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..5cde165
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,7 @@
+version: 2
+updates:
+- package-ecosystem: cargo
+  directory: "/"
+  schedule:
+    interval: daily
+  open-pull-requests-limit: 10
diff --git a/Android.bp b/Android.bp
index 4b28758..588c73a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,4 +1,4 @@
-// This file is generated by cargo2android.py --run --device --dependencies.
+// This file is generated by cargo2android.py --config cargo2android.json.
 // Do not modify this file as changes will be overridden on upgrade.
 
 package {
@@ -24,6 +24,8 @@
     name: "libplotters_backend",
     host_supported: true,
     crate_name: "plotters_backend",
+    cargo_env_compat: true,
+    cargo_pkg_version: "0.3.2",
     srcs: ["src/lib.rs"],
     edition: "2018",
 }
diff --git a/Cargo.toml b/Cargo.toml
index e511ae2..582dabc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,7 +13,7 @@
 [package]
 edition = "2018"
 name = "plotters-backend"
-version = "0.3.0"
+version = "0.3.2"
 authors = ["Hao Hou <[email protected]>"]
 description = "Plotters Backend API"
 homepage = "https://plotters-rs.github.io"
diff --git a/Cargo.toml.orig b/Cargo.toml.orig
index b2f0750..0d27003 100644
--- a/Cargo.toml.orig
+++ b/Cargo.toml.orig
@@ -1,6 +1,6 @@
 [package]
 name = "plotters-backend"
-version = "0.3.0"
+version = "0.3.2"
 authors = ["Hao Hou <[email protected]>"]
 edition = "2018"
 license = "MIT"
diff --git a/METADATA b/METADATA
index 080b3f4..f2afc06 100644
--- a/METADATA
+++ b/METADATA
@@ -7,13 +7,13 @@
   }
   url {
     type: ARCHIVE
-    value: "https://static.crates.io/crates/plotters-backend/plotters-backend-0.3.0.crate"
+    value: "https://static.crates.io/crates/plotters-backend/plotters-backend-0.3.2.crate"
   }
-  version: "0.3.0"
+  version: "0.3.2"
   license_type: NOTICE
   last_upgrade_date {
     year: 2021
-    month: 4
-    day: 1
+    month: 8
+    day: 9
   }
 }
diff --git a/TEST_MAPPING b/TEST_MAPPING
new file mode 100644
index 0000000..3cbd48d
--- /dev/null
+++ b/TEST_MAPPING
@@ -0,0 +1,17 @@
+// Generated by update_crate_tests.py for tests that depend on this crate.
+{
+  "imports": [
+    {
+      "path": "external/rust/crates/base64"
+    },
+    {
+      "path": "external/rust/crates/tinytemplate"
+    },
+    {
+      "path": "external/rust/crates/tinyvec"
+    },
+    {
+      "path": "external/rust/crates/unicode-xid"
+    }
+  ]
+}
diff --git a/cargo2android.json b/cargo2android.json
new file mode 100644
index 0000000..bf78496
--- /dev/null
+++ b/cargo2android.json
@@ -0,0 +1,4 @@
+{
+  "device": true,
+  "run": true
+}
\ No newline at end of file
diff --git a/src/rasterizer/line.rs b/src/rasterizer/line.rs
index 0f24b0a..7a646f4 100644
--- a/src/rasterizer/line.rs
+++ b/src/rasterizer/line.rs
@@ -6,7 +6,7 @@
     mut to: BackendCoord,
     style: &S,
 ) -> Result<(), DrawingErrorKind<DB::ErrorType>> {
-    if style.color().alpha == 0.0 {
+    if style.color().alpha == 0.0 || style.stroke_width() == 0 {
         return Ok(());
     }