Files
Deshab-OS/CODE/Deaicup Software/pe/target/release/deps/libversion_check-1371f78368250076.rmeta
T

156 lines
72 KiB
Plaintext
Raw Normal View History

rust
I #rustc 1.95.0 (59807616e 2026-04-14)Áº+Æ—Cæµ&ÌñN€;"�-0cebe7c42cd80226ÁûKn�c8’ÞIK/�%W-7c4a4c66f69609a4Á±òYÞ
 2—¹a»/æ¨Õ-778893609386d885Á²B÷è:£¢¬-Y4^ˆ&8ö-c5c18940a57badd0Á’xQD+§¬µ€€Ùµ7õhÐ-ab072c5f59c422bcÁrustc_std_workspace_coreÁp¸q_<Nî—n”•ïQMô
-70fce068d6af51d0Á hashbrownÁˆ&·''ÛþœºÞûBŠk -d671ea03f4f2cb7fÁrustc_std_workspace_allocÁžÝxú*×ÊSŠÉ
AAº›-fd50af2c77fb0ff8Á
std_detectÁ°�5µ[àQ¨B^âÇ.ÎÅ-9997abfbe12e9a5aÁrustc_demangleÁðˆŸÛ=éXÓ™Ê~3¶-eda3326d6d941958Á windows_linkÁ» o¹—öŽ&#³¥ —-51a83819a91587e9Ácfg_ifÁaSÁ®ÛYOûpóÎh/R-66ccf9e220034f42Áæ
Z¾¯D©Ä•= ­l§EzB-2405f2c51aa3033fÁtestsÁ,¶3ö$«3'°,×,ö$Ì,°,ùiö$îiº·readÁ  parseÁ  from_mmpÁto_mmpÁat_leastÁ at_mostÁ exactlyÁ ááchannelÁ�   as_strÁsupports_featuresÁis_devÁ
is_nightlyÁis_betaÁ is_stableÁ%ádateÁ'')�* * ) - - )from_ymdÁ)to_ymdÁ)Ð2 )ã4 )õ6 '8á#version_and_date_from_rustc_versionÁ? ? ? ? +version_and_date_from_rustc_verbose_versionÁD E get_version_and_dateÁG G G tripleÁ is_min_dateÁ is_max_dateÁ
is_exact_dateÁis_min_versionÁis_max_versionÁis_exact_versionÁis_feature_flaggableÁR supports_featureÁT T V TALLOW_FEATURESÁT T T T VersionÁ]
]úa�cäg‘ iê

