I have a rust binary (let's say binary_1) that can build a rust program (binary_2.rs).
In order to do that, the binary_1.rs has:
It works fine ! and it build binary_2 !
Howevver, i would like binary_2 to have some optional parameter during build, like let's say an ip that could be different at each build. I don't want to pass the ip as a parameter to binary_2, but to be "hardcoded" into binary_2.
I thought about environment variable to be passed into cargo that specify the ip that has to be hardcoded into binary_2. I try with:
but obviously it doesn"t pass into binary_2 via cargo
So i don't find how to do that.