Is there some special approach for defining constants in Anchor? I tried it normally just before the program ID:
pub const MY_CONST: &'static str = "some example str";
declare_id!("MY_PROGRAM_PUBKEY");
But then I try to verify if my constants were defined within some of my Anchor instructions:
msg! {"My const value: {:#?}", std::env::var("MY_CONST")};
msg! {"My const value: {:#?}", option_env!("MY_CONST")};
But I keep getting empty values, I guess it has something to do with the run time. Is there some "Anchor way" of defining constants or verify if they are actually defined?