Skip to content

Commit 59ef306

Browse files
committed
crates_io_session: Add README.md
1 parent 88b7579 commit 59ef306

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

crates/crates_io_session/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# crates_io_session
2+
3+
This package contains a `SessionExtension` extractor for the
4+
[`axum`](https://docs.rs/axum) web framework and a corresponding
5+
`attach_session()` middleware based on a signed `cargo_session` cookie.
6+
This abstraction allows us to save and retrieve data from the session
7+
cookie in a safe way.

crates/crates_io_session/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![doc = include_str!("../README.md")]
2+
13
use axum::extract::{Extension, FromRequestParts, Request};
24
use axum::middleware::Next;
35
use axum::response::{IntoResponse, Response};

0 commit comments

Comments
 (0)