Skip to content

chore: remove target config ignored by Cargo - #552

Open
ilkecan wants to merge 1 commit into
SpikeHD:mainfrom
ilkecan:remove-unused-target-config
Open

ilkecan wants to merge 1 commit into
SpikeHD:mainfrom
ilkecan:remove-unused-target-config

Conversation

@ilkecan

@ilkecan ilkecan commented Nov 28, 2026

Copy link
Copy Markdown

Cargo ignores [target.*] linker and rustflags in Cargo.toml, since they are config settings (.cargo/config.toml, --config), not manifest keys. The [target.*] sections in src-tauri/Cargo.toml therefore never took effect, as Cargo's warnings show.

warning: unused manifest key: target.aarch64-unknown-linux-gnu.linker
warning: unused manifest key: target.cfg(target_os = "macos").rustflags
warning: unused manifest key: target.x86_64-unknown-linux-gnu.rustflags

The sections also don't need moving to .cargo/config.toml, because CI already passes the aarch64 linker with --config and release builds don't link with lld (v7.0.1's x86_64 Linux binary has no Linker: LLD in .comment, and its arm64 macOS binary was linked by Apple's ld).

Cargo ignores `[target.*]` `linker` and `rustflags` in `Cargo.toml`,
since they are config settings (`.cargo/config.toml`, `--config`),
not manifest keys. They also don't need moving to
`.cargo/config.toml`, because CI already passes the aarch64 linker
with `--config` and release builds don't link with lld.
@ilkecan ilkecan mentioned this pull request Nov 28, 2026
1 of 13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant