v0.6.0-beta #2193
gbj
announced in
Announcements
v0.6.0-beta
#2193
Replies: 1 comment
-
Just FYI, I also needed to update my rust nightly |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a breaking for our new server functions rewrite and Axum 0.7 support.
This should be a relatively feature-rich release, with limited breaking changes.
I'm interested in gathering feedback in the discussion associated with this release.
Migration
Actix
.handle_server_fns()
call in yourmain.rs
, as server functions are now handled in.leptos_routes()
Axum
.handle_server_fns()
call in yourmain.rs
, as server functions are now handled in.leptos_routes()
Features
A rewritten server function system that is backwards-compatible, but reduces binary size and increases flexibility, specifically by allowing
.leptos_routes()
from the integrationsrkyv
feature onleptos
crate #1989)IntoReq
,FromReq
,IntoRes
, and/orFromRes
traits#[middleware]
macro to add per-server-function middleware from the Tower or Actix ecosystems (Add #[middleware] tag to allow the selective targeting of Tower services on Server Fns #1461)Note: The additional included encodings (
serde_lite
,rkyv
, multipart form data) are all enabled by additive features on theserver_fn
crate. If you want to use them you can just add that crate as a dependency and enable the required features.Example: You can find a comprehensive example of these new features in the new
server_fns_axum
example.This discussion was created from the release v0.6.0-beta.
Beta Was this translation helpful? Give feedback.
All reactions