aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-04-03 02:36:42 -0700
committerFuwn <[email protected]>2022-04-03 02:36:42 -0700
commit4e7ddd6e2869715559c045fd0fc8e40bc771bb2f (patch)
tree1cf3b99ae9e7a42898af89f1d5d490ce7d861d37
parentfeat: support windmark 0.1.8 (diff)
downloadwindmark-comments-4e7ddd6e2869715559c045fd0fc8e40bc771bb2f.tar.xz
windmark-comments-4e7ddd6e2869715559c045fd0fc8e40bc771bb2f.zip
fix: windmark 0.1.9HEAD0.1.3main
-rw-r--r--Cargo.toml4
-rw-r--r--README.md2
-rw-r--r--examples/windmark_comments.rs2
-rw-r--r--src/lib.rs4
4 files changed, 6 insertions, 6 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 34b5347..3d675ff 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
[package]
name = "windmark-comments"
-version = "0.1.2"
+version = "0.1.3"
authors = ["Fuwn <[email protected]>"]
edition = "2021"
description = "A comment engine module for Windmark"
@@ -16,7 +16,7 @@ categories = ["web-programming"]
[dependencies]
# Windmark
-windmark = "0.1.8"
+windmark = "0.1.9"
# Date/ time
chrono = "0.4.19"
diff --git a/README.md b/README.md
index e1e1dff..a1e3318 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ A comment engine module for Windmark.
# Cargo.toml
[dependencies]
-windmark-comments = "0.1.2"
+windmark-comments = "0.1.3"
```
### Attach Windmark Comments as a module (Windmark >= 0.1.8)
diff --git a/examples/windmark_comments.rs b/examples/windmark_comments.rs
index fd7d266..48d5827 100644
--- a/examples/windmark_comments.rs
+++ b/examples/windmark_comments.rs
@@ -25,7 +25,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
windmark::Router::new()
.set_private_key_file("windmark_comments_private.pem")
.set_certificate_file("windmark_comments_public.pem")
- .attach(windmark_comments::module)
+ .attach_stateless(windmark_comments::module)
.mount(
"/",
Box::new(|_| {
diff --git a/src/lib.rs b/src/lib.rs
index 9623f4f..48070f7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -32,7 +32,7 @@
//! # Cargo.toml
//!
//! [dependencies]
-//! windmark-comments = "0.1.2"
+//! windmark-comments = "0.1.3"
//! ```
//!
//! ### Attach Windmark Comments as a module (Windmark >= 0.1.8)
@@ -188,7 +188,7 @@ pub fn module(router: &mut windmark::Router) {
}),
);
- router.set_footer(Box::new(|_| {
+ router.add_footer(Box::new(|_| {
format!(
"## COMMENTS ({}/{})\n=> /api/post-comment Make a comment!\n{}",
if let Ok(comments) = COMMENTS.lock() {