aboutsummaryrefslogtreecommitdiff
path: root/.cargo
diff options
context:
space:
mode:
Diffstat (limited to '.cargo')
-rw-r--r--.cargo/config.toml.mustache23
-rw-r--r--.cargo/readme.md3
2 files changed, 26 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 --"
diff --git a/.cargo/readme.md b/.cargo/readme.md
new file mode 100644
index 0000000..1854eae
--- /dev/null
+++ b/.cargo/readme.md
@@ -0,0 +1,3 @@
+# (i): note
+
+make sure to execute the `::setup` script after any modifications to `cargo.toml`.