rstropek / rust-api-fxs Goto Github PK
View Code? Open in Web Editor NEWThis repository contains the sample code for Rainer Stropek's talk at Eurorust 2022.
This repository contains the sample code for Rainer Stropek's talk at Eurorust 2022.
Hi, rainer.
When I clone this repository and try to run todo-axum, there was an error in todo-axum/src/main.rs#51 as follows,
E: no method named 'into_make_service' found for struct 'Router<Arc<tokio::sync::RwLock>, _>' in the current scope
I watched Eurorust 2022: Building Web APIs with Rust - State of the Union.
The difference was the type of app.
In my environment
Router<Arc<RwLock<TodoStore>>, _>
yours
Router<Arc<RwLock<TodoStore>>>
I tried to solve this problem with my own.
My guess is that, according to the axum/routing/mod.rs#538-542, the two functions, into_make_service and into_make_service_with_connect_info, can be used that satisfy the bound
impl<B> Router<(), B> where B: HttpBody + Send + 'static,
However, I can't figure out why this happens and how to resolve them.
Anyway, I'm new to rust programming language and I just fall in love in rust like you.
Your presentation help me learn rust but also the passion on programming as well.
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.