GithubHelp home page GithubHelp logo

packtpublishing / creative-projects-for-rust-programmers Goto Github PK

View Code? Open in Web Editor NEW
244.0 12.0 80.0 986 KB

Creative Projects for Rust Programmers, published by Packt

License: MIT License

Rust 94.62% HTML 2.04% JavaScript 1.17% Makefile 1.35% Shell 0.38% C 0.44%

creative-projects-for-rust-programmers's Introduction

Creative Projects for Rust Programmers

Creative Projects for Rust Programmers

This is the code repository for Creative Projects for Rust Programmers, published by Packt.

Build exciting projects on domains such as web apps, WebAssembly, games, and parsing

What is this book about?

Build projects on exciting topics like game development, virtual reality, web assembly, emulators, GUI, and Linux/kernel development. By the end of the book, you will know how to choose the right framework or library for your needs.

This book covers the following exciting features:

  • Access TOML, JSON, and XML files and SQLite, PostgreSQL, and Redis databases
  • Develop a RESTful web service using JSON payloads
  • Create a web application using HTML templates and JavaScript and a frontend web application or web game using WebAssembly
  • Build desktop 2D games
  • Develop an interpreter and a compiler for a programming language
  • Create a machine language emulator
  • Extend the Linux Kernel with loadable modules

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

