Files
guba-indicator/rust/target/debug/deps/libcfg_aliases-69ea8ff28d748fb1.rmeta

21 lines
17 KiB
Plaintext
Raw Normal View History

rust
?B#rustc 1.93.1 (01f6ddf75 2026-02-11)<29><02>ZF<5A>P<EFBFBD><50>v<EFBFBD><76><EFBFBD>]<5D>d9uu-4d8b4da6b4ab36bd<62><02><05><11><><EFBFBD>GȬx<C8AC>92X<32>l-5bed970bceb2abc5<63><02>.g<>:<3A><>Ld<4C><64>q<EFBFBD>T<EFBFBD>d-f090014afa110f38<33><02>L<><4C><EFBFBD><EFBFBD><EFBFBD>l<EFBFBD>E,<07>R<EFBFBD><52>-3d16dd14375d91ab<61><02><11>b';<3B><>ݕ<EFBFBD><DD95>+<2B><>74-cda84f9d48ee8a39<33>rustc_std_workspace_core<72><65><EFBFBD><EFBFBD><EFBFBD>7]<5D><><EFBFBD><1F>}^-d51aa419dcaa4806<30> hashbrown<77>\<5C><01><><EFBFBD>Y8 <0A> <0B>9!~-828ad423d679028a<38>rustc_std_workspace_alloc<6F>)Z<7F><5A>T+@<15>U<EFBFBD><15><><EFBFBD>-456872f450a959d9<64>
std_detect<EFBFBD><EFBFBD><<03>dpܞ.P\aܘ<61>L-20f4fe7d6fc49ef1<66>rustc_demangle<6C> $<24><><EFBFBD><EFBFBD><EFBFBD>.<2E>u
@<40><>!-8707d0f6cef74754<35>windows_targets<74>aG<61>"T<>S<EFBFBD><53><02><>i-a000ab9e204fd71e<31>cfg_if<69>S]<5D><><EFBFBD><EFBFBD>]<5D><>8RH<52><48>-be85b4d8c54eea3b<33><02> <0C><08><><EFBFBD><EFBFBD>N<EFBFBD>}<7D>]<5D><>y^-a8029966e34624a3<61><02> cfg_aliases<65><02><01>\<5C>4<04><00>e<00> # CFG Aliases<65><02><00><16><00> CFG Aliases is a tiny utility to help save you a lot of effort with long winded `#[cfg()]` checks. This crate provides a single [`cfg_aliases!`] macro that doesn't have any dependencies and specifically avoids pulling in `syn` or `quote` so that the impact on your comile times should be negligible.<2E><1C><02><00><><02><00> You use the the [`cfg_aliases!`] macro in your `build.rs` script to define aliases such as `x11` that could then be used in the `cfg` attribute or macro for conditional compilation: `#[cfg(x11)]`.<2E><1C><02>t<> ## Example<6C><1C><02><00><> **Cargo.toml:**<2A><1C><02>\<5C> ```toml<6D><00><> [build-dependencies]<5D><00><> cfg_aliases = "0.1.0"<22><<3C> ```<60><1C><02><00><> **build.rs:**<2A><1C><02>\<5C> ```rust<73><00><>! use cfg_aliases::cfg_aliases;<3B><1C><02>|<7C> fn main() {<7B><00><> // Setup cfg aliases<65><00><> cfg_aliases! {<7B>ę // Platforms<6D><00><>-* wasm: { target_arch = "wasm32" },<2C><00><>/, android: { target_os = "android" },<2C><00><>+( macos: { target_os = "macos" },<2C><00><>+( linux: { target_os = "linux" },<2C><00><> // Backends<64><00><>C@ surfman: { all(unix, feature = "surfman", not(wasm)) },<2C><00><>;8 glutin: { all(feature = "glutin", not(wasm)) },<2C><00><> >; wgl: { all(windows, feature = "wgl", not(wasm)) },<2C><00><> <9 dummy: { not(any(wasm, glutin, wgl, surfman)) },<2C>L<>  }<7D>,<2C>
 }<7D><<3C>
