I would like to install that target in my local environment so that I can prevent having path errors (actually I was referring to the JSON as x64.json and it hasn't been found during build somewhere, even though I have prepended the due ../ segments).
I have read Adding a new target in rustc-dev-guide.rust-lang.org, but I do not know where to place the rustc_target crate. I am inside a workspace after reading Template: Create a Disk Image which is outside of the first two blog articles I read in the tutorial.
There is no supported_targets! macro in the standard library.
There is no rustc-target package in crates.io that I would fork into my workspace.
rustc-dev-guide is about how to make modifications to the compiler. the rustc_target crate is part of the compiler internals, and supported_targets! is also part of the compiler internals.
if you're doing osdev, you generally don't need to recompile rustc unless you want to port rustc to your new OS (but that's way down the line, you need a mostly functional kernel and a decent userspace for that)
is there a reason you can't just do cargo build --target x86_64-unknown-none?