Skip to content

Commit 32717e0

Browse files
Switch from askama to rinja (#227)
1 parent f013f50 commit 32717e0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

plotly/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +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"]
21+
with-axum = ["rinja/with-axum", "rinja_axum"]
2222

2323
[dependencies]
24-
askama = { version = ">=0.11.0, <0.13.0", features = ["serde-json"] }
25-
askama_axum = { version = "0.4.0", optional = true }
24+
rinja = { version = "0.3", features = ["serde_json"] }
25+
rinja_axum = { version = "0.3.0", optional = true }
2626
dyn-clone = "1"
2727
erased-serde = "0.4"
2828
getrandom = { version = "0.2", features = ["js"], optional = true }

plotly/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
//!
33
//! A plotting library for Rust powered by [Plotly.js](https://plot.ly/javascript/).
44
#![recursion_limit = "256"] // lets us use a large serde_json::json! macro for testing crate::layout::Axis
5-
extern crate askama;
65
extern crate rand;
6+
extern crate rinja;
77
extern crate serde;
88

99
#[cfg(all(feature = "kaleido", feature = "wasm"))]

plotly/src/plot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
use std::{fs::File, io::Write, path::Path};
22

3-
use askama::Template;
43
use dyn_clone::DynClone;
54
use erased_serde::Serialize as ErasedSerialize;
65
use rand::{
76
distributions::{Alphanumeric, DistString},
87
thread_rng,
98
};
9+
use rinja::Template;
1010
use serde::Serialize;
1111

1212
use crate::{Configuration, Layout};

0 commit comments

Comments
 (0)