Closed Nabellaleen closed 2 months ago
In the log file:
warning: unused manifest key: build
[build]
is a table for the Cargo configuration, which is usually a file at <package-root>/.cargo/config.toml
. Could you check that?
Nothing like that :/
$ find / -type f -name "config.toml" 2>/dev/null
/home/user/Projects/Utils/mage/site/config.toml
/home/user/Projects/Utils/mage/site/themes/learn/exampleSite/config.toml
/home/user/go/pkg/mod/github.com/magefile/mage@v1.15.0/site/config.toml
/home/user/go/pkg/mod/github.com/magefile/mage@v1.15.0/site/themes/learn/exampleSite/config.toml
/home/user/go/pkg/mod/github.com/!three!dots!labs/watermill@v1.3.5/docs/config.toml
/home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/create-tauri-app-4.0.1/.cargo/config.toml
/home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/console-0.15.8/.cargo/config.toml
/home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tiny-skia-0.11.4/.cargo/config.toml
/home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dialoguer-0.11.0/.cargo/config.toml
/home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bytemuck-1.16.1/.cargo/config.toml
/home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cfg-expr-0.15.8/.cargo/config.toml
/home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wry-0.40.1/.cargo/config.toml
/home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wry-0.41.0/.cargo/config.toml
/etc/containerd/config.toml
And indeed, this warning is interesting : it appears only when I add the [build]
table with the rustflags
entry in my Cargo.toml
Doh ... I get it.
Indeed, it's a confusion from me (and many others, it seems ^^) that this cargo config NEED to be in a .cargo/config.toml
file and not in the Cargo.toml
(even if its name let suppose it ... XD)
Why is there a separate file config.toml
and this is not in the Manifest ?
See below issues for relevant discussions:
Problem
When I call with inlined env values, everything works fine :
But when I migrate to
Cargo.toml
, it fails :Looks like these issues, somehow
Steps
No response
Possible Solution(s)
No response
Notes
I've check for other config which could override my Cargo.toml, but didn't find anything :
And here are the logs of a build :
build.log
Version