aboutsummaryrefslogtreecommitdiff
path: root/.cargo/config.toml.mustache
diff options
context:
space:
mode:
Diffstat (limited to '.cargo/config.toml.mustache')
-rw-r--r--.cargo/config.toml.mustache23
1 files changed, 23 insertions, 0 deletions
diff --git a/.cargo/config.toml.mustache b/.cargo/config.toml.mustache
new file mode 100644
index 0000000..8456e90
--- /dev/null
+++ b/.cargo/config.toml.mustache
@@ -0,0 +1,23 @@
+{{#isMacOS}}
+[target.x86_64-apple-darwin]
+rustflags = ["-L", "{{{nativeDeps}}}/lib"]
+
+[target.aarch64-apple-darwin]
+rustflags = ["-L", "{{{nativeDeps}}}/lib"]
+{{/isMacOS}}
+
+{{#isWin}}
+[target.x86_64-pc-windows-msvc]
+rustflags = ["-L", "{{{nativeDeps}}}\\lib"]
+{{/isWin}}
+
+{{#isLinux}}
+[target.x86_64-unknown-linux-gnu]
+rustflags = ["-L", "{{{nativeDeps}}}/lib", "-C", "link-arg=-Wl,-rpath=${ORIGIN}/../lib/nexus"]
+
+[target.aarch64-unknown-linux-gnu]
+rustflags = ["-L", "{{{nativeDeps}}}/lib", "-C", "link-arg=-Wl,-rpath=${ORIGIN}/../lib/nexus"]
+{{/isLinux}}
+
+[alias]
+prisma = "run -p prisma-cli --bin prisma --"