diff options
| -rw-r--r-- | Cargo.toml | 4 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | examples/windmark_comments.rs | 2 | ||||
| -rw-r--r-- | src/lib.rs | 4 |
4 files changed, 6 insertions, 6 deletions
@@ -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" @@ -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(|_| { @@ -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() { |