Skip to content

Commit ba867e0

Browse files
dureuillandrei-ng
andauthored
Add "with-axum" feature to allow compilation when other dependencies use axum (#181)
* Add "with_axum" feature that brings the required dependencies * Update CHANGELOG --------- Signed-off-by: Andrei Gherghescu <[email protected]> Co-authored-by: Andrei Gherghescu <[email protected]>
1 parent 852ed2e commit ba867e0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
55

66
## [0.8.5] - 2024-xx-xx
77
### Added
8+
- [[#181](https://github.com/igiagkiozis/plotly/pull/181)] Fix compilation error when mixing the crate with `askama/with-axum` by adding `with-axum` feature.
89
- [[#163](https://github.com/plotly/plotly.rs/pull/163)] Added `DensityMapbox`.
910
- [[#153](https://github.com/igiagkiozis/plotly/pull/153)] Added `LayoutScene`.
1011

@@ -47,8 +48,7 @@ Version 0.8.0 represents a significant release which refactors a lot of the code
4748
- Support for `Sankey` diagrams
4849
- Support for `Plot3D` - 3D plots for scatter, line and surface data
4950
### Changed
50-
- Improve implementation of `private::NumOrString` to support more primitive types ([Issue
51-
#47](https://github.com/igiagkiozis/plotly/issues/47))
51+
- Improve implementation of `private::NumOrString` to support more primitive types ([Issue #47](https://github.com/igiagkiozis/plotly/issues/47))
5252
- Remove `private::TruthyEnum` in favour of a more robust way of serializing to `String` or `bool`
5353
- Refactor `Color` module
5454
- Refactored HTML templates with cleaner Javascript code

plotly/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ kaleido = ["plotly_kaleido"]
1818
plotly_ndarray = ["ndarray"]
1919
plotly_image = ["image"]
2020
wasm = ["getrandom", "js-sys", "wasm-bindgen", "wasm-bindgen-futures"]
21+
with-axum = ["askama/with-axum", "askama_axum"]
2122

2223
[dependencies]
2324
askama = { version = ">=0.11.0, <0.13.0", features = ["serde-json"] }
25+
askama_axum = { version = "0.4.0", optional = true }
2426
dyn-clone = "1"
2527
erased-serde = "0.4"
2628
getrandom = { version = "0.2", features = ["js"], optional = true }

0 commit comments

Comments
 (0)