Conversation

Jarkko Sakkinen

Edited 2 months ago
Any idea if there is a standard location in Rust project directory where to deploy JSON file for a target? I have a situation where there is a profile variant of RISC-V that is only supported by nightly of rustc but I also need to create my own target JSON with project specific customization's. Tried to look up if e.g.<project/.cargo/** would have a place but could not find anything from Internet.

#rust #rustlang #rustc
2
1
0
You'd expect some lookup directory to exist within project hierarchy...
0
1
1

@jarkko I usually put it in the project root, next to Cargo.toml. Not sure if this is the common convention.

1
0
1
@9names yea so this what i obviously do too for the moment :-) just checking if there was a nice directory e.g. under .cargo where you could put them and tools would find them. just an ocd thing ;-)
1
0
0
@9names Mastodon is weird but yeah I'll do the same put the target JSON-files to the project root. Thanks for psychological support with this :-)
0
0
1