Skip to content

Commit f3089c0

Browse files
committed
chore: bump edition to 2024, cot to 0.1
1 parent 8c13d95 commit f3089c0

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

Cargo.lock

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "cot-site"
33
description = "Cot web framework website and official guide"
44
authors = ["Mateusz Maćkowski <mateusz@mackowski.org>"]
55
version = "0.1.0"
6-
edition = "2021"
6+
edition = "2024"
77

88
[workspace]
99
members = [
@@ -17,7 +17,7 @@ resolver = "2"
1717
nightly = ["cot-site-macros/nightly"]
1818

1919
[dependencies]
20-
cot = { package = "cot", git = "https://github.com/cot-rs/cot.git", rev = "d44b3b01b0b9720335a0f80a82634866c9195103", default-features = false, features = ["live-reload"]}
20+
cot = { version = "0.1", default-features = false, features = ["live-reload"] }
2121
cot-site-common = { path = "cot-site-common" }
2222
cot-site-macros = { path = "cot-site-macros" }
2323
rinja = "0.3.5"

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ use cot::response::{Response, ResponseExt};
99
use cot::router::{Route, Router};
1010
use cot::static_files::StaticFilesMiddleware;
1111
use cot::{
12-
reverse_redirect, static_files, AppBuilder, Body, BoxedHandler, ProjectContext, StatusCode,
12+
AppBuilder, Body, BoxedHandler, ProjectContext, StatusCode, reverse_redirect, static_files,
1313
};
1414
use cot_site_common::md_pages::{MdPage, MdPageLink, Section};
1515
use cot_site_macros::md_page;
16-
use rinja::filters::{HtmlSafe, Safe};
1716
use rinja::Template;
17+
use rinja::filters::{HtmlSafe, Safe};
1818

1919
use crate::guides::{get_prev_next_link, parse_guides};
2020

@@ -177,7 +177,7 @@ impl Project for CotSiteProject {
177177
handler: RootHandlerBuilder,
178178
context: &ProjectContext<WithApps>,
179179
) -> BoxedHandler {
180-
let handler = handler.middleware(StaticFilesMiddleware::from_app_context(context));
180+
let handler = handler.middleware(StaticFilesMiddleware::from_context(context));
181181
#[cfg(debug_assertions)]
182182
let handler = handler.middleware(cot::middleware::LiveReloadMiddleware::new());
183183
handler.build()

0 commit comments

Comments
 (0)