sigaloid / vial

🧪 a micro micro-framework for rust
http://vial.rs
Apache License 2.0
3 stars 0 forks source link

Hello world example is broken #21

Open alexwennerberg opened 2 years ago

alexwennerberg commented 2 years ago

The first example:

localhost:~/dev/hand$ cargo run
   Compiling hand v0.1.0 (/home/alex/dev/hand)
error[E0425]: cannot find function `vial_add_to_router` in module `self`
 --> src/main.rs:9:9
  |
9 |         vial::run!().unwrap();
  |         ^^^^^^^^^^^^ not found in `self`
  |
  = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

Thanks for maintaining this awesome library. Working on a project that will likely use it soon.

sigaloid commented 2 years ago

That's odd. It's working for me. image

What's your Cargo.toml look like?

alexwennerberg commented 2 years ago

I bet it’s a rust version issue. I’ll try and debug when i have a chance