🏗️ Elegant & Highly Performant Async Gemini Server Framework for the Modern Age
async framework gemini-protocol protocol gemini rust
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(examples): update rossweisse example

Fuwn e109360f cb2502cd

+20 -12
+8 -2
Cargo.toml
··· 33 33 async-std-openssl = { version = "0.6.3", optional = true } 34 34 35 35 # Non-blocking I/O 36 - tokio = { version = "1.26.0", default-features = false, features = ["rt-multi-thread", "sync", "net", "io-util", "macros"], optional = true } 36 + tokio = { version = "1.26.0", default-features = false, features = [ 37 + "rt-multi-thread", 38 + "sync", 39 + "net", 40 + "io-util", 41 + "macros", 42 + ], optional = true } 37 43 async-trait = "0.1.68" 38 44 async-std = { version = "1.12.0", features = ["attributes"], optional = true } 39 45 ··· 50 56 paste = "1.0.12" # Token Pasting 51 57 52 58 [dev-dependencies] 53 - rossweisse = { version = "0.0.2", path = "./rossweisse" } 59 + rossweisse = { version = "0.0.3", path = "./rossweisse" }
+12 -10
rossweisse/src/implementations/router/fields.rs
··· 25 25 let router_identifier = item.ident; 26 26 let (named_fields, has_fields) = match item.fields { 27 27 syn::Fields::Named(fields) => (fields, true), 28 - syn::Fields::Unit => ( 29 - syn::FieldsNamed { 30 - brace_token: syn::token::Brace::default(), 31 - named: Default::default(), 32 - }, 33 - false, 34 - ), 35 - _ => panic!( 36 - "`#[rossweisse::router]` can only be used on `struct`s with named \ 28 + syn::Fields::Unit => 29 + ( 30 + syn::FieldsNamed { 31 + brace_token: syn::token::Brace::default(), 32 + named: Default::default(), 33 + }, 34 + false, 35 + ), 36 + _ => 37 + panic!( 38 + "`#[rossweisse::router]` can only be used on `struct`s with named \ 37 39 fields or unit structs" 38 - ), 40 + ), 39 41 }; 40 42 let mut default_expressions = vec![]; 41 43 let new_method_fields = named_fields.named.iter().map(|field| {