Hi,
I have an app that is split between a wasm part and a server part using Dioxus.
During dev time, human error made my server library to be injected in the wasm app, which I don't want to happen again ( I commented the #[server] to make some modifications and forgot to add it back).
After reading https://doc.rust-lang.org/cargo/reference/unstable.html#per-package-target, it appears that it will do exactly this.
I want a compile time error if my crate is compiled for anything else than x86_64 (this crate's code must remains on the server side).
That should make it to prevent any unwanted code in the wasm side.
So, is it guaranteed that this option does what I need, without any way to circumvent it ?
note: I use nightly toolchain.
Thanks