Comments (5)
You need to build the example bot for the wasm32-unknown-unknown
target. Running cargo build
inside the example_bot
directory should automatically set the correct target, but apparently that does not work when running with --manifest-path
. I've updated the readme with new instructions to fix this. Please try it and let me know if you can get it to compile now.
from botnet.
rustup target add wasm32-unknown-unknown
cd example_bot
cargo build
compiled.
next is
\botnet> cargo build
or
> cargo build --release --manifest-path=botnet/Cargo.toml
results in
Compiling botnet v0.1.0 (C:\Users\Death\Desktop\Botnet\botnet\botnet)
error: couldn't read src\../../example_bot/target/wasm32-unknown-unknown/release/example_bot.wasm: The system cannot find the path specified. (os error 3)
--> src\game.rs:41:21
|
41 | / include_bytes!(
42 | | "../../example_bot/target/wasm32-unknown-unknown/release/example_bot.wasm"
43 | | ),
| |_____________________^
|
= note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile `botnet` due to previous error
from botnet.
You need to compile the example bot in release, or change that include_bytes path to /debug/.
from botnet.
cargo build --release --manifest-path=botnet/Cargo.toml
compiled
Attempt to run server
RUST_LOG=botnet cargo run --manifest-path=botnet/Cargo.toml
PS C:\Users\Death\Desktop\Botnet\botnet> RUST_LOG=botnet cargo run --manifest-path=botnet/Cargo.toml
RUST_LOG=botnet : The term 'RUST_LOG=botnet' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
+ RUST_LOG=botnet cargo run --manifest-path=botnet/Cargo.toml
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (RUST_LOG=botnet:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
from botnet.
RUST_LOG=botnet
is how you set an environment variable for a command in linux. I'm not sure what the powershell equivalent would be, but you should be able to find the info on the internet.
from botnet.
Related Issues (1)
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 botnet.