dontlaugh / rocket-yew-starter-pack Goto Github PK
View Code? Open in Web Editor NEWExample boilerplate for websites in pure Rust
License: MIT License
Example boilerplate for websites in pure Rust
License: MIT License
Update 16 March 2018: We're broken! Let's pin stuff down a bit and get things compiling.
We depend on a fork of iovec
, and that will break out from under us when some PRs in yew are merged.
Tyler's been busy, and we respect that. Upgrade sled to the latest version.
WIP branch is upgrade_sled
Some issues related to the build
The Component API has changed slightly. We'll need to change the way we inject services.
Here is an example:
https://github.com/DenisKolodin/yew/blob/master/examples/dashboard/src/lib.rs
These are recommended on yew's official docs.
Hi @anxiousmodernman, thanks for putting this together, this is very useful for people like me who are curious about full-stack web apps in Rust. I was just wondering why you haven't had the typechecker check your client's API consumption at compile time.
For example, the client side Entry (https://github.com/anxiousmodernman/rocket-yew-starter-pack/blob/master/ui/src/lib.rs#L45) seems to be a duplicate of the server side Task (https://github.com/anxiousmodernman/rocket-yew-starter-pack/blob/master/server/src/main.rs#L57).
The compiler doesn't know that Task should be the same as Server, or that /tasks is statically guaranteed to return a list of Tasks.
Would it make sense to factor out a subset of server into a common package that defines the routes and their request and response types, and add it to both client's and server's cargo.toml?
After cloning the repository and running the shell scripts, I receive
error: failed to select a version for
cfg-if
.
... required by packagewasm-bindgen v0.2.60
... which is depended on byyew v0.17.2 (https://github.com/DenisKolodin/yew.git?branch=master#b7b4a93f)
... which is depended on byui v0.1.0 (/Users/francischua/gitprojects/rust/rustproj/tempgitdir/rocket-yew-starter-pack/ui)
versions that meet the requirements^0.1.9
are: 0.1.10, 0.1.9
all possible versions conflict with previously selected packages.
previously selected package
cfg-if v0.1.6
... which is depended on bybacktrace v0.3.13
... which is depended on byfailure v0.1.5
... which is depended on byui v0.1.0 (/Users/francischua/gitprojects/rust/rustproj/tempgitdir/rocket-yew-starter-pack/ui)
failed to select a version for
cfg-if
which could resolve this conflict
I'm assuming from the error message that several packages require different versions? Is this a problem that could be resolved in Cargo.toml or does it depend on something else?
There is a tracking issue to build things on top of a new async core rwf2/Rocket#1065
Not sure when that will get merged to master, but when it does, we should update our examples here.
On Github you can make a repository a template by going to Settings > "Template Repository"
This way people could easy use your repository to start their own!
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.