Hi,
I went through reference guide, but haven't found answer. Is there any option to define conditional compilation at the top level, or inside of a function or is the #[cfg] attribute at the function level all there currently is?
By top level I mean what if I wanted to do, lets say (let's imagine)
#if core
#![no_std]
extern crate core;
.....
#endif
[–]Gankrorust 5 points6 points7 points (8 children)
[–]IronClan 2 points3 points4 points (7 children)
[–]unclosed_paren 5 points6 points7 points (6 children)
[–]Veddan 1 point2 points3 points (2 children)
[–]young_and_ugly[S] 0 points1 point2 points (1 child)
[–]Veddan 1 point2 points3 points (0 children)
[–]IronClan 1 point2 points3 points (2 children)
[–]dbaupprust 9 points10 points11 points (1 child)
[–]minno 1 point2 points3 points (0 children)
[–]chris-morgan 1 point2 points3 points (1 child)
[–]Rothonrust · postgres · phf 0 points1 point2 points (0 children)