Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: running cargo in readme.md fails #25

Open
clubanderson opened this issue Mar 21, 2024 · 2 comments
Open

bug: running cargo in readme.md fails #25

clubanderson opened this issue Mar 21, 2024 · 2 comments

Comments

@clubanderson
Copy link

clubanderson commented Mar 21, 2024

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
Copy link
Member

juntao commented Mar 21, 2024

Hmm, this is a warning not an error. We still need to fix it. But I think you can ignore it for now. :)

@clubanderson
Copy link
Author

ok, will proceed. thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants