diesel-rs / diesel

A safe, extensible ORM and Query Builder for Rust
https://diesel.rs
Apache License 2.0
12.76k stars 1.07k forks source link

macro undefined: 'infer_schema_options!' #850

Closed suryakencana007 closed 6 years ago

suryakencana007 commented 7 years ago

When I build or test in the dir workspace with option "--all", building is failed. The message is

Running rustc --crate-name rustweb src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=bfa9892632724e72 -C extra-filename=-bfa9892632724e72 --out-dir /Volumes/RAID1/KERJAAN/experiment/RUST/Diesel/rustweb/target/debug/deps -L dependency=/Volumes/RAID1/KERJAAN/experiment/RUST/Diesel/rustweb/target/debug/deps --extern diesel=/Volumes/RAID1/KERJAAN/experiment/RUST/Diesel/rustweb/target/debug/deps/libdiesel-be0e2b3b62613036.rlib --extern hyper=/Volumes/RAID1/KERJAAN/experiment/RUST/Diesel/rustweb/target/debug/deps/libhyper-a990edaaf27e9f52.rlib --extern diesel_codegen=/Volumes/RAID1/KERJAAN/experiment/RUST/Diesel/rustweb/target/debug/deps/libdiesel_codegen-b9349f7ccad6c8b0.dylib --extern rustc_serialize=/Volumes/RAID1/KERJAAN/experiment/RUST/Diesel/rustweb/target/debug/deps/librustc_serialize-54d2bf33b1d4b0b0.rlib --extern dotenv=/Volumes/RAID1/KERJAAN/experiment/RUST/Diesel/rustweb/target/debug/deps/libdotenv-75d8ce5725f9d0e8.rlib -L native=/usr/local/opt/postgresql/lib error: macro undefined: 'infer_schema_options!' --> src/schema.rs:1:1 1 infer_schema!("dotenv:DATABASE_URL"); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

= note: this error originates in a macro outside of the current crate

sgrif commented 7 years ago

Can you run cargo update?

suryakencana007 commented 7 years ago

yes i can run but nothing happend screen shot 2017-04-08 at 7 14 00 pm

Here the Cargo.toml

screen shot 2017-04-08 at 7 15 26 pm

My Rust and Cargo version screen shot 2017-04-08 at 7 17 28 pm

Thank you for helping me

sgrif commented 6 years ago

Sorry I did not reply to this in April, this was during my parental leave when I wasn't around much. There's not enough information here to reproduce, so I'm going to close this. If you are able to reproduce this issue on Diesel 0.99 or later, please open a new issue.