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

macro undefined: 'infer_schema_options!' #850

Closed
suryakencana007 opened this Issue Apr 6, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@suryakencana007

suryakencana007 commented Apr 6, 2017

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

This comment has been minimized.

Member

sgrif commented Apr 7, 2017

Can you run cargo update?

@suryakencana007

This comment has been minimized.

suryakencana007 commented Apr 8, 2017

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

This comment has been minimized.

Member

sgrif commented Dec 16, 2017

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.

@sgrif sgrif closed this Dec 16, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment