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

Early warning for missing client libraries #1893

Closed
levkk opened this Issue Oct 21, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@levkk

levkk commented Oct 21, 2018

Versions

  • Rust: 1.31.0-nightly (just because I'm also using Rocket)
  • Diesel: 1.3.3
  • Database: PostgreSQL
  • Operating System Ubuntu 18.04

Problem Description

Early detection of missing client libraries. It would be nice for the diesel CLI installation to detect the missing libraries (i.e. libpq) before the compilation starts. It takes a bit of time to compile and seeing the error only at the end is a bit frustrating :)

Checklist

  • I have already looked over the issue tracker for similar issues.
  • This issue can be reproduced on Rust's stable channel. (Your issue will be
    closed if this is not the case)
@sgrif

This comment has been minimized.

Member

sgrif commented Oct 21, 2018

Unfortunately, this isn't really something we have any control over. It's entirely dependent on your system setup and your linker, which Diesel doesn't interact with at all. It might be worth writing an RFC to add this sort of capability to rustc/cargo. I agree it'd be great to improve this, but it's just not possible today. Since there's nothing actionable here, I'm going to close this issue.

@sgrif sgrif closed this Oct 21, 2018

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