3 releases
0.1.2 | Jul 19, 2021 |
---|---|
0.1.1 | Jun 27, 2021 |
0.1.0 | Jun 24, 2021 |
#720 in WebAssembly
83KB
1K
SLoC
Mimeograph-Crumble
First, an enormous amount of gratitude to the authors of cookie
crate, Sergio Benitez and Alex Crichton.
mimeograph_cookie
is a copy of cookie
with:
- All features removed
- HashSet removed
- Cookie
Expires
is gone (needed thetime
crate).
The modifications saved 41,852 bytes with a release WASM build.
For documentation, see the cookie
crate.
no_std + alloc
All functionality in the crate supports no_std
+ alloc
. To enable, simply disable the default features.
lib.rs
:
HTTP cookie parsing and cookie jar management.
This is a copy of the cookie
crate with
modifications to reduce the size when compiled to WASM.
This crates provides the Cookie
type, representing an HTTP cookie, and
the CookieJar
type, which manages a collection of cookies for session
management, recording changes as they are made, and optional automatic
cookie encryption and signing.
Usage
Add the following to the [dependencies]
section of your Cargo.toml
:
mimeograph_crumble = "0.1.0"