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: rustwasm/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

+2-2
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

+2-5
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

+3-3
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

+1-1
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

+3-3
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

+2-2
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

+3-3
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

+2-2
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

+2-2
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

+6-2
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+
] }

examples/ndarray/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ authors = ["Michael Freeborn <[email protected]>"]
55
edition = "2021"
66

77
[dependencies]
8-
ndarray = "0.16.0"
8+
ndarray = "0.16"
99
plotly = { path = "../../plotly", features = ["plotly_ndarray"] }

examples/shapes/Cargo.toml

+3-3
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/statistical_charts/Cargo.toml

+3-3
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/wasm-yew-minimal/Cargo.toml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
[package]
22
name = "wasm-yew-minimal"
33
version = "0.1.0"
4-
authors = ["Michael Freeborn <[email protected]>", "Yuichi Nakamura <[email protected]>"]
4+
authors = [
5+
"Michael Freeborn <[email protected]>",
6+
"Yuichi Nakamura <[email protected]>",
7+
]
58
edition = "2021"
9+
resolver = "2"
610

711
[dependencies]
812
plotly = { path = "../../plotly", features = ["wasm"] }
9-
yew = "0.21.0"
10-
yew-hooks = "0.3.2"
11-
log = "0.4.6"
13+
yew = "0.21"
14+
yew-hooks = "0.3"
15+
log = "0.4"
1216
wasm-logger = "0.2"

plotly/Cargo.toml

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "plotly"
3-
version = "0.10.0"
3+
version = "0.11.0"
44
description = "A plotting library powered by Plotly.js"
55
authors = ["Ioannis Giagkiozis <[email protected]>"]
66
license = "MIT"
77
readme = "../README.md"
88
homepage = "https://github.com/plotly/plotly.rs"
99
documentation = "https://docs.rs/plotly"
1010
repository = "https://github.com/plotly/plotly.rs"
11-
edition = "2018"
11+
edition = "2021"
1212
keywords = ["plot", "chart", "plotly"]
1313

1414
exclude = ["target/*"]
@@ -24,30 +24,30 @@ with-axum = ["rinja/with-axum", "rinja_axum"]
2424

2525
[dependencies]
2626
rinja = { version = "0.3", features = ["serde_json"] }
27-
rinja_axum = { version = "0.3.0", optional = true }
27+
rinja_axum = { version = "0.3", optional = true }
2828
dyn-clone = "1"
2929
erased-serde = "0.4"
3030
getrandom = { version = "0.2", features = ["js"], optional = true }
3131
image = { version = "0.25", optional = true }
3232
js-sys = { version = "0.3", optional = true }
33-
plotly_derive = { version = "0.10.0", path = "../plotly_derive" }
34-
plotly_kaleido = { version = "0.10.0", path = "../plotly_kaleido", optional = true }
35-
ndarray = { version = "0.16.0", optional = true }
33+
plotly_derive = { version = "0.11", path = "../plotly_derive" }
34+
plotly_kaleido = { version = "0.11", path = "../plotly_kaleido", optional = true }
35+
ndarray = { version = "0.16", optional = true }
3636
once_cell = "1"
37-
serde = { version = "1.0.132", features = ["derive"] }
38-
serde_json = "1.0.73"
37+
serde = { version = "1.0", features = ["derive"] }
38+
serde_json = "1.0"
3939
serde_repr = "0.1"
4040
serde_with = ">=2, <4"
4141
rand = "0.8"
4242
wasm-bindgen = { version = "0.2", optional = true }
4343
wasm-bindgen-futures = { version = "0.4", optional = true }
4444

4545
[dev-dependencies]
46-
csv = "1.1.6"
46+
csv = "1.1"
4747
image = "0.25"
4848
itertools = ">=0.10, <0.14"
49-
itertools-num = "0.1.3"
50-
ndarray = "0.16.0"
51-
plotly_kaleido = { version = "0.10.0", path = "../plotly_kaleido" }
49+
itertools-num = "0.1"
50+
ndarray = "0.16"
51+
plotly_kaleido = { version = "0.11", path = "../plotly_kaleido" }
5252
rand_distr = "0.4"
5353
base64 = "0.22"

plotly_derive/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[package]
22
name = "plotly_derive"
3-
version = "0.10.0"
3+
version = "0.11.0"
44
description = "Internal proc macro crate for Plotly-rs."
55
authors = ["Ioannis Giagkiozis <[email protected]>"]
66
license = "MIT"
77
homepage = "https://github.com/plotly/plotly.rs"
88
documentation = "https://docs.rs/plotly"
99
repository = "https://github.com/plotly/plotly.rs"
10-
edition = "2018"
10+
edition = "2021"
1111
keywords = ["plot", "chart", "plotly"]
1212

1313
[dependencies]

plotly_kaleido/Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "plotly_kaleido"
3-
version = "0.10.0"
3+
version = "0.11.0"
44
description = "Additional output format support for plotly using Kaleido"
55
authors = ["Ioannis Giagkiozis <[email protected]>"]
66
license = "MIT"
@@ -9,16 +9,16 @@ workspace = ".."
99
homepage = "https://github.com/plotly/plotly.rs"
1010
documentation = "https://docs.rs/plotly_kaleido"
1111
repository = "https://github.com/plotly/plotly.rs"
12-
edition = "2018"
12+
edition = "2021"
1313
keywords = ["plot", "chart", "plotly", "ndarray"]
1414

1515
exclude = ["target/*", "kaleido/*", "examples/*"]
1616

1717
[dependencies]
18-
serde = { version = "1.0.132", features = ["derive"] }
19-
serde_json = "1.0.73"
18+
serde = { version = "1.0", features = ["derive"] }
19+
serde_json = "1.0"
2020
base64 = "0.22"
21-
dunce = "1.0.2"
21+
dunce = "1.0"
2222
directories = ">=4, <6"
2323

2424
[build-dependencies]

0 commit comments

Comments
 (0)