{
    for pos in pos..5 {
        print!("{}", digits[pos] as u8 as char);
}

Following is what you need for this book: This Rust programming book is for developers who want to get hands-on experience with implementing their knowledge of Rust programming, and are looking for expert advice on which libraries and frameworks they can adopt to develop software that typically uses the Rust language.

With the following software and hardware list you can run all code files present in the book (Chapter 1-11).

Software and Hardware List

Chapter Software required OS required
1-11 Rust v1.31 Windows and Linux Mint 19.2

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Related products

Get to Know the Author

Carlo Milanesi has a computer science degree from the State University of Milan, and lives in Bergamo, Italy. He is a software engineer with decades of experience in teaching and developing software for desktop and the web on Windows or Linux, using C, C++, Smalltalk, Delphi, Visual Basic, C#, Java, JavaScript, and Rust.

He loves writing tests and documentation and has experience in the domains of banking, portfolio management, construction engineering, CAD systems for milling machines, human-machine interface systems for machine tools, and websites and web applications for enterprises and for public administration management. He has written a book on Rust entitled, Beginning Rust: From Novice to Professional.

Suggestions and Feedback

Click here if you have any feedback or suggestions.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781789346220

creative-projects-for-rust-programmers's People

Contributors

carlomilanesi avatar jenselme avatar packt-itservice avatar packt-pradeeps avatar packtutkarshr avatar ruvikarao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

creative-projects-for-rust-programmers's Issues

Chapter 5 Examples return blank page and no error

Just launch examples from the repository, installed cargo-web, and used commando cargo web start for the projects, there no error
when running the examples but it renders a blank page for all the projects
Tried Opera GX, Brave, Chrome and Mozilla
127.0.01:8000
localhost:8000

Chapter 03 - error[E0308] & error[E0277]

Hi, people

While i was starting the file_transfer_stub project from the chapter,
cargo run gave me 2 errors:

error[E0277]: cannot subtract `chrono::Duration` from `Tm`
   --> /home/tmollov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-http-0.2.11/src/cookie/jar.rs:226:44
    |
226 |             cookie.set_expires(time::now() - Duration::days(365));
    |                                            ^ no implementation for `Tm - chrono::Duration`
    |
    = help: the trait `Sub<chrono::Duration>` is not implemented for `Tm`
    = help: the following other types implement trait `Sub<Rhs>`:
              <Tm as Sub<time::Duration>>
              <Tm as Sub>

error[E0308]: mismatched types
   --> /home/tmollov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-http-0.2.11/src/cookie/mod.rs:742:40
    |
742 |         self.set_expires(time::now() + twenty_years);
    |                                        ^^^^^^^^^^^^ expected `time::Duration`, found `chrono::Duration`
    |
    = note: `chrono::Duration` and `time::Duration` have similar names, but are actually distinct types
note: `chrono::Duration` is defined in crate `chrono`
   --> /home/tmollov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/chrono-0.4.31/src/duration.rs:55:1
    |
55  | pub struct Duration {
    | ^^^^^^^^^^^^^^^^^^^
note: `time::Duration` is defined in crate `time`
   --> /home/tmollov/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.1.45/src/duration.rs:45:1
    |
45  | pub struct Duration {
    | ^^^^^^^^^^^^^^^^^^^

Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `actix-http` (lib) due to 2 previous errors

after a google search i understand that these libraries had some changes, but i can't find a way to fix these issues without some refactoring.

Is there any way without the refactoring?

Release Date

Hello Packtpub team and @carlomilanesi,

When is the book going to be released?
The website says April 17h, but the book isn’t available yet.
What is the plan for the release?

Thanks and have a good day!

Errors trying examples in chapter 5

Hi @carlomilanesi I'm tryng to run the examples in Chapter 5 incr and adder, i run the command cargo web start and the program is compiled:

cargo web start
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling serde v1.0.118
   Compiling syn v1.0.53
   Compiling ryu v1.0.5
   Compiling serde_json v1.0.60
   Compiling serde_derive v1.0.118
   Compiling semver-parser v0.7.0
   Compiling autocfg v1.0.1
   Compiling byteorder v1.3.4
   Compiling libc v0.2.80
   Compiling failure_derive v0.1.8
   Compiling itoa v0.4.6
   Compiling gimli v0.23.0
   Compiling stdweb-internal-runtime v0.1.5
   Compiling adler v0.2.3
   Compiling object v0.22.0
   Compiling cfg-if v1.0.0
   Compiling iovec v0.1.4
   Compiling rustc-demangle v0.1.18
   Compiling sha1 v0.6.0
   Compiling base-x v0.2.8
   Compiling log v0.4.11
   Compiling fnv v1.0.7
   Compiling discard v1.0.4
   Compiling cfg-if v0.1.10
   Compiling slab v0.4.2
   Compiling anymap v0.12.1
   Compiling semver v0.9.0
   Compiling miniz_oxide v0.4.3
   Compiling rustc_version v0.2.3
   Compiling stdweb v0.4.20
   Compiling quote v1.0.7
   Compiling bytes v0.4.12
   Compiling http v0.1.21
   Compiling addr2line v0.14.0
   Compiling backtrace v0.3.55
   Compiling bincode v1.0.1
   Compiling synstructure v0.12.4
   Compiling failure v0.1.8
   Compiling stdweb-derive v0.5.3
   Compiling stdweb-internal-macros v0.2.9
   Compiling yew v0.6.0
   Compiling adder v0.1.0 (/home/walter/kalwalt-github/creative-rust/Chapter05/adder)
    Finished dev [unoptimized + debuginfo] target(s) in 29.51s
    Processing "adder.wasm"...
    Finished processing of "adder.wasm"!

If you need to serve any extra files put them in the 'static' directory
in the root of your crate; they will be served alongside your application.
You can also put a 'static' directory in your 'src' directory.

Your application is being served at '/adder.js'. It will be automatically
rebuilt if you make any changes in your code.

You can access the web server at `http://[::1]:8000`.

But when i go to my browser i got this panic error:

adder.js:658 Encountered a panic!
__cargo_web_snippet_dc2fd915bd92f9e9c6a3bd15174f1414eee3dbaf @ adder.js:658
_ZN6stdweb7webcore14initialization10initialize28_$u7b$$u7b$closure$u7d$$u7d$7snippet17hfc69a989a46daf78E @ adder.wasm:0x6d5c7
_ZN6stdweb7webcore14initialization10initialize28_$u7b$$u7b$closure$u7d$$u7d$17h0c8258d39d1ef5b2E @ adder.wasm:0x6d42a
_ZN3std9panicking20rust_panic_with_hook17hc5713da015ebaa19E @ adder.wasm:0x8a73d
_ZN3std9panicking19begin_panic_handler28_$u7b$$u7b$closure$u7d$$u7d$17hc5eba7f0030e8f4fE @ adder.wasm:0x8a446
_ZN3std10sys_common9backtrace26__rust_end_short_backtrace17he811f0bd07938b42E @ adder.wasm:0x8a40f
rust_begin_unwind @ adder.wasm:0x8a65c
_ZN4core9panicking9panic_fmt17h775d5c012939dd41E @ adder.wasm:0x8f010
_ZN4core9panicking5panic17hf103660e9eaae571E @ adder.wasm:0x8d19b
_ZN154_$LT$stdweb..webcore..serialization..SerializedValue$u20$as$u20$core..convert..From$LT$stdweb..webcore..serialization..SerializedUntaggedReference$GT$$GT$4from17ha71b635dcb7e4acdE @ adder.wasm:0x791f5
_ZN50_$LT$T$u20$as$u20$core..convert..Into$LT$U$GT$$GT$4into17h9b8088972a7a2131E @ adder.wasm:0x79156
_ZN97_$LT$stdweb..webcore..value..Reference$u20$as$u20$stdweb..webcore..serialization..JsSerialize$GT$8_into_js17h5cab1946a97ccf7fE @ adder.wasm:0x6fb63
_ZN69_$LT$$RF$T$u20$as$u20$stdweb..webcore..serialization..JsSerialize$GT$8_into_js17hbcb793c8ae52962dE @ adder.wasm:0x6fcd1
_ZN179_$LT$stdweb..webcore..newtype..Newtype$LT$$LP$stdweb..webcore..serialization..NonFunctionTag$C$$LP$$RP$$RP$$C$T$GT$$u20$as$u20$stdweb..webcore..serialization..JsSerializeOwned$GT$13into_js_owned17h1c326229fc15c013E @ adder.wasm:0x6d70d
_ZN6stdweb6webapi11parent_node11IParentNode14query_selector17h6926d0d4c1567a5dE @ adder.wasm:0x5236f
_ZN3yew3app15App$LT$COMP$GT$13mount_to_body17h6b40030ae877ab41E @ adder.wasm:0x7f73
_ZN3yew9start_app17h385ae550f55aca9aE @ adder.wasm:0x187fa
_ZN5adder4main17h0251df21559cd4e7E @ adder.wasm:0x47b06
_ZN4core3ops8function6FnOnce9call_once17h6405ecbaae8f2894E @ adder.wasm:0x3c152
_ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17hef67f3182e7c96bcE @ adder.wasm:0x4e6b1
_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17hdb373e6f3a61a57cE @ adder.wasm:0x593e8
_ZN3std2rt19lang_start_internal17h8c321db066de610cE @ adder.wasm:0x8aaec
_ZN3std2rt10lang_start17h7067c7cc5403c364E @ adder.wasm:0x593a9
main @ adder.wasm:0x47b19
initialize @ adder.js:695
(anonymous) @ adder.js:41
Promise.then (async)
(anonymous) @ adder.js:40
(anonymous) @ adder.js:50
(anonymous) @ adder.js:13
(anonymous) @ adder.js:15
adder.js:616 Panic error message: attempted to leave type `webcore::serialization::SerializedValue` uninitialized, which is invalid
__cargo_web_snippet_97495987af1720d8a9a923fa4683a7b683e3acd6 @ adder.js:616
_ZN6stdweb7webcore14initialization10initialize28_$u7b$$u7b$closure$u7d$$u7d$7snippet17hbaac75519f806a59E @ adder.wasm:0x6d5f4
_ZN6stdweb7webcore14initialization10initialize28_$u7b$$u7b$closure$u7d$$u7d$17h0c8258d39d1ef5b2E @ adder.wasm:0x6d4f6
_ZN3std9panicking20rust_panic_with_hook17hc5713da015ebaa19E @ adder.wasm:0x8a73d
_ZN3std9panicking19begin_panic_handler28_$u7b$$u7b$closure$u7d$$u7d$17hc5eba7f0030e8f4fE @ adder.wasm:0x8a446
_ZN3std10sys_common9backtrace26__rust_end_short_backtrace17he811f0bd07938b42E @ adder.wasm:0x8a40f
rust_begin_unwind @ adder.wasm:0x8a65c
_ZN4core9panicking9panic_fmt17h775d5c012939dd41E @ adder.wasm:0x8f010
_ZN4core9panicking5panic17hf103660e9eaae571E @ adder.wasm:0x8d19b
_ZN154_$LT$stdweb..webcore..serialization..SerializedValue$u20$as$u20$core..convert..From$LT$stdweb..webcore..serialization..SerializedUntaggedReference$GT$$GT$4from17ha71b635dcb7e4acdE @ adder.wasm:0x791f5
_ZN50_$LT$T$u20$as$u20$core..convert..Into$LT$U$GT$$GT$4into17h9b8088972a7a2131E @ adder.wasm:0x79156
_ZN97_$LT$stdweb..webcore..value..Reference$u20$as$u20$stdweb..webcore..serialization..JsSerialize$GT$8_into_js17h5cab1946a97ccf7fE @ adder.wasm:0x6fb63
_ZN69_$LT$$RF$T$u20$as$u20$stdweb..webcore..serialization..JsSerialize$GT$8_into_js17hbcb793c8ae52962dE @ adder.wasm:0x6fcd1
_ZN179_$LT$stdweb..webcore..newtype..Newtype$LT$$LP$stdweb..webcore..serialization..NonFunctionTag$C$$LP$$RP$$RP$$C$T$GT$$u20$as$u20$stdweb..webcore..serialization..JsSerializeOwned$GT$13into_js_owned17h1c326229fc15c013E @ adder.wasm:0x6d70d
_ZN6stdweb6webapi11parent_node11IParentNode14query_selector17h6926d0d4c1567a5dE @ adder.wasm:0x5236f
_ZN3yew3app15App$LT$COMP$GT$13mount_to_body17h6b40030ae877ab41E @ adder.wasm:0x7f73
_ZN3yew9start_app17h385ae550f55aca9aE @ adder.wasm:0x187fa
_ZN5adder4main17h0251df21559cd4e7E @ adder.wasm:0x47b06
_ZN4core3ops8function6FnOnce9call_once17h6405ecbaae8f2894E @ adder.wasm:0x3c152
_ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17hef67f3182e7c96bcE @ adder.wasm:0x4e6b1
_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17hdb373e6f3a61a57cE @ adder.wasm:0x593e8
_ZN3std2rt19lang_start_internal17h8c321db066de610cE @ adder.wasm:0x8aaec
_ZN3std2rt10lang_start17h7067c7cc5403c364E @ adder.wasm:0x593a9
main @ adder.wasm:0x47b19
initialize @ adder.js:695
(anonymous) @ adder.js:41
Promise.then (async)
(anonymous) @ adder.js:40
(anonymous) @ adder.js:50
(anonymous) @ adder.js:13
(anonymous) @ adder.js:15
adder.js:595 Panic location: /home/walter/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/mem/mod.rs:658
__cargo_web_snippet_72fc447820458c720c68d0d8e078ede631edd723 @ adder.js:595
_ZN6stdweb7webcore14initialization10initialize28_$u7b$$u7b$closure$u7d$$u7d$7snippet17h5392ed88279da615E @ adder.wasm:0x6d639
_ZN6stdweb7webcore14initialization10initialize28_$u7b$$u7b$closure$u7d$$u7d$17h0c8258d39d1ef5b2E @ adder.wasm:0x6d5af
_ZN3std9panicking20rust_panic_with_hook17hc5713da015ebaa19E @ adder.wasm:0x8a73d
_ZN3std9panicking19begin_panic_handler28_$u7b$$u7b$closure$u7d$$u7d$17hc5eba7f0030e8f4fE @ adder.wasm:0x8a446
_ZN3std10sys_common9backtrace26__rust_end_short_backtrace17he811f0bd07938b42E @ adder.wasm:0x8a40f
rust_begin_unwind @ adder.wasm:0x8a65c
_ZN4core9panicking9panic_fmt17h775d5c012939dd41E @ adder.wasm:0x8f010
_ZN4core9panicking5panic17hf103660e9eaae571E @ adder.wasm:0x8d19b
_ZN154_$LT$stdweb..webcore..serialization..SerializedValue$u20$as$u20$core..convert..From$LT$stdweb..webcore..serialization..SerializedUntaggedReference$GT$$GT$4from17ha71b635dcb7e4acdE @ adder.wasm:0x791f5
_ZN50_$LT$T$u20$as$u20$core..convert..Into$LT$U$GT$$GT$4into17h9b8088972a7a2131E @ adder.wasm:0x79156
_ZN97_$LT$stdweb..webcore..value..Reference$u20$as$u20$stdweb..webcore..serialization..JsSerialize$GT$8_into_js17h5cab1946a97ccf7fE @ adder.wasm:0x6fb63
_ZN69_$LT$$RF$T$u20$as$u20$stdweb..webcore..serialization..JsSerialize$GT$8_into_js17hbcb793c8ae52962dE @ adder.wasm:0x6fcd1
_ZN179_$LT$stdweb..webcore..newtype..Newtype$LT$$LP$stdweb..webcore..serialization..NonFunctionTag$C$$LP$$RP$$RP$$C$T$GT$$u20$as$u20$stdweb..webcore..serialization..JsSerializeOwned$GT$13into_js_owned17h1c326229fc15c013E @ adder.wasm:0x6d70d
_ZN6stdweb6webapi11parent_node11IParentNode14query_selector17h6926d0d4c1567a5dE @ adder.wasm:0x5236f
_ZN3yew3app15App$LT$COMP$GT$13mount_to_body17h6b40030ae877ab41E @ adder.wasm:0x7f73
_ZN3yew9start_app17h385ae550f55aca9aE @ adder.wasm:0x187fa
_ZN5adder4main17h0251df21559cd4e7E @ adder.wasm:0x47b06
_ZN4core3ops8function6FnOnce9call_once17h6405ecbaae8f2894E @ adder.wasm:0x3c152
_ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17hef67f3182e7c96bcE @ adder.wasm:0x4e6b1
_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17hdb373e6f3a61a57cE @ adder.wasm:0x593e8
_ZN3std2rt19lang_start_internal17h8c321db066de610cE @ adder.wasm:0x8aaec
_ZN3std2rt10lang_start17h7067c7cc5403c364E @ adder.wasm:0x593a9
main @ adder.wasm:0x47b19
initialize @ adder.js:695
(anonymous) @ adder.js:41
Promise.then (async)
(anonymous) @ adder.js:40
(anonymous) @ adder.js:50
(anonymous) @ adder.js:13
(anonymous) @ adder.js:15
adder.js:46 Error loading Rust wasm module 'adder': RuntimeError: unreachable
    at __rust_start_panic (http://localhost:8000/adder.wasm:wasm-function[3145]:0x8ac10)
    at rust_panic (http://localhost:8000/adder.wasm:wasm-function[3140]:0x8aa41)
    at _ZN3std9panicking20rust_panic_with_hook17hc5713da015ebaa19E (http://localhost:8000/adder.wasm:wasm-function[3135]:0x8a765)
    at _ZN3std9panicking19begin_panic_handler28_$u7b$$u7b$closure$u7d$$u7d$17hc5eba7f0030e8f4fE (http://localhost:8000/adder.wasm:wasm-function[3124]:0x8a446)
    at _ZN3std10sys_common9backtrace26__rust_end_short_backtrace17he811f0bd07938b42E (http://localhost:8000/adder.wasm:wasm-function[3123]:0x8a40f)
    at rust_begin_unwind (http://localhost:8000/adder.wasm:wasm-function[3134]:0x8a65c)
    at _ZN4core9panicking9panic_fmt17h775d5c012939dd41E (http://localhost:8000/adder.wasm:wasm-function[3192]:0x8f010)
    at _ZN4core9panicking5panic17hf103660e9eaae571E (http://localhost:8000/adder.wasm:wasm-function[3166]:0x8d19b)
    at _ZN154_$LT$stdweb..webcore..serialization..SerializedValue$u20$as$u20$core..convert..From$LT$stdweb..webcore..serialization..SerializedUntaggedReference$GT$$GT$4from17ha71b635dcb7e4acdE (http://localhost:8000/adder.wasm:wasm-function[2596]:0x791f5)
    at _ZN50_$LT$T$u20$as$u20$core..convert..Into$LT$U$GT$$GT$4into17h9b8088972a7a2131E (http://localhost:8000/adder.wasm:wasm-function[2595]:0x79156)
adder.wasm:0x8ac10 Uncaught (in promise) RuntimeError: unreachable
    at __rust_start_panic (http://localhost:8000/adder.wasm:wasm-function[3145]:0x8ac10)
    at rust_panic (http://localhost:8000/adder.wasm:wasm-function[3140]:0x8aa41)
    at _ZN3std9panicking20rust_panic_with_hook17hc5713da015ebaa19E (http://localhost:8000/adder.wasm:wasm-function[3135]:0x8a765)
    at _ZN3std9panicking19begin_panic_handler28_$u7b$$u7b$closure$u7d$$u7d$17hc5eba7f0030e8f4fE (http://localhost:8000/adder.wasm:wasm-function[3124]:0x8a446)
    at _ZN3std10sys_common9backtrace26__rust_end_short_backtrace17he811f0bd07938b42E (http://localhost:8000/adder.wasm:wasm-function[3123]:0x8a40f)
    at rust_begin_unwind (http://localhost:8000/adder.wasm:wasm-function[3134]:0x8a65c)
    at _ZN4core9panicking9panic_fmt17h775d5c012939dd41E (http://localhost:8000/adder.wasm:wasm-function[3192]:0x8f010)
    at _ZN4core9panicking5panic17hf103660e9eaae571E (http://localhost:8000/adder.wasm:wasm-function[3166]:0x8d19b)
    at _ZN154_$LT$stdweb..webcore..serialization..SerializedValue$u20$as$u20$core..convert..From$LT$stdweb..webcore..serialization..SerializedUntaggedReference$GT$$GT$4from17ha71b635dcb7e4acdE (http://localhost:8000/adder.wasm:wasm-function[2596]:0x791f5)
    at _ZN50_$LT$T$u20$as$u20$core..convert..Into$LT$U$GT$$GT$4into17h9b8088972a7a2131E (http://localhost:8000/adder.wasm:wasm-function[2595]:0x79156)
__rust_start_panic @ adder.wasm:0x8ac10
rust_panic @ adder.wasm:0x8aa41
_ZN3std9panicking20rust_panic_with_hook17hc5713da015ebaa19E @ adder.wasm:0x8a765
_ZN3std9panicking19begin_panic_handler28_$u7b$$u7b$closure$u7d$$u7d$17hc5eba7f0030e8f4fE @ adder.wasm:0x8a446
_ZN3std10sys_common9backtrace26__rust_end_short_backtrace17he811f0bd07938b42E @ adder.wasm:0x8a40f
rust_begin_unwind @ adder.wasm:0x8a65c
_ZN4core9panicking9panic_fmt17h775d5c012939dd41E @ adder.wasm:0x8f010
_ZN4core9panicking5panic17hf103660e9eaae571E @ adder.wasm:0x8d19b
_ZN154_$LT$stdweb..webcore..serialization..SerializedValue$u20$as$u20$core..convert..From$LT$stdweb..webcore..serialization..SerializedUntaggedReference$GT$$GT$4from17ha71b635dcb7e4acdE @ adder.wasm:0x791f5
_ZN50_$LT$T$u20$as$u20$core..convert..Into$LT$U$GT$$GT$4into17h9b8088972a7a2131E @ adder.wasm:0x79156
_ZN97_$LT$stdweb..webcore..value..Reference$u20$as$u20$stdweb..webcore..serialization..JsSerialize$GT$8_into_js17h5cab1946a97ccf7fE @ adder.wasm:0x6fb63
_ZN69_$LT$$RF$T$u20$as$u20$stdweb..webcore..serialization..JsSerialize$GT$8_into_js17hbcb793c8ae52962dE @ adder.wasm:0x6fcd1
_ZN179_$LT$stdweb..webcore..newtype..Newtype$LT$$LP$stdweb..webcore..serialization..NonFunctionTag$C$$LP$$RP$$RP$$C$T$GT$$u20$as$u20$stdweb..webcore..serialization..JsSerializeOwned$GT$13into_js_owned17h1c326229fc15c013E @ adder.wasm:0x6d70d
_ZN6stdweb6webapi11parent_node11IParentNode14query_selector17h6926d0d4c1567a5dE @ adder.wasm:0x5236f
_ZN3yew3app15App$LT$COMP$GT$13mount_to_body17h6b40030ae877ab41E @ adder.wasm:0x7f73
_ZN3yew9start_app17h385ae550f55aca9aE @ adder.wasm:0x187fa
_ZN5adder4main17h0251df21559cd4e7E @ adder.wasm:0x47b06
_ZN4core3ops8function6FnOnce9call_once17h6405ecbaae8f2894E @ adder.wasm:0x3c152
_ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17hef67f3182e7c96bcE @ adder.wasm:0x4e6b1
_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17hdb373e6f3a61a57cE @ adder.wasm:0x593e8
_ZN3std2rt19lang_start_internal17h8c321db066de610cE @ adder.wasm:0x8aaec
_ZN3std2rt10lang_start17h7067c7cc5403c364E @ adder.wasm:0x593a9
main @ adder.wasm:0x47b19
initialize @ adder.js:695
(anonymous) @ adder.js:41
Promise.catch (async)
(anonymous) @ adder.js:45
(anonymous) @ adder.js:50
(anonymous) @ adder.js:13
(anonymous) @ adder.js:15

I get only a blank page and nothing else.
I saw also that the yew version in the examples 0.6 is very 'old' in rispect to the latest 0.17.4, maybe this is the cause?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.