bug: running cargo in readme.md fails
Opened this issue · 2 comments
clubanderson commented
environment:
Mac m3
k3d/ks3
ran:
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
# Install WebAssembly target for Rust
rustup target add wasm32-wasi
# Install WasmEdge
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -e all
source $HOME/.wasmedge/env
git clone https://github.com/second-state/microservice-rust-mysql.git
cd microservice-rust-mysql
cargo build --target wasm32-wasi --release
expected:
no errors on build
received:
Compiling order_demo_service v0.1.0 (/Users/andyanderson/projects/microservice-rust-mysql)
warning: private item shadows public glob re-export
--> src/main.rs:7:5
|
7 | use std::result::Result;
| ^^^^^^^^^^^^^^^^^^^
|
note: the name `Result` in the type namespace is supposed to be publicly re-exported here
--> src/main.rs:4:9
|
4 | pub use mysql_async::*;
| ^^^^^^^^^^^^^^
note: but the private item here shadows it
--> src/main.rs:7:5
|
7 | use std::result::Result;
| ^^^^^^^^^^^^^^^^^^^
= note: `#[warn(hidden_glob_reexports)]` on by default
warning: `order_demo_service` (bin "order_demo_service") generated 1 warning
Finished release [optimized] target(s) in 20.14s
juntao commented
Hmm, this is a warning not an error. We still need to fix it. But I think you can ignore it for now. :)
clubanderson commented
ok, will proceed. thank you