Skip to content

Commit 05188f4

Browse files
authored
tidy up field_setter proc macro PR (#100)
1 parent 6053699 commit 05188f4

File tree

6 files changed

+532
-522
lines changed

6 files changed

+532
-522
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [0.8.1] - 2022-XX-XX
7+
## [0.8.1] - 2022-09-25
8+
### Added
9+
- Button support (i.e. [updatemenus](https://plotly.com/javascript/reference/layout/updatemenus/)) contibuted by [@sreenathkrishnan](https://github.com/sreenathkrishnan). Details and examples in this well written PR [#99](https://github.com/igiagkiozis/plotly/pull/99).
10+
- Internally, there is now a `plotly-derive` crate which defines a `FieldSetter` procedural macro. This massively cuts down the amount of code duplication by generating the setter methods based on the struct fields. Again thanks to @sreenathkrishnan for this effort.
811

912
## [0.8.0] - 2022-08-26
1013
Version 0.8.0 represents a significant release which refactors a lot of the codebase and tries to provide a cleaner API: there are several breaking changes listed below. On the whole, if migrating from v0.7.0, start by following any new compiler errors and, if you're still stuck, open an issue on the issue tracker and we can help out.

plotly/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ erased-serde = "0.3"
2727
getrandom = { version = "0.2", features = ["js"], optional = true }
2828
js-sys = { version = "0.3", optional = true }
2929
plotly_kaleido = { version = "0.3.0", path = "../plotly_kaleido", optional = true }
30-
plotly_derive = { path = "../plotly_derive" }
30+
plotly_derive = { version = "0.8.0", path = "../plotly_derive" }
3131
ndarray = { version = "0.15.4", optional = true }
3232
once_cell = "1"
3333
serde = { version = "1.0.132", features = ["derive"] }

plotly/src/layout/update_menu.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//!
2-
//! Buttons and Dropdowns
3-
//!
1+
//! Buttons and Dropdowns.
42
53
use plotly_derive::FieldSetter;
64
use serde::Serialize;

plotly_derive/Cargo.toml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
[package]
22
name = "plotly_derive"
3-
version = "0.1.0"
4-
edition = "2021"
5-
publish = false
6-
3+
version = "0.8.0"
4+
description = "Internal proc macro crate for Plotly-rs."
5+
authors = ["Ioannis Giagkiozis <[email protected]>"]
6+
license = "MIT"
7+
homepage = "https://github.com/igiagkiozis/plotly"
8+
documentation = "https://docs.rs/plotly"
9+
repository = "https://github.com/igiagkiozis/plotly"
10+
edition = "2018"
11+
keywords = ["plot", "chart", "plotly"]
712

813
[dependencies]
914
quote = "1.0"

0 commit comments

Comments
 (0)