Comments (8)
I was able to compile by using this:
rustup toolchain add nightly
rustup target add wasm32-wasi --toolchain nightly
cargo +nightly build
from chat.
With the newest version of Rust you can drop the #![feature(or_patterns)]
.
After that you don't need to use the nightly toolchain and you can build this project like follows:
rustup target add wasm32-wasi
cargo build
from chat.
That error is now fixed, but theres another:
error[E0428]: the name `Instructions` is defined multiple times
--> src/client.rs:39:1
|
35 | struct Instructions {}
| ------------------- previous definition of the type `Instructions` here
...
39 | struct Instructions {}
| ^^^^^^^^^^^^^^^^^^^ `Instructions` redefined here
|
= note: `Instructions` must be defined only once in the type namespace of this module
error[E0428]: the name `Instructions` is defined multiple times
--> src/client.rs:43:1
|
35 | struct Instructions {}
| ------------------- previous definition of the type `Instructions` here
...
43 | struct Instructions {}
| ^^^^^^^^^^^^^^^^^^^ `Instructions` redefined here
|
= note: `Instructions` must be defined only once in the type namespace of this module
error[E0554]: `#![feature]` may not be used on the stable release channel
--> src/main.rs:1:1
|
1 | #![feature(or_patterns)]
| ^^^^^^^^^^^^^^^^^^^^^^^^
error[E0119]: conflicting implementations of trait `std::fmt::Display` for type `client::Instructions`:
--> src/client.rs:37:10
|
33 | #[derive(Template)]
| -------- first implementation here
...
37 | #[derive(Template)]
| ^^^^^^^^ conflicting implementation for `client::Instructions`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0119]: conflicting implementations of trait `std::fmt::Display` for type `client::Instructions`:
--> src/client.rs:41:10
|
33 | #[derive(Template)]
| -------- first implementation here
...
41 | #[derive(Template)]
| ^^^^^^^^ conflicting implementation for `client::Instructions`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0119]: conflicting implementations of trait `askama::Template` for type `client::Instructions`:
--> src/client.rs:37:10
|
33 | #[derive(Template)]
| -------- first implementation here
...
37 | #[derive(Template)]
| ^^^^^^^^ conflicting implementation for `client::Instructions`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0119]: conflicting implementations of trait `askama::Template` for type `client::Instructions`:
--> src/client.rs:41:10
|
33 | #[derive(Template)]
| -------- first implementation here
...
41 | #[derive(Template)]
| ^^^^^^^^ conflicting implementation for `client::Instructions`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 7 previous errors
Some errors have detailed explanations: E0119, E0428, E0554.
For more information about an error, try `rustc --explain E0119`.
error: could not compile `telnet-chat
from chat.
Hi @Minecodes,
you will need rust nightly: rustup toolchain add nightly
and the wasm32-wasi target: rustup target add wasm32-wasi
then you should be able to build it with: cargo +nightly build
To run it, you will need to have lunatic on your path.
If this is the case you can run cargo +nightly run
from chat.
Thanks, but this error comes up now:
error[E0428]: the name `Instructions` is defined multiple times
--> src/client.rs:39:1
|
35 | struct Instructions {}
| ------------------- previous definition of the type `Instructions` here
...
39 | struct Instructions {}
| ^^^^^^^^^^^^^^^^^^^ `Instructions` redefined here
|
= note: `Instructions` must be defined only once in the type namespace of this module
error[E0428]: the name `Instructions` is defined multiple times
--> src/client.rs:43:1
|
35 | struct Instructions {}
| ------------------- previous definition of the type `Instructions` here
...
43 | struct Instructions {}
| ^^^^^^^^^^^^^^^^^^^ `Instructions` redefined here
|
= note: `Instructions` must be defined only once in the type namespace of this module
error[E0119]: conflicting implementations of trait `std::fmt::Display` for type `client::Instructions`:
--> src/client.rs:37:10
|
33 | #[derive(Template)]
| -------- first implementation here
...
37 | #[derive(Template)]
| ^^^^^^^^ conflicting implementation for `client::Instructions`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0119]: conflicting implementations of trait `std::fmt::Display` for type `client::Instructions`:
--> src/client.rs:41:10
|
33 | #[derive(Template)]
| -------- first implementation here
...
41 | #[derive(Template)]
| ^^^^^^^^ conflicting implementation for `client::Instructions`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0119]: conflicting implementations of trait `askama::Template` for type `client::Instructions`:
--> src/client.rs:37:10
|
33 | #[derive(Template)]
| -------- first implementation here
...
37 | #[derive(Template)]
| ^^^^^^^^ conflicting implementation for `client::Instructions`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0119]: conflicting implementations of trait `askama::Template` for type `client::Instructions`:
--> src/client.rs:41:10
|
33 | #[derive(Template)]
| -------- first implementation here
...
41 | #[derive(Template)]
| ^^^^^^^^ conflicting implementation for `client::Instructions`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 6 previous errors
Some errors have detailed explanations: E0119, E0428.
For more information about an error, try `rustc --explain E0119`.
error: could not compile `telnet-chat`
from chat.
This is really strange, can you tell me what rust version and operating system you are using?
Maybe something else got messed up, does re-cloning the repo help?
from chat.
rustc 1.50.0 (cb75ad5db 2021-02-10)
rustup 1.23.1 (3df2264a9 2020-11-30)
cargo 1.50.0 (f04e7fab7 2021-02-04)
from chat.
You can write me in German too
from chat.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chat.