Skip to content

Commit 2f13232

Browse files
committed
bump plotly version and edition to 2021
- bump edition to 2021 - set resolver to 2 to bypasses latest wasm-bindgen bug: wasm-bindgen/wasm-bindgen#4304 - remove patch versioning from all dependencies Signed-off-by: Andrei Gherghescu <[email protected]>
1 parent 3afb7ff commit 2f13232

File tree

17 files changed

+60
-55
lines changed

17 files changed

+60
-55
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file.
33

44
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).
55

6-
## [0.11.0] - 2024-11-x
6+
## [0.11.0] - 2024-11-30
77
### Changed
88
- [[#251](https://github.com/plotly/plotly.rs/pull/251)] Expose image data as String with `to_base64` and `to_svg` using Kaleido
99
- [[#245](https://github.com/plotly/plotly.rs/pull/245)] Change Contours size to be `f64` instead of `usize`
@@ -25,7 +25,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
2525
### Fixed
2626
- [[#230](https://github.com/plotly/plotly.rs/pull/230)] Make Bar chart `width` and `offset` use `f64` values.
2727

28-
## [0.10.0] - 2024-09-06
28+
## [0.9.1] - 2024-09-06
2929
### Added
3030
- [[#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
3131
- [[#227](https://github.com/plotly/plotly.rs/pull/227)] Switch from HTML template render from `askama` to `rinja`

Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[workspace]
2-
members = [
3-
"plotly",
4-
"plotly_derive",
5-
"plotly_kaleido",
6-
]
2+
resolver = "2"
3+
members = ["plotly", "plotly_derive", "plotly_kaleido"]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Add this to your `Cargo.toml`:
6161

6262
```toml
6363
[dependencies]
64-
plotly = "0.10.0"
64+
plotly = "0.11"
6565
```
6666

6767
## Exporting a single Interactive Plot
@@ -103,7 +103,7 @@ To save a plot as a static image, the `kaleido` feature is required:
103103
# Cargo.toml
104104

105105
[dependencies]
106-
plotly = { version = "0.10.0", features = ["kaleido"] }
106+
plotly = { version = "0.11", features = ["kaleido"] }
107107
```
108108

109109
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
130130
# Cargo.toml
131131

132132
[dependencies]
133-
plotly = { version = "0.10.0", features = ["wasm"] }
133+
plotly = { version = "0.11", features = ["wasm"] }
134134
```
135135

136136
First, make sure that you have the Plotly JavaScript library in your base HTML template:

docs/book/src/fundamentals/ndarray_support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
To enable [ndarray](https://github.com/rust-ndarray/ndarray) support in [Plotly.rs](https://github.com/plotly/plotly.rs) add the following feature to your `Cargo.toml` file:
44
```toml
55
[dependencies]
6-
plotly = { version = ">=0.7.0", features = ["plotly_ndarray"] }
6+
plotly = { version = ">=0.7", features = ["plotly_ndarray"] }
77
```
88

99
This extends the [Plotly.rs](https://github.com/plotly/plotly.rs) API in two ways:

docs/book/src/getting_started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To start using [plotly.rs](https://github.com/plotly/plotly.rs) in your project
2222

2323
```toml
2424
[dependencies]
25-
plotly = "0.10.0"
25+
plotly = "0.11"
2626
```
2727

2828
[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,
9797

9898
```toml
9999
[dependencies]
100-
plotly = { version = "0.10.0", features = ["kaleido"] }
100+
plotly = { version = "0.11", features = ["kaleido"] }
101101
```
102102

103103
## WebAssembly Support
@@ -106,7 +106,7 @@ As of v0.8.0, [plotly.rs](https://github.com/plotly/plotly.rs) can now be used i
106106

107107
```toml
108108
[dependencies]
109-
plotly = { version = ">=0.8.0" features = ["wasm"] }
109+
plotly = { version = ">=0.8" features = ["wasm"] }
110110
```
111111

112112
The `wasm` feature exposes rudimentary bindings to the `plotly.js` library, which can then be used in a `wasm` environment such as the [`Yew`](https://yew.rs/) frontend framework.

examples/3d_charts/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ authors = ["Michael Freeborn <[email protected]>"]
55
edition = "2021"
66

77
[dependencies]
8-
ndarray = "0.16.0"
9-
rand = "0.8.5"
8+
ndarray = "0.16"
9+
rand = "0.8"
1010
plotly = { path = "../../plotly" }

examples/basic_charts/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = ["Michael Freeborn <[email protected]>"]
55
edition = "2021"
66

77
[dependencies]
8-
ndarray = "0.16.0"
8+
ndarray = "0.16"
99
plotly = { path = "../../plotly" }
10-
rand = "0.8.5"
11-
rand_distr = "0.4.3"
10+
rand = "0.8"
11+
rand_distr = "0.4"

examples/custom_controls/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ authors = ["Michael Freeborn <[email protected]>"]
55
edition = "2021"
66

77
[dependencies]
8-
itertools = "0.10.3"
9-
plotly = { path = "../../plotly" }
8+
itertools = "0.10"
9+
plotly = { path = "../../plotly" }

examples/financial_charts/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ authors = ["Michael Freeborn <[email protected]>"]
55
edition = "2021"
66

77
[dependencies]
8-
csv = "1.1.6"
8+
csv = "1.1"
99
plotly = { path = "../../plotly" }
10-
serde = "1.0.147"
10+
serde = "1.0"

examples/images/Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ name = "images"
33
version = "0.1.0"
44
authors = ["Michael Freeborn <[email protected]>"]
55
edition = "2021"
6+
resolver = "2"
67

78
[dependencies]
89
image = "0.25"
9-
ndarray = "0.16.0"
10-
plotly = { path = "../../plotly", features = ["plotly_image", "plotly_ndarray"] }
10+
ndarray = "0.16"
11+
plotly = { path = "../../plotly", features = [
12+
"plotly_image",
13+
"plotly_ndarray",
14+
] }

0 commit comments

Comments
 (0)