From 094b4a298c6658f1f24d28a24fc2f19a68deba0b Mon Sep 17 00:00:00 2001 From: Jeff Vander Stoep Date: Thu, 8 Dec 2022 13:11:52 +0100 Subject: Upgrade criterion-plot to 0.5.0 This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update rust/crates/criterion-plot For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md Test: TreeHugger Change-Id: I221950553559e768945317df0a6f024f00adefa4 --- .cargo_vcs_info.json | 7 ++++--- Android.bp | 6 +++++- CONTRIBUTING.md | 9 +++++++++ Cargo.toml | 31 ++++++++++++++++++++----------- Cargo.toml.orig | 8 ++++---- METADATA | 14 +++++++++----- src/axis.rs | 3 +++ src/candlestick.rs | 3 +++ src/curve.rs | 3 +++ src/data.rs | 2 -- src/errorbar.rs | 3 +++ src/filledcurve.rs | 3 +++ src/key.rs | 3 +++ src/lib.rs | 9 ++++++--- 14 files changed, 75 insertions(+), 29 deletions(-) diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json index 1abeeed..1098afe 100644 --- a/.cargo_vcs_info.json +++ b/.cargo_vcs_info.json @@ -1,5 +1,6 @@ { "git": { - "sha1": "97a70ee543c8984ce21c56824099fcfb96554c80" - } -} + "sha1": "5e27b692a43a05736d073fd449e16dcf1c24628c" + }, + "path_in_vcs": "plot" +} \ No newline at end of file diff --git a/Android.bp b/Android.bp index de3651a..e27d402 100644 --- a/Android.bp +++ b/Android.bp @@ -31,11 +31,15 @@ rust_library { host_supported: true, crate_name: "criterion_plot", cargo_env_compat: true, - cargo_pkg_version: "0.4.4", + cargo_pkg_version: "0.5.0", srcs: ["src/lib.rs"], edition: "2018", rustlibs: [ "libcast", "libitertools", ], + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index be5026b..59ae026 100755 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -55,6 +55,15 @@ Some things that will increase the chance that your pull request is accepted: * Clearly document public methods * Write a good commit message +## Branches + +* PRs with breaking changes are made against the unreleased branch. e.g. branch version-0.4 +* PRs without breaking changes are made against the master branch. + +If you're not sure which branch to use just start with master, as this can be changed during review. + +When it is time to release the unreleased branch, a PR is made from the unreleased branch to master. e.g. https://github.com/bheisler/criterion.rs/pull/496 + ## Github Labels Criterion.rs uses a simple set of labels to track issues. Most important are the diff --git a/Cargo.toml b/Cargo.toml index 5ddfdc6..9d64276 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,39 +3,48 @@ # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies -# to registry (e.g., crates.io) dependencies +# to registry (e.g., crates.io) dependencies. # -# If you believe there's an error in this file please file an -# issue against the rust-lang/cargo repository. If you're -# editing this file be aware that the upstream Cargo.toml -# will likely look very different (and much more reasonable) +# If you are reading this file be aware that the original Cargo.toml +# will likely look very different (and much more reasonable). +# See Cargo.toml.orig for the original contents. [package] edition = "2018" name = "criterion-plot" -version = "0.4.4" -authors = ["Jorge Aparicio ", "Brook Heisler "] +version = "0.5.0" +authors = [ + "Jorge Aparicio ", + "Brook Heisler ", +] description = "Criterion's plotting library" readme = "README.md" -keywords = ["plotting", "gnuplot", "criterion"] +keywords = [ + "plotting", + "gnuplot", + "criterion", +] categories = ["visualization"] license = "MIT/Apache-2.0" repository = "https://github.com/bheisler/criterion.rs" + [dependencies.cast] -version = "0.2" +version = "0.3" [dependencies.itertools] version = "0.10" + [dev-dependencies.itertools-num] version = "0.1" [dev-dependencies.num-complex] -version = "0.2" +version = "0.4" features = ["std"] default-features = false [dev-dependencies.rand] -version = "0.4" +version = "0.8" + [badges.appveyor] id = "4255ads9ctpupcl2" repository = "bheisler/criterion.rs" diff --git a/Cargo.toml.orig b/Cargo.toml.orig index 76e0064..a1ce36e 100755 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -1,7 +1,7 @@ [package] authors = ["Jorge Aparicio ", "Brook Heisler "] name = "criterion-plot" -version = "0.4.4" +version = "0.5.0" edition = "2018" description = "Criterion's plotting library" @@ -12,13 +12,13 @@ categories = ["visualization"] license = "MIT/Apache-2.0" [dependencies] -cast = "0.2" +cast = "0.3" itertools = "0.10" [dev-dependencies] itertools-num = "0.1" -num-complex = { version = "0.2", default-features = false, features = ["std"] } -rand = "0.4" +num-complex = { version = "0.4", default-features = false, features = ["std"] } +rand = "0.8" [badges] travis-ci = { repository = "bheisler/criterion.rs" } diff --git a/METADATA b/METADATA index e2fcb10..9c18332 100644 --- a/METADATA +++ b/METADATA @@ -1,3 +1,7 @@ +# This project was upgraded with external_updater. +# Usage: tools/external_updater/updater.sh update rust/crates/criterion-plot +# For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md + name: "criterion-plot" description: "Criterion\'s plotting library" third_party { @@ -7,13 +11,13 @@ third_party { } url { type: ARCHIVE - value: "https://static.crates.io/crates/criterion-plot/criterion-plot-0.4.4.crate" + value: "https://static.crates.io/crates/criterion-plot/criterion-plot-0.5.0.crate" } - version: "0.4.4" + version: "0.5.0" license_type: NOTICE last_upgrade_date { - year: 2021 - month: 8 - day: 9 + year: 2022 + month: 12 + day: 8 } } diff --git a/src/axis.rs b/src/axis.rs index 97fd0cb..142c7fb 100755 --- a/src/axis.rs +++ b/src/axis.rs @@ -155,6 +155,9 @@ where } impl<'a> Script for (Axis, &'a Properties) { + // Allow clippy::format_push_string even with older versions of rust (<1.62) which + // don't have it defined. + #[allow(clippy::all)] fn script(&self) -> String { let &(axis, properties) = self; let axis_ = axis.display(); diff --git a/src/candlestick.rs b/src/candlestick.rs index e0a5cbe..d1754e8 100755 --- a/src/candlestick.rs +++ b/src/candlestick.rs @@ -27,6 +27,9 @@ impl Default for Properties { } impl Script for Properties { + // Allow clippy::format_push_string even with older versions of rust (<1.62) which + // don't have it defined. + #[allow(clippy::all)] fn script(&self) -> String { let mut script = String::from("with candlesticks "); diff --git a/src/curve.rs b/src/curve.rs index bbddeff..a5766ee 100755 --- a/src/curve.rs +++ b/src/curve.rs @@ -38,6 +38,9 @@ impl CurveDefault