summaryrefslogtreecommitdiffstats
path: root/.cargo
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.cargo/config.toml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml
index c91c3f3..e2f8b2d 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -1,2 +1,32 @@
+# SPDX-FileCopyrightText: 2025 cel <cel@bunny.garden>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
+[build]
+rustflags = [
+ # LLD (shipped with the Rust toolchain) is used as the default linker
+ # "-C", "link-arg=-Tlink.x",
+
+ # if you run into problems with LLD switch to the GNU linker by commenting out
+ # this line
+ # "-C", "linker=arm-none-eabi-ld",
+
+ # if you need to link to pre-compiled C libraries provided by a C toolchain
+ # use GCC as the linker by commenting out both lines above and then
+ # uncommenting the three lines below
+ "-C",
+ "target-feature=+atomics,+bulk-memory,+mutable-globals",
+ "-C", "link-arg=--shared-memory",
+ "-C", "link-arg=--max-memory=1073741824",
+ "-C", "link-arg=--import-memory",
+ "-C", "link-arg=--export=__wasm_init_tls",
+ "-C", "link-arg=--export=__tls_size",
+ "-C", "link-arg=--export=__tls_align",
+ "-C", "link-arg=--export=__tls_base",
+]
+
+[unstable]
+build-std = ["std", "panic_abort"]
+
[net]
git-fetch-with-cli = true