From 8068f370a55f553753afbfc505c4d6ae69a75c42 Mon Sep 17 00:00:00 2001
From: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com>
Date: Sat, 30 Nov 2024 11:02:58 +0100
Subject: [PATCH] bump plotly version and edition to 2021
- bump edition to 2021
- set resolver to 2 to bypass latest wasm-bindgen bug: https://github.com/rustwasm/wasm-bindgen/issues/4304
- remove patch versioning from all dependencies
Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com>
---
.github/workflows/ci.yml | 6 ++---
CHANGELOG.md | 10 ++++----
Cargo.toml | 7 ++----
README.md | 6 ++---
docs/book/src/fundamentals/ndarray_support.md | 2 +-
docs/book/src/getting_started.md | 6 ++---
examples/3d_charts/Cargo.toml | 4 ++--
examples/Cargo.toml | 3 ++-
examples/basic_charts/Cargo.toml | 6 ++---
examples/custom_controls/Cargo.toml | 4 ++--
examples/financial_charts/Cargo.toml | 4 ++--
examples/images/Cargo.toml | 7 ++++--
examples/ndarray/Cargo.toml | 2 +-
examples/shapes/Cargo.toml | 6 ++---
examples/statistical_charts/Cargo.toml | 6 ++---
examples/wasm-yew-minimal/Cargo.toml | 11 +++++----
plotly/Cargo.toml | 24 +++++++++----------
plotly/src/plot.rs | 5 ++--
plotly_derive/Cargo.toml | 4 ++--
plotly_kaleido/Cargo.toml | 10 ++++----
plotly_kaleido/src/lib.rs | 1 +
21 files changed, 70 insertions(+), 64 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 261d3677..a60329ed 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -92,7 +92,8 @@ jobs:
strategy:
fail-fast: false
matrix:
- example: [ # missing jupyter
+ example: # missing jupyter
+ [
3d_charts,
basic_charts,
custom_controls,
@@ -103,7 +104,7 @@ jobs:
ndarray,
scientific_charts,
shapes,
- subplots
+ subplots,
]
runs-on: ubuntu-latest
steps:
@@ -124,4 +125,3 @@ jobs:
with:
targets: wasm32-unknown-unknown
- run: cd ${{ github.workspace }}/examples/${{ matrix.example }} && cargo build --target wasm32-unknown-unknown
-
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2a39c706..b27e40e8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-## [0.11.0] - 2024-11-x
+## [0.11.0] - 2024-12-06
### Changed
- [[#251](https://github.com/plotly/plotly.rs/pull/251)] Expose image data as String with `to_base64` and `to_svg` using Kaleido
- [[#245](https://github.com/plotly/plotly.rs/pull/245)] Change Contours size to be `f64` instead of `usize`
@@ -11,9 +11,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
Renamed `use_cdn_plotly` to `use_cdn_js`.
### Fixed
-- [[#248]](https://github.com/plotly/plotly.rs/issues/248) Book recipes do not render graphs
-- [[#247]](https://github.com/plotly/plotly.rs/issues/247) Add function to export image (with Kaleido) as a b64 string
-- [[#246]](https://github.com/plotly/plotly.rs/pull/246) Expose pattern fill api for histograms and bar charts
+- [[#248](https://github.com/plotly/plotly.rs/issues/248)] Book recipes do not render graphs
+- [[#247](https://github.com/plotly/plotly.rs/issues/247)] Add function to export image (with Kaleido) as a b64 string
+- [[#246](https://github.com/plotly/plotly.rs/pull/246)] Expose pattern fill api for histograms and bar charts
- [[#244](https://github.com/plotly/plotly.rs/pull/244)] Fix swapped x and y in the examples.
- [[#242](https://github.com/plotly/plotly.rs/issues/242)] Disable request for tex-svg.js file
- [[#237](https://github.com/plotly/plotly.rs/issues/237)] Add Categorical Axis ordering.
@@ -25,7 +25,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
### Fixed
- [[#230](https://github.com/plotly/plotly.rs/pull/230)] Make Bar chart `width` and `offset` use `f64` values.
-## [0.10.0] - 2024-09-06
+## [0.9.1] - 2024-09-06
### Added
- [[#217](https://github.com/plotly/plotly.rs/pull/217)] Added show_html(filename) method to bypass situations where accessing default `/tmp` is not possible, e.g., with in SNAP Firefox
- [[#227](https://github.com/plotly/plotly.rs/pull/227)] Switch from HTML template render from `askama` to `rinja`
diff --git a/Cargo.toml b/Cargo.toml
index b6aa8df4..5f2ceea2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,3 @@
[workspace]
-members = [
- "plotly",
- "plotly_derive",
- "plotly_kaleido",
-]
\ No newline at end of file
+resolver = "2"
+members = ["plotly", "plotly_derive", "plotly_kaleido"]
diff --git a/README.md b/README.md
index b7d745bd..3eb81720 100644
--- a/README.md
+++ b/README.md
@@ -61,7 +61,7 @@ Add this to your `Cargo.toml`:
```toml
[dependencies]
-plotly = "0.10.0"
+plotly = "0.11"
```
## Exporting a single Interactive Plot
@@ -103,7 +103,7 @@ To save a plot as a static image, the `kaleido` feature is required:
# Cargo.toml
[dependencies]
-plotly = { version = "0.10.0", features = ["kaleido"] }
+plotly = { version = "0.11", features = ["kaleido"] }
```
With this feature enabled, plots can be saved as any of `png`, `jpeg`, `webp`, `svg`, `pdf` and `eps`. Note that the plot will be a static image, i.e. they will be non-interactive.
@@ -130,7 +130,7 @@ Using `Plotly.rs` in a Wasm-based frontend framework is possible by enabling the
# Cargo.toml
[dependencies]
-plotly = { version = "0.10.0", features = ["wasm"] }
+plotly = { version = "0.11", features = ["wasm"] }
```
First, make sure that you have the Plotly JavaScript library in your base HTML template:
diff --git a/docs/book/src/fundamentals/ndarray_support.md b/docs/book/src/fundamentals/ndarray_support.md
index cf258750..da1196c4 100644
--- a/docs/book/src/fundamentals/ndarray_support.md
+++ b/docs/book/src/fundamentals/ndarray_support.md
@@ -130,4 +130,4 @@ var data = [trace_0,trace_1,trace_2,trace_3,trace_4,trace_5,trace_6,trace_7,trac
var layout = {};
Plotly.newPlot('multiple_ndarray_traces_over_rows', data, layout, {"responsive": true});
};
-
\ No newline at end of file
+
diff --git a/docs/book/src/getting_started.md b/docs/book/src/getting_started.md
index b3300536..9caf0b30 100644
--- a/docs/book/src/getting_started.md
+++ b/docs/book/src/getting_started.md
@@ -22,7 +22,7 @@ To start using [plotly.rs](https://github.com/plotly/plotly.rs) in your project
```toml
[dependencies]
-plotly = "0.10.0"
+plotly = "0.11"
```
[Plotly.rs](https://github.com/plotly/plotly.rs) is ultimately a thin wrapper around the `plotly.js` library. The main job of this library is to provide `structs` and `enums` which get serialized to `json` and passed to the `plotly.js` library to actually do the heavy lifting. As such, if you are familiar with `plotly.js` or its derivatives (e.g. the equivalent Python library), then you should find [`plotly.rs`](https://github.com/plotly/plotly.rs) intuitive to use.
@@ -97,7 +97,7 @@ To add the ability to save plots in the following formats: png, jpeg, webp, svg,
```toml
[dependencies]
-plotly = { version = "0.10.0", features = ["kaleido"] }
+plotly = { version = "0.11", features = ["kaleido"] }
```
## WebAssembly Support
@@ -152,4 +152,4 @@ pub fn plot(props: &PlotProps) -> Html {