Change target cfg condition to target_env
This commit is contained in:
parent
b54ecb5b27
commit
d66849c6cb
@ -1,10 +1,10 @@
|
|||||||
// Needed for building in Docker container
|
// Needed for building in Docker container
|
||||||
// See https://github.com/clux/muslrust?tab=readme-ov-file#diesel-and-pq-builds
|
// See https://github.com/clux/muslrust?tab=readme-ov-file#diesel-and-pq-builds
|
||||||
// See https://github.com/sgrif/pq-sys/issues/25
|
// See https://github.com/sgrif/pq-sys/issues/25
|
||||||
#[cfg(target = "x86_64-unknown-linux-musl")]
|
#[cfg(target_env = "musl")]
|
||||||
extern crate openssl;
|
extern crate openssl;
|
||||||
|
|
||||||
#[cfg(target = "x86_64-unknown-linux-musl")]
|
#[cfg(target_env = "musl")]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate diesel;
|
extern crate diesel;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user