k™KindÁmDevÁn
mNightlyÁp
mBetaÁr
mStableÁt
váy�{ä‘ChannelÁ�
�ú „á
 ‡� ‰ä
�‘'DateÁ�
�ú'’á''•�'—ä'''›‘' �ê
'
Ÿ™
















!
"
#
$
&
&
&
-
1
2
2
4
4
6
6
9
9
9
?
D
D
L
M
N
O
P
Q
T
b
b
d
h
j
j
l
l
w
w
w
z
z
|
€
…
…
…
ˆ
ˆ
Š
Ž
“
“
“
–
–
˜
œ
ž
ž
 
 
æ³]]^Ê _ú ’§ú>ÝÄ!Ú¹¹ß¹¾¹�¹š¹†¹¹€¹Êb¹Åb¹Åbmno±
pq¿
rsÑ
tuà
íQÑ¢Ž©Læ³ÍÚÍÍß;Í�ÍšÍÅb��‚©ƒú =žûdv–•Sæ³áÚááßá¾á�ášáÊbáÅb���€‘ú' †n£<* 󦿳ãÚããßã¾ã�ãšã†ãã€ãÊbã`]xm†�”�a]ym‡�•�c]{m‰�—�e]}m‹�™�f]~mŒ�š�g]m��›�i]��k]Ÿ�]%�8�]vm„�’�æ³ÑÚß¾�š†€ Êb ÅbœŽ#dbH[ ¹ÑŽgŽn4´
AK(puh$¹0Ñ7@JœŽŽ',
ˆŽŽ@EM�jPw¨‚ª‚«‚¬‚­‚讂ú;¥>÷ç¥Ëä¦å¦æ¦LessÁç¦è¦é¦‹ê¦ë¦ì¦GreaterÁí¦®ìvFÌR
³ÑºÑÁ Ž.œ6Ý´
êô¥` œŽŽ',
�Ž=BJ †l ƒ¦ÑÑœƒœŠ3´
@J‘³3Á(%+3 JRì emì 8€ˆì S�¢
ðb³¸ÀwÕ£…¦…§…¸¨…ú©…ª…Œ«…ú¢ÈŸÙ6�ŒŠŽŠŽ‹ŽErrorÁ …Ê:{KTiP] Íh ¦b¦b•¨b°
¦_©bbufÁ¦_üØ ÷Qy¬j¯ì ·¿É¹×âÚ!ìH
(z8=CN”#U”#\î#cî#js´
€ __self_discrÁ™ __arg1_discrÁ°¸(49€ Í+”#2;E(¼ ì óÍ  ÅbQV
�cgl\yÁ…��"› ᥟ#¬ì ³‡'¥ ”#¯”#Ô¹áëƒ(‡'á¡'û óÍÍ',
ÜÍÍ@EM̈HÃ
ä'ä'”#†”#�2´
?Iü((ØÝŽ"'á3ä':CM(€ ì Å ‡'GL¡'X]Mj…“��"Œ ã–Ÿ#�ì ¤‡'–  Ž+£™,ªÈ¹Õß—,‡'Õ¡'ïÅŽ+Ž+#�–H‡
ø+ø+Ž+gŽ+n2´
?I(œ¡œ"'ã3ø+:CMÅŽ+Ž+',
ˆŽ+Ž+@EM­žP£áø+ø+™,‡™,Ž3´
@JŒ/· ÅŽ+Ž+',
�Ž+=BJ ²  ¯¦ø+ø+™,„™,‹3´
@JÎ0´§ 3Áì "allow-features="Á”‰ ]^#¹.Ž5<”à �‚%á0Í7>|µ ��%ã0Ž+7>'?DGKLMNOPQRTºŽµ"„:Ž¡:CommandÁ<Ì"ó.;Ê <”]<©<ë�=€$À�>ü¢¢üKH This tiny crate checks that the running or installed `rustc` meets someÁüLMJ version requirements. The version is queried by calling the Rust compilerÁüšJG with `--version`. The path to the compiler is determined first via theÁüåLI `RUSTC` environment variable. If it is not set, then `rustc` is used. IfÁü²B? that fails, no determination is made, and calls return `None`.Áõˆtù # ExamplesÁˆˆüŒLI **Note:** Please see [feature detection] for a note on enabling unstableÁüÙ/, features based on detection via this crate.Á‰ˆü�0- [feature detection]: crate#feature-detectionÁ¾ˆüÂNK * Set a `cfg` flag in `build.rs` if the running compiler was determined toÁü‘# be at least version `1.13.0`:Áµˆl¹
```rustÁüÇ*' extern crate version_check as rustc;Áòˆüö;8 if rustc::is_min_version("1.13.0").unwrap_or(false) {Áü²=: println!("cargo:rustc-cfg=question_mark_operator");Á<ð }ÁLø ```Á‚ˆü†MJ See [`is_max_version`] or [`is_exact_version`] to check if the compilerÁüÔ2/ is _at most_ or _exactly_ a certain version.Á”‡ <br /><br />ÁšˆüžLI * Check that the running compiler was released on or after `2018-12-18`:ÁëˆlïÍ:üý*ä:¨ ˆü¬ .+ match rustc::is_min_date("2018-12-18") {ÁüÛ ,) Some(true) => "Yep! It's recent!",Áüˆ
+( Some(false) => "No, it's older.",Áü´
96 None => "Couldn't determine the rustc version."ÁDî
 };ÁL÷
¿<� ˆü… KH See [`is_max_date`] or [`is_exact_date`] to check if the compiler wasÁüÑ 96 released _prior to_ or _exactly on_ a certain date.Á”‹ ð=ž ˆü¢ =: * Check that the running compiler supports feature flags:Áà ˆlä Í:üò *ä:�
ˆü¡
+( match rustc::is_feature_flaggable() {ÁüÍ
>; Some(true) => "Yes! It's a dev or nightly release!",ÁüŒ41 Some(false) => "No, it's stable or beta.",ÁüÁ9Â@Dû„AL„¿<Žˆü’1. Please see the note on [feature detection].Á”Äð=׈üÛB? * Check that the running compiler supports a specific feature:Ážˆl¢Í:ü°*ä:Ûˆüß>; if let Some(true) = rustc::supports_feature("doc_cfg") {Áüž1. println!("cargo:rustc-cfg=has_doc_cfg");Á<Я<LØ¿<âˆüæ1ÂE”˜ð=«ˆü¯?< * Check that the running compiler is on the stable channel:ÁïˆlóÍ:ü�*ä:¬ˆü°$! match rustc::Channel::read() {ÁüÕC@ Some(c) if c.is_stable() => format!("Yes! It's stable."),Áü™EB Some(c) => format!("No, the channel {} is not stable.", c),ÁüßB? None => format!("Couldn't determine the rustc version.")ÁD¢„AL«¿<µˆü¹OL To interact with the version, release date, and release channel as structs,Áü‰NK use [`Version`], [`Date`], and [`Channel`], respectively. The [`triple()`]ÁüØ2/ function returns all three values efficiently.Á‹ˆ¼� # Feature DetectionÁ§ˆü«NK While this crate can be used to determine if the current compiler supportsÁüúNK an unstable feature, no crate can determine whether that feature will workÁüÉGD in a way that you expect ad infinitum. If the feature changes in anÁü‘GD incompatible way, then your crate, as well as all of its transitiveÁüÙPM dependents, will fail to build. As a result, great care should be taken whenÁüªJG enabling nightly features even when they're supported by the compiler.ÁõˆüùMJ One common mitigation used in practice is to make using unstable featuresÁüÇOL transitively opt-in via a crate feature or `cfg` so that broken builds onlyÁü—MJ affect those that explicitly asked for the feature. Another complementaryÁüåNK approach is to probe `rustc` at build-time by asking it to compile a smallÁü´PM but exemplary program that determines whether the feature works as expected,Áü…MJ enabling the feature only if the probe succeeds. Finally, eschewing theseÁüÓOL recommendations, you should track the `nightly` channel closely to minimizeÁü£,) the total impact of a nightly breakages.ÁЈ”Ô # AlternativesÁçˆüëNK This crate is dead simple with no dependencies. If you need something moreÁüº OL and don't care about panicking if the version cannot be obtained, or if youÁüŠ!'$ don't mind adding dependencies, seeÁü²!<9 [rustc_version](https://crates.io/crates/rustc_version).Á'?DGKLMNOPQRTºÉŽÊ„:ŽÜ¡:±3Ãó.;Ê Â]<©Á�=€À�>?\‡"<‹"]^á °,Dd£¹
üÍ ü¶IF Reads the version of the running compiler. If it cannot be determinedÁü„?< (see the [top-level documentation](crate)), returns `None`.ÁȈlÐ
# ExampleÁâˆ\ê ```rustÁüú use version_check::Version;Ážˆܦ match Version::read() {ÁüÆ0- Some(d) => format!("Version is: {}", d),Áüû63 None => format!("Failed to read the version.")Á4¶ };Á<Á ```Á$Ô¨‚ª‚«‚¬‚­‚讂ú;¥>÷ç¥Ë¹
t§<closure_kind>Á<closure_signature>Á<upvars>Á¨‚ª‚«‚¬‚­‚讂ú;¥>÷ç¥ËŒIŒIì�I´£4K –å”Éo1ËbËbÞ"LÕì`„a¡aÁb�cõ`Þ"üÛ.ü…-* Parse a Rust release version (of the formÁü·HE `major[.minor[.patch[-channel]]]`), ignoring the release channel, ifÁü„HE any. Returns `None` if `version` is not a valid Rust version string.ÁшlÙ½]ëˆ\óß]üƒô]§ˆü¯41 let version = Version::parse("1.18.0").unwrap();Áüè'$ assert!(version.exactly("1.18.0"));Á” ˆüœ <9 let version = Version::parse("1.20.0-nightly").unwrap();ÁüÝ '$ assert!(version.exactly("1.20.0"));Áü‰
,) assert!(version.exactly("1.20.0-beta"));Áº
ˆüÂ
1. let version = Version::parse("1.3").unwrap();Áüø
&# assert!(version.exactly("1.3.0"));Á£ ˆü« /, let version = Version::parse("1").unwrap();Áüß &# assert!(version.exactly("1.0.0"));ÁŠ ˆü’ 74 assert!(Version::parse("one.two.three").is_none());ÁüÎ 30 assert!(Version::parse("1.65536.2").is_none());Áü†
.+ assert!(Version::parse("1. 2").is_none());Áü¹
*' assert!(Version::parse("").is_none());Áüè
,) assert!(Version::parse("1.").is_none());Áü™1. assert!(Version::parse("1.2.3.4").is_none());Á<ÏÕ_,â¡ ¡õ` ñ
·<èŒ ì`
„a
¡a

 
ì £…¦…§…¸¨…ú©…ª…Œ«…ú¢ÈŸÙ6�Œ‹Ý‹Ý
ParseIntErrorÁŒÝ„ê—š]<û?Þ" Á  § ü¹>ü‚HE Creates a `Version` from `(major, minor, patch)` version components.Áψl×½]éˆ\ñß]ü�ô]¥ˆü­;8 assert!(Version::from_mmp(1, 35, 0).exactly("1.35.0"));Áüí;8 assert!(Version::from_mmp(1, 33, 0).exactly("1.33.0"));Áü­;8 assert!(Version::from_mmp(1, 35, 1).exactly("1.35.1"));Áüí;8 assert!(Version::from_mmp(1, 13, 2).exactly("1.13.2"));Á<­Õ_DÀ¿o¿o¿o¹
majorÁ,ÉminorÁ,ÕpatchÁ,áü¹'üÕEB Returns the `(major, minor, patch)` version components of `self`.ÁŸˆl§½]¹ˆ\Áß]üÑô]õˆüýGD assert_eq!(Version::parse("1.35.0").unwrap().to_mmp(), (1, 35, 0));ÁüÉGD assert_eq!(Version::parse("1.33.0").unwrap().to_mmp(), (1, 33, 0));Áü•GD assert_eq!(Version::parse("1.35.1").unwrap().to_mmp(), (1, 35, 1));ÁüáGD assert_eq!(Version::parse("1.13.2").unwrap().to_mmp(), (1, 13, 2));Á<­Õ_4À¢ ¢¹¿o¿o¿o Ç
$Èü…#-ü�C@ Returns `true` if `self` is greater than or equal to `version`.ÁɈüÑLI If `version` is greater than `self`, or if `version` is not a valid RustÁü¢$! version string, returns `false`.ÁˈlÓ½]åˆ\íß]üýô]¡ˆü©41 let version = Version::parse("1.35.0").unwrap();Áâˆüê(% assert!(version.at_least("1.33.0"));Áü— (% assert!(version.at_least("1.35.0"));ÁüÄ (% assert!(version.at_least("1.13.2"));Áñ ˆüù )& assert!(!version.at_least("1.35.1"));Áü§!)& assert!(!version.at_least("1.55.0"));ÁÕ!ˆüÝ!41 let version = Version::parse("1.12.5").unwrap();Á–"ˆüž"(% assert!(version.at_least("1.12.0"));ÁüË")& assert!(!version.at_least("1.35.0"));Á<ù"Õ_DŒ#£¤ £¹ ¤ •#
$–#·<œ#Læ#ì`„a¡aÁb¹ Ñü€),ü«$@= Returns `true` if `self` is less than or equal to `version`.Áð$ˆüø$IF If `version` is less than `self`, or if `version` is not a valid RustÁüÆ%$±yï%ˆl÷%½]‰&ˆ\‘&ß]ü¡&ô]Å&ˆüÍ&4¨z†'ˆüŽ''$ assert!(version.at_most("1.35.1"));Áüº''$ assert!(version.at_most("1.55.0"));Áüæ''$ assert!(version.at_most("1.35.0"));Á’(ˆüš((% assert!(!version.at_most("1.33.0"));ÁüÇ((% assert!(!version.at_most("1.13.2"));Á<ô(Õ_<‡)¥¦ ¥¹ ¦ �)
$�)·<–)Là)ì`„a¡aÁbä€ð€üÍ.,ü¥*;8 Returns `true` if `self` is exactly equal to `version`.Áå*ˆüí*LI If `version` is not equal to `self`, or if `version` is not a valid RustÁü¾+$±yç+ˆlï+½]�,ˆ\‰,ß]ü™,ô]½,ˆüÅ,4¨zþ,ˆü†-'$ assert!(version.exactly("1.35.0"));Á²-ˆüº-(% assert!(!version.exactly("1.33.0"));Áüç-(% assert!(!version.exactly("1.35.1"));Áü”.(% assert!(!version.exactly("1.13.2"));Á<Á.Õ_<Ô.§¨ §¹ ¨ Ü.
$Ý.·<ã.L­/ì`„a¡aÁbä€ð€ìð/¹Ëbü”04—0©ª« ©¹ ª¦b¦b•¨b°