<01> <1C>
<02><00><>
RO Now that we have our aliases setup we can use them just like you would expect:<3A><1C>
<02>\<5C>
<01> <00><>
#[cfg(wasm)]<5D><00><> (% println!("This is running in WASM");<3B><1C> <02><00><>  #[cfg(surfman)]<5D>,<2C>  {<7B><00><> &# // Do stuff related to surfman<61>,<2C> <01><1C> <02><00><>  #[cfg(dummy)]<5D><00><> XU println!("We're in dummy mode, specify another feature if you want a smarter app!");<3B><<3C> <01> <1C> <02><00><> RO This greatly improves what would otherwise look like this without the aliases:<3A><1C> <02>\<5C> <01> <00><> " #[cfg(target_arch = "wasm32")]<5D><00><>&# println!("We're running in WASM");<3B><1C><02><00><>C@ #[cfg(all(unix, feature = "surfman", not(target_arch = "22")))]<5D>,<2C><01><00><>&<01>,<2C><01><1C><02><00><> #[cfg(not(any(<28><00><> target_arch = "wasm32",<2C><00><>DA all(unix, feature = "surfman", not(target_arch = "wasm32")),<2C><00><>C@ all(windows, feature = "wgl", not(target_arch = "wasm32")),<2C><00><>=: all(feature = "glutin", not(target_arch = "wasm32")),<2C>D<> )))]<5D><00><>X<01><<3C><01> <1C><02><00><><12><00> You can also use the `cfg!` macro or combine your aliases with other checks using `all()`, `not()`, and `any()`. Your aliases are genuine `cfg` flags now!<21><1C><02>\<5C><01> <00><> if cfg!(glutin) {<7B><00><> // use glutin<69>d<> } else {<7B><00><> // Do something else<73>,<2C><01><1C><02><00><>  #[cfg(all(glutin, surfman))]<5D><00><>NK compile_error!("You cannot specify both `glutin` and `surfman` features");<3B><<3C><01> <1C><02><00><>  ## Syntax and Error Messages<65><1C><02><00><><15><00> The aliase names are restricted to the same rules as rust identifiers which, for one, means that they cannot have dashes ( `-` ) in them. Additionally, if you get certain syntax elements wrong, such as the alias name, the macro will error saying that the recursion limit was reached instead of giving a clear indication of what actually went wrong. This is due to a nuance with the macro parser and it might be fixed in a later release of this crate. It is also possible that aliases with dashes in the name might be supported in a later release. Open an issue if that is something that you would like implemented.<2E><1C><02><00><><1A><00> Finally, you can also induce an infinite recursion by having rules that both reference each-other, but this isn't a real limitation because that doesn't make logical sense anyway:<3A><1C><02><00><> ```rust,ignore<72><00><> // This causes an error!<21><00><> cfg_aliases! {<7B><00><> test1: { not(test2) },<2C><00><> test2: { not(test1) },<2C>,<2C><01><<3C><01> <1C><02><00><> ## Attribution and Thanks<6B><1C><02><00><>eb - Thanks to my God and Father who led me through figuring this out and to whome I owe everything.<2E><00><>WT - Thanks to @Yandros on the Rust forum for [showing me][sm] some crazy macro hacks!<21><00><>YV - Thanks to @sfackler for [pointing out][po] the way to make cargo add the cfg flags.<2E><00><><1F><00> - Thanks to the authors of the [`tectonic_cfg_support::target_cfg`] macro from which most of the cfg attribute parsing logic is taken from. Also thanks to @ratmice for [bringing it up][bip] on the Rust forum.<2E><1C>!<02><00><>!<21>~ [`tectonic_cfg_support::target_cfg`]: https://docs.rs/tectonic_cfg_support/0.0.1/src/tectonic_cfg_support/lib.rs.html#166-298<39><00><>"MJ [po]: https://users.rust-lang.org/t/any-such-thing-as-cfg-aliases/40100/2<><00><>"OL [bip]: https://users.rust-lang.org/t/any-such-thing-as-cfg-aliases/40100/13<31><00><>#MJ [sm]: https://users.rust-lang.org/t/any-such-thing-as-cfg-aliases/40100/3<><02><13><01><13><13><13><13><02><>4<00><>( Create `cfg` aliases<65><1C>)<02><00><>)<01> <1C>)<02>\<5C>)<01> <00><>)# # use cfg_aliases::cfg_aliases;<3B><00><>) // Setup cfg aliases<65><00><>)<01>&<00><>* // Platforms<6D><00><>*)& wasm: { target_arch = "wasm32" },<2C><00><>*+( android: { target_os = "android" },<2C><00><>*'$ macos: { target_os = "macos" },<2C><00><>+'$ linux: { target_os = "linux" },<2C><00><>+ // Backends<64><00><>+?< surfman: { all(unix, feature = "surfman", not(wasm)) },<2C>
cfg_is_set<EFBFBD>T<>5, <0C>58cfgname<6D><<3C>5& <0C>58<02>,<2C>5*<14>5 <0C>5 <0C>: <0C>5 <0C>:$8<1C>58cfg_var<61><<3C>5 <0C>68<02>L<>6 <0C>6 <0C>6 <0C>6, <0C>68<01>9<<3C>6 <0C>68 to_uppercase<73>d<>6 <0C>6 <0C>6 <0C>68replace<63><<3C>6 <0C>6 <0C>67-<2D><1C>6$ <0C>67<1C>6% <0C>68<1C>68<02> 4<>6 <0C>68<02><1C>6'<14>68<02><1C>6'<14>68<02><1C>6 <0C>6 <0C>78<02>4<>6 <0C>6 <0C>6 <0C>77 CARGO_CFG_{}<7D>t<>6$ <0C>6 <0C>68<01>9<<3C>6 <0C>78is_ok<6F>,<2C>7 <0C>7 <0C>7% <0C>78<14>8 <0C>88<02> 4<>8<14>88<01>9<<3C>8<14>87DEBUG_ASSERTIONS<4E><00><>8 <0C>9 <0C>9 8<02><1C>9'<14>98<02><1C>9'<14>98<02><1C>9 <0C>9 <0C>97PROFILE<4C>L<>9<14>98<02><14>9 <0C>9 <0C>97<02><<3C>9 <0C>98to_owned<65>D<>9 <0C>9 <0C>98$<24>9 <0C>9 <0C>:8<02> 4<>9% <0C>: <0C>: <0C>: <0C>:8cfg_has_feature<72>|<7C>:, <0C>:8<02><<3C>:& <0C>:8<02>$<24>:*<14>: <0C>: <0C>= <0C>: <0C>= 8<02><1C>;'<14>;8<02><1C>;'<14>;8<02><1C>; <0C>; <0C><8<02>4<>; <0C>; <0C>; <0C><7CARGO_FEATURE_{}<7D><00><>;$ <0C>; <0C>;8<02>L<>; <0C>; <0C>; <0C><, <0C>;8<02><<3C>; <0C><8<01>:d<>< <0C>< <0C>< <0C><8<01>:<<3C>< <0C>< <0C><7<01>;<1C><$ <0C><7<1C>< <0C><8<01>:<<3C>< <0C>< <0C><7"<22><1C><$ <0C><7<02><14>< <0C><8<02>
<1C>< <0C>< <0C>< <0C><8x<> <0C>< <0C><8<01>C <0C><<14><7<02><1C>< <0C><8<02>L<>< <0C>< <0C><8 ,<2C><% <0C>= <0C>= <0C>>  <0C>=8 cfg_contains<6E>d<>=, <0C>=8<01>9<<3C>=& <0C>=8<02>,<2C>= <0C>=, <0C>=8cfgvalue<75>D<>=& <0C>>8<02>$<24>>*<14>> <0C>> <0C>@8<02><1C>>'<14>>8<02><1C>>'<14>>8<02><1C>> <0C>> <0C>?8<02>4<>> <0C>> <0C>> <0C>? 7<01><t<>>$ <0C>> <0C>>8<02>L<>> <0C>> <0C>> <0C>?, <0C>>8<01>9<<3C>> <0C>?8<01>:d<>? <0C>? <0C>? <0C>?8<01>:<<3C>? <0C>? <0C>?7<01>;<1C>?$ <0C>?7<1C>? <0C>?8<02>L<>? <0C>? <0C>?7<02><14>? <0C>?8<01>>D<>? <0C>? <0C>? <0C>?8split<69>,<2C>? <0C>? <0C>?7,<2C><1C>? <0C>?8find<6E>$<24>? <0C>? <0C>? <0C>?8<01>C <0C>? <0C>?8<01>C <0C>?<14>? <0C>?, <0C>?8<01>DD<>? <0C>?8is_some<6D><<3C>? <0C>@ <0C>@% <0C>@ <0C>A <0C>A <0C>A8 parser_emit<69>\<5C>A8<02><1C>A, <0C>A <0C>A <0C>A <0C>A <0C>A, <0C>A <0C>A <0C>A, <0C>A8grouped<65><<3C>A& <0C>A8<02><14>A <0C>A <0C>A*<14>A <0C>A <0C>B <0C>A <0C>B, <0C>A <0C>A <0C>B <0C>A <0C>B, <0C>A8,<2C>A'<14>A8<01>\<5C>A <0C>B <0C>B <0C>B <0C>B8parser<65>4<>B, <0C>B <0C>B <0C>B, <0C>B8<01>J<<3C>B <0C>B<14>B <0C>B% <0C>B <0C>B <0C>C <0C>B8<01>I\<5C>B8<02><1C>C, <0C>C <0C>C <0C>C <0C>C <0C>C, <0C>C <0C>C <0C>C, <0C>C8<01>J<<3C>C& <0C>C8<02><14>C <0C>C <0C>C*<14>C <0C>C <0C>D <0C>C <0C>D, <0C>C <0C>C <0C>D <0C>C <0C>C, <0C>C8,<2C>C'<14>C8<01>\<5C>C <0C>C <0C>C <0C>C <0C>C8<01>K4<>C, <0C>C <0C>C <0C>C, <0C>C8<01>J<<3C>C <0C>C<14>D <0C>D% <0C>D <0C>J <0C>K  <0C>J8 parser_clause<73>l<>J, <0C>J8op<6F><14>J& <0C>J8<02>,<2C>J <0C>J <0C>J, <0C>J <0C>J <0C>J <0C>J <0C>J, <0C>J <0C>J <0C>J, <0C>J8<01>J<<3C>J& <0C>J8<02><14>J <0C>J <0C>J <0C>K <0C>K$ <0C>K, <0C>K <0C>K <0C>K, <0C>K8rest<73>$<24>K& <0C>K8<02><14>K <0C>K, <0C>K <0C>K <0C>K, <0C>K8current<6E><<3C>K& <0C>K8<02><14>K <0C>K*<14>K <0C>K <0C>L, <0C>K8,<2C>K'<14>K8<01>\<5C>K <0C>K <0C>K <0C>L <0C>K8<01>Nl<>K, <0C>K8<01>O<14>K <0C>K <0C>L, <0C>K <0C>K <0C>L <0C>L <0C>L, <0C>L <0C>L <0C>L, <0C>L8<01>J<<3C>L <0C>L <0C>L <0C>L <0C>L, <0C>L <0C>L <0C>L, <0C>L8<01>Q<<3C>L <0C>L <0C>L <0C>L, <0C>L <0C>L <0C>L, <0C>L8<01>P$<24>L <0C>L% <0C>L% <0C>L <0C>N <0C>O  <0C>N8<01>Nl<>N, <0C>N8<01>O<14>N& <0C>N8<02>,<2C>N <0C>N <0C>O, <0C>N <0C>O <0C>O <0C>O <0C>O, <0C>O <0C>O <0C>O, <0C>O8<01>J<<3C>O& <0C>O8<02><14>O <0C>O <0C>O <0C>O <0C>O, <0C>O8tok<6F><1C>O& <0C>O8<02><14>O, <0C>O <0C>O <0C>O, <0C>O8<01>P$<24>O& <0C>O8<02><14>O <0C>O, <0C>O <0C>O <0C>O, <0C>O8<01>Q<<3C>O& <0C>O8<02><14>O <0C>O*<14>O <0C>O <0C>Q, <0C>O8,<2C>O'<14>O8<01>\<5C>O <0C>O <0C>O <0C>Q  <0C>O8<01>Nl<>O, <0C>P8<01>O<14>P <0C>P <0C>P, <0C>P <0C>P <0C>P <0C>P <0C>P, <0C>P <0C>P <0C>P, <0C>P8<01>J<<3C>P <0C>P <0C>P <0C>P <0C>P, <0C>P <0C>P <0C>P, <0C>P8<01>P$<24>P <0C>P, <0C>P <0C>P <0C>P, <0C>P8<01>Q<<3C>P <0C>P, <0C>Q8<01>U<1C>Q% <0C>Q% <0C>Q <0C>R <0C>S  <0C>R8<01>Nl<>R, <0C>R8<01>O<14>R& <0C>R8<02>,<2C>R <0C>R <0C>S, <0C>R <0C>R <0C>S <0C>R <0C>S, <0C>R <0C>R <0C>R, <0C>R8<01>J<<3C>R& <0C>R8<02><14>R <0C>R <0C>S <0C>S <0C>S, <0C>S <0C>S <0C>S, <0C>S8<01>Q<<3C>S& <0C>S8<02><14>S <0C>S*<14>S <0C>S <0C>T, <0C>S8,<2C>S'<14>S8<01>\<5C>S <0C>S <0C>S <0C>T <0C>S8<01>I\<5C>S, <0C>S8<01>O<14>S, <0C>S <0C>S <0C>T <0C>T <0C>T, <0C>T <0C>T <0C>T, <0C>T8<01>J<<3C>T <0C>T <0C>T <0C>T <0C>T, <0C>T <0C>T <0C>T, <0C>T8<01>Q<<3C>T <0C>T% <0C>T% <0C>T <0C>U <0C>V <0C>U8<01>K4<>U8<02><1C>U <0C>U <0C>V, <0C>U <0C>U <0C>V, <0C>V8tokens<6E>4<>V& <0C>V8<02><14>V <0C>V*<14>V <0C>V <0C>V, <0C>V8,<2C>V'<14>V8<01>\<5C>V <0C>V <0C>V <0C>V <0C>V8<01>Nl<>V8<02><1C>V <0C>V <0C>V <0C>V <0C>V, <0C>V <0C>V <0C>V, <0C>V8<01>^4<>V <0C>V% <0C>V <0C>W <0C>W <0C>W8<01>K4<>W8<02><1C>W <0C>W <0C>W, <0C>W <0C>W <0C>W, <0C>W8<01>^4<>W& <0C>W8<02><14>W <0C>W*<14>W <0C>W <0C>X, <0C>W8,<2C>W'<14>W8<01>\<5C>W <0C>W <0C>W <0C>X <0C>W8<01>Nl<>W8<02><1C>W <0C>W <0C>X <0C>X <0C>X, <0C>X <0C>X <0C>X, <0C>X8<01>^4<>X <0C>X% <0C>X <0C>X <0C>Y <0C>X8<01>K4<>X8<02>
 <0C>]8 with_dollar<61>\<5C>] <0C>] <0C>], <0C>]8dol<6F><1C>]& <0C>]8<02><14>], <0C>] <0C>] <0C>], <0C>]8<02>,<2C>]& <0C>]8<02>,<2C>]& <0C>] <0C>] <0C>], <0C>] <0C>] <0C>], <0C>]8config<69>4<>]& <0C>]8<02><14>] <0C>]$ <0C>^ <0C>^, <0C>^ <0C>^ <0C>^$ <0C>^- <0C>^*<14>^ <0C>^ <0C>d8?\<5C>_ <0C>_8<01>i<00><>_ <0C>_ <0C>b, <0C>` <0C>` <0C>a <0C>` <0C>`, <0C>`8<02>,<2C>`*<14>` <0C>` <0C>`, <0C>`8,<2C>`'<14>`8<01>\<5C>` <0C>` <0C>` <0C>` <0C>`8<01>K4<>`, <0C>` <0C>` <0C>`, <0C>`8<01>k4<>` <0C>`% <0C>` <0C>a <0C>a <0C>a, <0C>a8<01>j<1C>a8<02> <0C>a& <0C>a8<02>,<2C>a*<14>a <0C>a <0C>b, <0C>a8,<2C>a'<14>b8<01>\<5C>b <0C>b <0C>b <0C>b <0C>b8<01>8T<>b, <0C>b8<01>j<1C>b8<02> <0C>b% <0C>b, <0C>b <0C>b <0C>d 8println<6C><<3C>b <0C>b <0C>b <0C>c7cargo:rustc-check-cfg=cfg({})<29><00><>b$ <0C>b8<02>L<>b <0C>c <0C>c <0C>c, <0C>c8<02>,<2C>c% <0C>c8<14>c, <0C>c8,<2C>c'<14>c8<01>\<5C>c <0C>c <0C>c <0C>c <0C>c8<01>K4<>c, <0C>c <0C>c <0C>c, <0C>c8<01>k4<>c <0C>c <0C>c <0C>d8<01>o<<3C>c <0C>c <0C>c <0C>d7cargo:rustc-cfg={}<7D><00><>c$ <0C>c8<02>L<>c <0C>d <0C>d <0C>d, <0C>d8<02>,<2C>d% <0C>d <0C>d% <0C>d <0C>d <0C>d, <0C>d <0C>d <0C>d, <0C>d8<01>^4<>d& <0C>d8<02><14>d <0C>d*<14>d <0C>d <0C>e, <0C>d8,<2C>d'<14>e8<01>\<5C>e <0C>e <0C>e <0C>e <0C>e8<01>i\<5C>e <0C>e <0C>e, <0C>e, <0C>e <0C>e <0C>e, <0C>e8<01>^4<>e <0C>e!<01>Ohttps://docs.rs/tectonic_cfg_support/0.0.1/src/tectonic_cfg_support/lib.rs.html<6D>bringing it up<75>Dhttps://users.rust-lang.org/t/any-such-thing-as-cfg-aliases/40100/13<31> cfg_aliases!<21>
showing me<6D>Chttps://users.rust-lang.org/t/any-such-thing-as-cfg-aliases/40100/3<> pointing out<75>Chttps://users.rust-lang.org/t/any-such-thing-as-cfg-aliases/40100/2<> tectonic_cfg_support::target_cfg<66>tectonic_cfg_support<72><01>t<01><01>u<01>u<01>v<01>v<01>v<01>v<01>w<01>w<01>w<01><01>t<01>u<01>u<01>v<01>v<01>v<01>v<01>w<01>w<01>w<02><02><02><02><02><02><02><02><><02><><02>®<02> <02> <02> <02> <02><02><02><02><02><02><02><02>J<02>K<02>J<02>J<02>K<03><03>5܂<><DC82>q<EFBFBD>:<3A><>6=A<>!L<><4C><EFBFBD>*ƇV'M<>Hw<01><>{<17>n<00>2{)zZ<1C><02><17><17><00>Wx<17><02><02><02>[^:<3A><"%<02> ܂<><DC82>q<EFBFBD>:<3A><15><>Z<EFBFBD>`*<2A><02>=I=M=n=^=<3D>=<3D>ODHT <02><>M<>Hw<01><>܂<><DC82>q<EFBFBD>:<3A><00><>*ƇV'<00>6=A<>!L<>We<57><65><EFBFBD><EFBFBD><EFBFBD><0E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>EWe<57><65><EFBFBD><EFBFBD><EFBFBD><0E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>EcC:\Users\dxzq\.cargo\registry\src\mirrors.ustc.edu.cn-38d0e5eb5da2abae\cfg_aliases-0.2.1\src\lib.rs<72> r­l<C2AD>S<EFBFBD>L<11><00><> fd.sɁ<a<><61>=<3D>u3<15><><00>e<EFBFBD>e<EFBFBD>0<00>  ".0,,D<?=
S )'YS #'D' ED> Y<00>  !O!k<00>fXZ<00><00>NPN)a!\cdNO $*,((@8;9] 'YS H' ED> YK&
QSa\:C
5*
(\1
M9 GR  90  9OOO  5%# OIJL  2  OK5  2 OK   . P? B/ BE 5.)6+,:6%+7 I;/5 >="9
 K;D ':{蕧<><E895A7><EFBFBD>6<EFBFBD>ר8 <20>q<EFBFBD><00>>x86_64-pc-windows-msvc<76><63>M2`<60><><EFBFBD>Gg<><67>2<EFBFBD>7g<01>-69ea8ff28d748fb1<62>܂<EFBFBD><DC82>q<EFBFBD>:<3A> <0A><><00>y  N<01> rust-end-file