@@ -598,40 +598,94 @@ pub fn page_size() -> usize {
598
598
pub mod consts {
599
599
/// A string describing the architecture of the CPU that this is currently
600
600
/// in use.
601
+ ///
602
+ /// Some possible values:
603
+ ///
604
+ /// - x86
605
+ /// - x86_64
606
+ /// - arm
607
+ /// - aarch64
608
+ /// - mips
609
+ /// - mipsel
610
+ /// - powerpc
601
611
#[ stable( feature = "env" , since = "1.0.0" ) ]
602
612
pub const ARCH : & ' static str = super :: arch:: ARCH ;
603
613
604
614
/// The family of the operating system. In this case, `unix`.
615
+ ///
616
+ /// Some possible values:
617
+ ///
618
+ /// - unix
619
+ /// - windows
605
620
#[ stable( feature = "env" , since = "1.0.0" ) ]
606
621
pub const FAMILY : & ' static str = super :: os:: FAMILY ;
607
622
608
623
/// A string describing the specific operating system in use: in this
609
624
/// case, `linux`.
625
+ ///
626
+ /// Some possible values:
627
+ ///
628
+ /// - linux
629
+ /// - macos
630
+ /// - ios
631
+ /// - freebsd
632
+ /// - dragonfly
633
+ /// - bitrig
634
+ /// - openbsd
635
+ /// - android
636
+ /// - windows
610
637
#[ stable( feature = "env" , since = "1.0.0" ) ]
611
638
pub const OS : & ' static str = super :: os:: OS ;
612
639
613
640
/// Specifies the filename prefix used for shared libraries on this
614
641
/// platform: in this case, `lib`.
642
+ ///
643
+ /// Some possible values:
644
+ ///
645
+ /// - lib
646
+ /// - `""` (an empty string)
615
647
#[ stable( feature = "env" , since = "1.0.0" ) ]
616
648
pub const DLL_PREFIX : & ' static str = super :: os:: DLL_PREFIX ;
617
649
618
650
/// Specifies the filename suffix used for shared libraries on this
619
651
/// platform: in this case, `.so`.
652
+ ///
653
+ /// Some possible values:
654
+ ///
655
+ /// - .so
656
+ /// - .dylib
657
+ /// - .dll
620
658
#[ stable( feature = "env" , since = "1.0.0" ) ]
621
659
pub const DLL_SUFFIX : & ' static str = super :: os:: DLL_SUFFIX ;
622
660
623
661
/// Specifies the file extension used for shared libraries on this
624
662
/// platform that goes after the dot: in this case, `so`.
663
+ ///
664
+ /// Some possible values:
665
+ ///
666
+ /// - .so
667
+ /// - .dylib
668
+ /// - .dll
625
669
#[ stable( feature = "env" , since = "1.0.0" ) ]
626
670
pub const DLL_EXTENSION : & ' static str = super :: os:: DLL_EXTENSION ;
627
671
628
672
/// Specifies the filename suffix used for executable binaries on this
629
673
/// platform: in this case, the empty string.
674
+ ///
675
+ /// Some possible values:
676
+ ///
677
+ /// - exe
678
+ /// - `""` (an empty string)
630
679
#[ stable( feature = "env" , since = "1.0.0" ) ]
631
680
pub const EXE_SUFFIX : & ' static str = super :: os:: EXE_SUFFIX ;
632
681
633
682
/// Specifies the file extension, if any, used for executable binaries
634
683
/// on this platform: in this case, the empty string.
684
+ ///
685
+ /// Some possible values:
686
+ ///
687
+ /// - exe
688
+ /// - `""` (an empty string)
635
689
#[ stable( feature = "env" , since = "1.0.0" ) ]
636
690
pub const EXE_EXTENSION : & ' static str = super :: os:: EXE_EXTENSION ;
637
691
0 commit comments