aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-08-10 16:40:00 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-08-10 16:40:00 +0000
commit0fd53bf1534bbfbdae511db3bca17c7800651d50 (patch)
treea309393a001c6954fb8d67d00cc19ef208867439
parent13033bec139c3ba85c199f07e2d565e01225a8a6 (diff)
parent04cd12637882a4dc24437caa82592dd10286ad81 (diff)
downloadplotters-svg-0fd53bf1534bbfbdae511db3bca17c7800651d50.tar.gz
Upgrade rust/crates/plotters-svg to 0.3.1 am: 28bb7ac83c am: 8be7c4dbcc am: cd0e2f2437 am: 04cd126378
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/plotters-svg/+/1791072 Change-Id: Ie2936ed44fb3affb808093eb558bc30940499d2a
-rw-r--r--.cargo_vcs_info.json2
-rw-r--r--.github/dependabot.yml7
-rw-r--r--Android.bp2
-rw-r--r--Cargo.toml6
-rw-r--r--Cargo.toml.orig5
-rw-r--r--METADATA8
-rw-r--r--src/lib.rs8
-rw-r--r--src/svg.rs6
8 files changed, 29 insertions, 15 deletions
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json
index 1dbdbe0..58b45c5 100644
--- a/.cargo_vcs_info.json
+++ b/.cargo_vcs_info.json
@@ -1,5 +1,5 @@
{
"git": {
- "sha1": "e325417f8b5515cd400a8a337b4f949aa81cd6a9"
+ "sha1": "47289e89a1078f330fcb6a3886b0ae34dc3f69e2"
}
}
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 1522f1a..1a6fc57 100644
--- a/Android.bp
+++ b/Android.bp
@@ -30,4 +30,4 @@ rust_library {
}
// dependent_library ["feature_list"]
-// plotters-backend-0.3.0
+// plotters-backend-0.3.2
diff --git a/Cargo.toml b/Cargo.toml
index 91ebbb7..c4a7dbb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,7 +13,7 @@
[package]
edition = "2018"
name = "plotters-svg"
-version = "0.3.0"
+version = "0.3.1"
authors = ["Hao Hou <haohou302@gmail.com>"]
description = "Plotters SVG backend"
homepage = "https://plotters-rs.github.io"
@@ -22,6 +22,10 @@ license = "MIT"
repository = "https://github.com/plotters-rs/plotters-svg.git"
[dependencies.plotters-backend]
version = "^0.3.*"
+[dev-dependencies.plotters]
+version = "^0.3.0"
+features = ["ttf"]
+default_features = false
[features]
debug = []
diff --git a/Cargo.toml.orig b/Cargo.toml.orig
index 1da099c..516f314 100644
--- a/Cargo.toml.orig
+++ b/Cargo.toml.orig
@@ -1,6 +1,6 @@
[package]
name = "plotters-svg"
-version = "0.3.0"
+version = "0.3.1"
authors = ["Hao Hou <haohou302@gmail.com>"]
edition = "2018"
license = "MIT"
@@ -16,3 +16,6 @@ plotters-backend = "^0.3.*"
[features]
debug = []
+
+[dev-dependencies]
+plotters = {version = "^0.3.0", default_features = false, features = ["ttf"]}
diff --git a/METADATA b/METADATA
index 5a12bf0..c2d4460 100644
--- a/METADATA
+++ b/METADATA
@@ -7,13 +7,13 @@ third_party {
}
url {
type: ARCHIVE
- value: "https://static.crates.io/crates/plotters-svg/plotters-svg-0.3.0.crate"
+ value: "https://static.crates.io/crates/plotters-svg/plotters-svg-0.3.1.crate"
}
- version: "0.3.0"
+ version: "0.3.1"
license_type: NOTICE
last_upgrade_date {
year: 2021
- month: 4
- day: 1
+ month: 8
+ day: 9
}
}
diff --git a/src/lib.rs b/src/lib.rs
index 243117f..d4bdbe7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,8 +1,8 @@
/*!
- The Plotters SVG backend.
-
- The plotters bitmap backend allows you to render images by Plotters into SVG vector graphs.
-
+ The Plotters SVG backend.
+
+ The plotters bitmap backend allows you to render images by Plotters into SVG vector graphs.
+
See the documentation for [SVGBackend](struct.SVGBackend.html) for more details.
*/
mod svg;
diff --git a/src/svg.rs b/src/svg.rs
index e6499e0..02bba02 100644
--- a/src/svg.rs
+++ b/src/svg.rs
@@ -605,7 +605,7 @@ mod test {
let mut chart = ChartBuilder::on(&root)
.caption("This is a test", ("sans-serif", 20))
.set_all_label_area_size(40)
- .build_ranged(0..10, 0..10)
+ .build_cartesian_2d(0..10, 0..10)
.unwrap();
chart
@@ -676,7 +676,7 @@ mod test {
let mut chart = ChartBuilder::on(&root)
.caption("All anchor point positions", ("sans-serif", 20))
.set_all_label_area_size(40)
- .build_ranged(0..100, 0..50)
+ .build_cartesian_2d(0..100, 0..50)
.unwrap();
chart
@@ -765,7 +765,7 @@ mod test {
let mut chart = ChartBuilder::on(&root)
.caption("All series label positions", ("sans-serif", 20))
.set_all_label_area_size(40)
- .build_ranged(0..50, 0..50)
+ .build_cartesian_2d(0..50, 0..50)
.unwrap();
chart