Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[build]
# Use sccache for faster rebuilds (install with: cargo install sccache)
# rustc-wrapper = ".cargo/sccache-wrapper.sh"

[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=mold"]

[target.aarch64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
Comment on lines +5 to +11
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | 🔵 Trivial

Document required toolchain dependencies.

This configuration requires clang and mold to be installed on Linux systems. Contributors without these tools will encounter linker errors. Consider adding a note in the README or a comment in this file about the prerequisites, or make these settings conditional (e.g., via environment-based .cargo/config.toml overrides).

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.cargo/config.toml around lines 5 - 11, Add documentation or a conditional
fallback for the custom linker settings so contributors aren't blocked by
missing tools: either add a README note (or a comment in this file) stating that
the configuration under the [target.x86_64-unknown-linux-gnu] and
[target.aarch64-unknown-linux-gnu] sections requires clang and mold to be
installed, or change .cargo/config.toml to make the linker/rustflags conditional
(e.g., read an environment variable or check existence of clang/mold before
setting linker = "clang" and rustflags = ["-C", "link-arg=-fuse-ld=mold"]) so
builds fall back to the system default linker when those tools are absent.

4 changes: 4 additions & 0 deletions .cargo/sccache-wrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail

exec sccache "$@"
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@
node_modules
docs/book
config.toml
!.cargo/config.toml
data.db
data.db.*
server/assets/dioxus
test/e2e.db
/test-results
/tests/e2e/test-dbs
/.manifest.json
/mlm_web_dioxus/.manifest.json
/mlm_web_dioxus/dev.db
Loading