|
10 | 10 |
|
11 | 11 | #[cfg(target_os = "linux")]
|
12 | 12 | pub mod os {
|
13 |
| - pub const FAMILY: &'static str = "unix"; |
14 |
| - pub const OS: &'static str = "linux"; |
15 |
| - pub const DLL_PREFIX: &'static str = "lib"; |
16 |
| - pub const DLL_SUFFIX: &'static str = ".so"; |
17 |
| - pub const DLL_EXTENSION: &'static str = "so"; |
18 |
| - pub const EXE_SUFFIX: &'static str = ""; |
19 |
| - pub const EXE_EXTENSION: &'static str = ""; |
| 13 | + pub const FAMILY: &str = "unix"; |
| 14 | + pub const OS: &str = "linux"; |
| 15 | + pub const DLL_PREFIX: &str = "lib"; |
| 16 | + pub const DLL_SUFFIX: &str = ".so"; |
| 17 | + pub const DLL_EXTENSION: &str = "so"; |
| 18 | + pub const EXE_SUFFIX: &str = ""; |
| 19 | + pub const EXE_EXTENSION: &str = ""; |
20 | 20 | }
|
21 | 21 |
|
22 | 22 | #[cfg(target_os = "macos")]
|
23 | 23 | pub mod os {
|
24 |
| - pub const FAMILY: &'static str = "unix"; |
25 |
| - pub const OS: &'static str = "macos"; |
26 |
| - pub const DLL_PREFIX: &'static str = "lib"; |
27 |
| - pub const DLL_SUFFIX: &'static str = ".dylib"; |
28 |
| - pub const DLL_EXTENSION: &'static str = "dylib"; |
29 |
| - pub const EXE_SUFFIX: &'static str = ""; |
30 |
| - pub const EXE_EXTENSION: &'static str = ""; |
| 24 | + pub const FAMILY: &str = "unix"; |
| 25 | + pub const OS: &str = "macos"; |
| 26 | + pub const DLL_PREFIX: &str = "lib"; |
| 27 | + pub const DLL_SUFFIX: &str = ".dylib"; |
| 28 | + pub const DLL_EXTENSION: &str = "dylib"; |
| 29 | + pub const EXE_SUFFIX: &str = ""; |
| 30 | + pub const EXE_EXTENSION: &str = ""; |
31 | 31 | }
|
32 | 32 |
|
33 | 33 | #[cfg(target_os = "ios")]
|
34 | 34 | pub mod os {
|
35 |
| - pub const FAMILY: &'static str = "unix"; |
36 |
| - pub const OS: &'static str = "ios"; |
37 |
| - pub const DLL_PREFIX: &'static str = "lib"; |
38 |
| - pub const DLL_SUFFIX: &'static str = ".dylib"; |
39 |
| - pub const DLL_EXTENSION: &'static str = "dylib"; |
40 |
| - pub const EXE_SUFFIX: &'static str = ""; |
41 |
| - pub const EXE_EXTENSION: &'static str = ""; |
| 35 | + pub const FAMILY: &str = "unix"; |
| 36 | + pub const OS: &str = "ios"; |
| 37 | + pub const DLL_PREFIX: &str = "lib"; |
| 38 | + pub const DLL_SUFFIX: &str = ".dylib"; |
| 39 | + pub const DLL_EXTENSION: &str = "dylib"; |
| 40 | + pub const EXE_SUFFIX: &str = ""; |
| 41 | + pub const EXE_EXTENSION: &str = ""; |
42 | 42 | }
|
43 | 43 |
|
44 | 44 | #[cfg(target_os = "freebsd")]
|
45 | 45 | pub mod os {
|
46 |
| - pub const FAMILY: &'static str = "unix"; |
47 |
| - pub const OS: &'static str = "freebsd"; |
48 |
| - pub const DLL_PREFIX: &'static str = "lib"; |
49 |
| - pub const DLL_SUFFIX: &'static str = ".so"; |
50 |
| - pub const DLL_EXTENSION: &'static str = "so"; |
51 |
| - pub const EXE_SUFFIX: &'static str = ""; |
52 |
| - pub const EXE_EXTENSION: &'static str = ""; |
| 46 | + pub const FAMILY: &str = "unix"; |
| 47 | + pub const OS: &str = "freebsd"; |
| 48 | + pub const DLL_PREFIX: &str = "lib"; |
| 49 | + pub const DLL_SUFFIX: &str = ".so"; |
| 50 | + pub const DLL_EXTENSION: &str = "so"; |
| 51 | + pub const EXE_SUFFIX: &str = ""; |
| 52 | + pub const EXE_EXTENSION: &str = ""; |
53 | 53 | }
|
54 | 54 |
|
55 | 55 | #[cfg(target_os = "dragonfly")]
|
56 | 56 | pub mod os {
|
57 |
| - pub const FAMILY: &'static str = "unix"; |
58 |
| - pub const OS: &'static str = "dragonfly"; |
59 |
| - pub const DLL_PREFIX: &'static str = "lib"; |
60 |
| - pub const DLL_SUFFIX: &'static str = ".so"; |
61 |
| - pub const DLL_EXTENSION: &'static str = "so"; |
62 |
| - pub const EXE_SUFFIX: &'static str = ""; |
63 |
| - pub const EXE_EXTENSION: &'static str = ""; |
| 57 | + pub const FAMILY: &str = "unix"; |
| 58 | + pub const OS: &str = "dragonfly"; |
| 59 | + pub const DLL_PREFIX: &str = "lib"; |
| 60 | + pub const DLL_SUFFIX: &str = ".so"; |
| 61 | + pub const DLL_EXTENSION: &str = "so"; |
| 62 | + pub const EXE_SUFFIX: &str = ""; |
| 63 | + pub const EXE_EXTENSION: &str = ""; |
64 | 64 | }
|
65 | 65 |
|
66 | 66 | #[cfg(target_os = "bitrig")]
|
67 | 67 | pub mod os {
|
68 |
| - pub const FAMILY: &'static str = "unix"; |
69 |
| - pub const OS: &'static str = "bitrig"; |
70 |
| - pub const DLL_PREFIX: &'static str = "lib"; |
71 |
| - pub const DLL_SUFFIX: &'static str = ".so"; |
72 |
| - pub const DLL_EXTENSION: &'static str = "so"; |
73 |
| - pub const EXE_SUFFIX: &'static str = ""; |
74 |
| - pub const EXE_EXTENSION: &'static str = ""; |
| 68 | + pub const FAMILY: &str = "unix"; |
| 69 | + pub const OS: &str = "bitrig"; |
| 70 | + pub const DLL_PREFIX: &str = "lib"; |
| 71 | + pub const DLL_SUFFIX: &str = ".so"; |
| 72 | + pub const DLL_EXTENSION: &str = "so"; |
| 73 | + pub const EXE_SUFFIX: &str = ""; |
| 74 | + pub const EXE_EXTENSION: &str = ""; |
75 | 75 | }
|
76 | 76 |
|
77 | 77 | #[cfg(target_os = "netbsd")]
|
78 | 78 | pub mod os {
|
79 |
| - pub const FAMILY: &'static str = "unix"; |
80 |
| - pub const OS: &'static str = "netbsd"; |
81 |
| - pub const DLL_PREFIX: &'static str = "lib"; |
82 |
| - pub const DLL_SUFFIX: &'static str = ".so"; |
83 |
| - pub const DLL_EXTENSION: &'static str = "so"; |
84 |
| - pub const EXE_SUFFIX: &'static str = ""; |
85 |
| - pub const EXE_EXTENSION: &'static str = ""; |
| 79 | + pub const FAMILY: &str = "unix"; |
| 80 | + pub const OS: &str = "netbsd"; |
| 81 | + pub const DLL_PREFIX: &str = "lib"; |
| 82 | + pub const DLL_SUFFIX: &str = ".so"; |
| 83 | + pub const DLL_EXTENSION: &str = "so"; |
| 84 | + pub const EXE_SUFFIX: &str = ""; |
| 85 | + pub const EXE_EXTENSION: &str = ""; |
86 | 86 | }
|
87 | 87 |
|
88 | 88 | #[cfg(target_os = "openbsd")]
|
89 | 89 | pub mod os {
|
90 |
| - pub const FAMILY: &'static str = "unix"; |
91 |
| - pub const OS: &'static str = "openbsd"; |
92 |
| - pub const DLL_PREFIX: &'static str = "lib"; |
93 |
| - pub const DLL_SUFFIX: &'static str = ".so"; |
94 |
| - pub const DLL_EXTENSION: &'static str = "so"; |
95 |
| - pub const EXE_SUFFIX: &'static str = ""; |
96 |
| - pub const EXE_EXTENSION: &'static str = ""; |
| 90 | + pub const FAMILY: &str = "unix"; |
| 91 | + pub const OS: &str = "openbsd"; |
| 92 | + pub const DLL_PREFIX: &str = "lib"; |
| 93 | + pub const DLL_SUFFIX: &str = ".so"; |
| 94 | + pub const DLL_EXTENSION: &str = "so"; |
| 95 | + pub const EXE_SUFFIX: &str = ""; |
| 96 | + pub const EXE_EXTENSION: &str = ""; |
97 | 97 | }
|
98 | 98 |
|
99 | 99 | #[cfg(target_os = "android")]
|
100 | 100 | pub mod os {
|
101 |
| - pub const FAMILY: &'static str = "unix"; |
102 |
| - pub const OS: &'static str = "android"; |
103 |
| - pub const DLL_PREFIX: &'static str = "lib"; |
104 |
| - pub const DLL_SUFFIX: &'static str = ".so"; |
105 |
| - pub const DLL_EXTENSION: &'static str = "so"; |
106 |
| - pub const EXE_SUFFIX: &'static str = ""; |
107 |
| - pub const EXE_EXTENSION: &'static str = ""; |
| 101 | + pub const FAMILY: &str = "unix"; |
| 102 | + pub const OS: &str = "android"; |
| 103 | + pub const DLL_PREFIX: &str = "lib"; |
| 104 | + pub const DLL_SUFFIX: &str = ".so"; |
| 105 | + pub const DLL_EXTENSION: &str = "so"; |
| 106 | + pub const EXE_SUFFIX: &str = ""; |
| 107 | + pub const EXE_EXTENSION: &str = ""; |
108 | 108 | }
|
109 | 109 |
|
110 | 110 | #[cfg(target_os = "solaris")]
|
111 | 111 | pub mod os {
|
112 |
| - pub const FAMILY: &'static str = "unix"; |
113 |
| - pub const OS: &'static str = "solaris"; |
114 |
| - pub const DLL_PREFIX: &'static str = "lib"; |
115 |
| - pub const DLL_SUFFIX: &'static str = ".so"; |
116 |
| - pub const DLL_EXTENSION: &'static str = "so"; |
117 |
| - pub const EXE_SUFFIX: &'static str = ""; |
118 |
| - pub const EXE_EXTENSION: &'static str = ""; |
| 112 | + pub const FAMILY: &str = "unix"; |
| 113 | + pub const OS: &str = "solaris"; |
| 114 | + pub const DLL_PREFIX: &str = "lib"; |
| 115 | + pub const DLL_SUFFIX: &str = ".so"; |
| 116 | + pub const DLL_EXTENSION: &str = "so"; |
| 117 | + pub const EXE_SUFFIX: &str = ""; |
| 118 | + pub const EXE_EXTENSION: &str = ""; |
119 | 119 | }
|
120 | 120 |
|
121 | 121 | #[cfg(target_os = "haiku")]
|
122 | 122 | pub mod os {
|
123 |
| - pub const FAMILY: &'static str = "unix"; |
124 |
| - pub const OS: &'static str = "haiku"; |
125 |
| - pub const DLL_PREFIX: &'static str = "lib"; |
126 |
| - pub const DLL_SUFFIX: &'static str = ".so"; |
127 |
| - pub const DLL_EXTENSION: &'static str = "so"; |
128 |
| - pub const EXE_SUFFIX: &'static str = ""; |
129 |
| - pub const EXE_EXTENSION: &'static str = ""; |
| 123 | + pub const FAMILY: &str = "unix"; |
| 124 | + pub const OS: &str = "haiku"; |
| 125 | + pub const DLL_PREFIX: &str = "lib"; |
| 126 | + pub const DLL_SUFFIX: &str = ".so"; |
| 127 | + pub const DLL_EXTENSION: &str = "so"; |
| 128 | + pub const EXE_SUFFIX: &str = ""; |
| 129 | + pub const EXE_EXTENSION: &str = ""; |
130 | 130 | }
|
131 | 131 |
|
132 | 132 | #[cfg(all(target_os = "emscripten", target_arch = "asmjs"))]
|
133 | 133 | pub mod os {
|
134 |
| - pub const FAMILY: &'static str = "unix"; |
135 |
| - pub const OS: &'static str = "emscripten"; |
136 |
| - pub const DLL_PREFIX: &'static str = "lib"; |
137 |
| - pub const DLL_SUFFIX: &'static str = ".so"; |
138 |
| - pub const DLL_EXTENSION: &'static str = "so"; |
139 |
| - pub const EXE_SUFFIX: &'static str = ".js"; |
140 |
| - pub const EXE_EXTENSION: &'static str = "js"; |
| 134 | + pub const FAMILY: &str = "unix"; |
| 135 | + pub const OS: &str = "emscripten"; |
| 136 | + pub const DLL_PREFIX: &str = "lib"; |
| 137 | + pub const DLL_SUFFIX: &str = ".so"; |
| 138 | + pub const DLL_EXTENSION: &str = "so"; |
| 139 | + pub const EXE_SUFFIX: &str = ".js"; |
| 140 | + pub const EXE_EXTENSION: &str = "js"; |
141 | 141 | }
|
142 | 142 |
|
143 | 143 | #[cfg(all(target_os = "emscripten", target_arch = "wasm32"))]
|
144 | 144 | pub mod os {
|
145 |
| - pub const FAMILY: &'static str = "unix"; |
146 |
| - pub const OS: &'static str = "emscripten"; |
147 |
| - pub const DLL_PREFIX: &'static str = "lib"; |
148 |
| - pub const DLL_SUFFIX: &'static str = ".so"; |
149 |
| - pub const DLL_EXTENSION: &'static str = "so"; |
150 |
| - pub const EXE_SUFFIX: &'static str = ".js"; |
151 |
| - pub const EXE_EXTENSION: &'static str = "js"; |
| 145 | + pub const FAMILY: &str = "unix"; |
| 146 | + pub const OS: &str = "emscripten"; |
| 147 | + pub const DLL_PREFIX: &str = "lib"; |
| 148 | + pub const DLL_SUFFIX: &str = ".so"; |
| 149 | + pub const DLL_EXTENSION: &str = "so"; |
| 150 | + pub const EXE_SUFFIX: &str = ".js"; |
| 151 | + pub const EXE_EXTENSION: &str = "js"; |
152 | 152 | }
|
153 | 153 |
|
154 | 154 | #[cfg(target_os = "fuchsia")]
|
155 | 155 | pub mod os {
|
156 |
| - pub const FAMILY: &'static str = "unix"; |
157 |
| - pub const OS: &'static str = "fuchsia"; |
158 |
| - pub const DLL_PREFIX: &'static str = "lib"; |
159 |
| - pub const DLL_SUFFIX: &'static str = ".so"; |
160 |
| - pub const DLL_EXTENSION: &'static str = "so"; |
161 |
| - pub const EXE_SUFFIX: &'static str = ""; |
162 |
| - pub const EXE_EXTENSION: &'static str = ""; |
| 156 | + pub const FAMILY: &str = "unix"; |
| 157 | + pub const OS: &str = "fuchsia"; |
| 158 | + pub const DLL_PREFIX: &str = "lib"; |
| 159 | + pub const DLL_SUFFIX: &str = ".so"; |
| 160 | + pub const DLL_EXTENSION: &str = "so"; |
| 161 | + pub const EXE_SUFFIX: &str = ""; |
| 162 | + pub const EXE_EXTENSION: &str = ""; |
163 | 163 | }
|
164 | 164 |
|
165 | 165 | #[cfg(target_os = "l4re")]
|
166 | 166 | pub mod os {
|
167 |
| - pub const FAMILY: &'static str = "unix"; |
168 |
| - pub const OS: &'static str = "l4re"; |
169 |
| - pub const DLL_PREFIX: &'static str = "lib"; |
170 |
| - pub const DLL_SUFFIX: &'static str = ".so"; |
171 |
| - pub const DLL_EXTENSION: &'static str = "so"; |
172 |
| - pub const EXE_SUFFIX: &'static str = ""; |
173 |
| - pub const EXE_EXTENSION: &'static str = ""; |
| 167 | + pub const FAMILY: &str = "unix"; |
| 168 | + pub const OS: &str = "l4re"; |
| 169 | + pub const DLL_PREFIX: &str = "lib"; |
| 170 | + pub const DLL_SUFFIX: &str = ".so"; |
| 171 | + pub const DLL_EXTENSION: &str = "so"; |
| 172 | + pub const EXE_SUFFIX: &str = ""; |
| 173 | + pub const EXE_EXTENSION: &str = ""; |
174 | 174 | }
|
175 | 175 |
|
176 | 176 | #[cfg(target_os = "hermit")]
|
177 | 177 | pub mod os {
|
178 |
| - pub const FAMILY: &'static str = "unix"; |
179 |
| - pub const OS: &'static str = "hermit"; |
180 |
| - pub const DLL_PREFIX: &'static str = "lib"; |
181 |
| - pub const DLL_SUFFIX: &'static str = ".so"; |
182 |
| - pub const DLL_EXTENSION: &'static str = "so"; |
183 |
| - pub const EXE_SUFFIX: &'static str = ""; |
184 |
| - pub const EXE_EXTENSION: &'static str = ""; |
| 178 | + pub const FAMILY: &str = "unix"; |
| 179 | + pub const OS: &str = "hermit"; |
| 180 | + pub const DLL_PREFIX: &str = "lib"; |
| 181 | + pub const DLL_SUFFIX: &str = ".so"; |
| 182 | + pub const DLL_EXTENSION: &str = "so"; |
| 183 | + pub const EXE_SUFFIX: &str = ""; |
| 184 | + pub const EXE_EXTENSION: &str = ""; |
185 | 185 | }
|
0 commit comments