| 1 | #[cfg (target_os = "linux" )] |
| 2 | pub mod os { |
| 3 | pub const FAMILY: &str = "unix" ; |
| 4 | pub const OS: &str = "linux" ; |
| 5 | pub const DLL_PREFIX: &str = "lib" ; |
| 6 | pub const DLL_SUFFIX: &str = ".so" ; |
| 7 | pub const DLL_EXTENSION: &str = "so" ; |
| 8 | pub const EXE_SUFFIX: &str = "" ; |
| 9 | pub const EXE_EXTENSION: &str = "" ; |
| 10 | } |
| 11 | |
| 12 | #[cfg (target_os = "macos" )] |
| 13 | pub mod os { |
| 14 | pub const FAMILY: &str = "unix" ; |
| 15 | pub const OS: &str = "macos" ; |
| 16 | pub const DLL_PREFIX: &str = "lib" ; |
| 17 | pub const DLL_SUFFIX: &str = ".dylib" ; |
| 18 | pub const DLL_EXTENSION: &str = "dylib" ; |
| 19 | pub const EXE_SUFFIX: &str = "" ; |
| 20 | pub const EXE_EXTENSION: &str = "" ; |
| 21 | } |
| 22 | |
| 23 | #[cfg (target_os = "ios" )] |
| 24 | pub mod os { |
| 25 | pub const FAMILY: &str = "unix" ; |
| 26 | pub const OS: &str = "ios" ; |
| 27 | pub const DLL_PREFIX: &str = "lib" ; |
| 28 | pub const DLL_SUFFIX: &str = ".dylib" ; |
| 29 | pub const DLL_EXTENSION: &str = "dylib" ; |
| 30 | pub const EXE_SUFFIX: &str = "" ; |
| 31 | pub const EXE_EXTENSION: &str = "" ; |
| 32 | } |
| 33 | |
| 34 | #[cfg (target_os = "tvos" )] |
| 35 | pub mod os { |
| 36 | pub const FAMILY: &str = "unix" ; |
| 37 | pub const OS: &str = "tvos" ; |
| 38 | pub const DLL_PREFIX: &str = "lib" ; |
| 39 | pub const DLL_SUFFIX: &str = ".dylib" ; |
| 40 | pub const DLL_EXTENSION: &str = "dylib" ; |
| 41 | pub const EXE_SUFFIX: &str = "" ; |
| 42 | pub const EXE_EXTENSION: &str = "" ; |
| 43 | } |
| 44 | |
| 45 | #[cfg (target_os = "watchos" )] |
| 46 | pub mod os { |
| 47 | pub const FAMILY: &str = "unix" ; |
| 48 | pub const OS: &str = "watchos" ; |
| 49 | pub const DLL_PREFIX: &str = "lib" ; |
| 50 | pub const DLL_SUFFIX: &str = ".dylib" ; |
| 51 | pub const DLL_EXTENSION: &str = "dylib" ; |
| 52 | pub const EXE_SUFFIX: &str = "" ; |
| 53 | pub const EXE_EXTENSION: &str = "" ; |
| 54 | } |
| 55 | |
| 56 | #[cfg (target_os = "visionos" )] |
| 57 | pub mod os { |
| 58 | pub const FAMILY: &str = "unix" ; |
| 59 | pub const OS: &str = "visionos" ; |
| 60 | pub const DLL_PREFIX: &str = "lib" ; |
| 61 | pub const DLL_SUFFIX: &str = ".dylib" ; |
| 62 | pub const DLL_EXTENSION: &str = "dylib" ; |
| 63 | pub const EXE_SUFFIX: &str = "" ; |
| 64 | pub const EXE_EXTENSION: &str = "" ; |
| 65 | } |
| 66 | |
| 67 | #[cfg (target_os = "freebsd" )] |
| 68 | pub mod os { |
| 69 | pub const FAMILY: &str = "unix" ; |
| 70 | pub const OS: &str = "freebsd" ; |
| 71 | pub const DLL_PREFIX: &str = "lib" ; |
| 72 | pub const DLL_SUFFIX: &str = ".so" ; |
| 73 | pub const DLL_EXTENSION: &str = "so" ; |
| 74 | pub const EXE_SUFFIX: &str = "" ; |
| 75 | pub const EXE_EXTENSION: &str = "" ; |
| 76 | } |
| 77 | |
| 78 | #[cfg (target_os = "dragonfly" )] |
| 79 | pub mod os { |
| 80 | pub const FAMILY: &str = "unix" ; |
| 81 | pub const OS: &str = "dragonfly" ; |
| 82 | pub const DLL_PREFIX: &str = "lib" ; |
| 83 | pub const DLL_SUFFIX: &str = ".so" ; |
| 84 | pub const DLL_EXTENSION: &str = "so" ; |
| 85 | pub const EXE_SUFFIX: &str = "" ; |
| 86 | pub const EXE_EXTENSION: &str = "" ; |
| 87 | } |
| 88 | |
| 89 | #[cfg (target_os = "netbsd" )] |
| 90 | pub mod os { |
| 91 | pub const FAMILY: &str = "unix" ; |
| 92 | pub const OS: &str = "netbsd" ; |
| 93 | pub const DLL_PREFIX: &str = "lib" ; |
| 94 | pub const DLL_SUFFIX: &str = ".so" ; |
| 95 | pub const DLL_EXTENSION: &str = "so" ; |
| 96 | pub const EXE_SUFFIX: &str = "" ; |
| 97 | pub const EXE_EXTENSION: &str = "" ; |
| 98 | } |
| 99 | |
| 100 | #[cfg (target_os = "openbsd" )] |
| 101 | pub mod os { |
| 102 | pub const FAMILY: &str = "unix" ; |
| 103 | pub const OS: &str = "openbsd" ; |
| 104 | pub const DLL_PREFIX: &str = "lib" ; |
| 105 | pub const DLL_SUFFIX: &str = ".so" ; |
| 106 | pub const DLL_EXTENSION: &str = "so" ; |
| 107 | pub const EXE_SUFFIX: &str = "" ; |
| 108 | pub const EXE_EXTENSION: &str = "" ; |
| 109 | } |
| 110 | |
| 111 | #[cfg (target_os = "cygwin" )] |
| 112 | pub mod os { |
| 113 | pub const FAMILY: &str = "unix" ; |
| 114 | pub const OS: &str = "cygwin" ; |
| 115 | pub const DLL_PREFIX: &str = "" ; |
| 116 | pub const DLL_SUFFIX: &str = ".dll" ; |
| 117 | pub const DLL_EXTENSION: &str = "dll" ; |
| 118 | pub const EXE_SUFFIX: &str = ".exe" ; |
| 119 | pub const EXE_EXTENSION: &str = "exe" ; |
| 120 | } |
| 121 | |
| 122 | #[cfg (target_os = "android" )] |
| 123 | pub mod os { |
| 124 | pub const FAMILY: &str = "unix" ; |
| 125 | pub const OS: &str = "android" ; |
| 126 | pub const DLL_PREFIX: &str = "lib" ; |
| 127 | pub const DLL_SUFFIX: &str = ".so" ; |
| 128 | pub const DLL_EXTENSION: &str = "so" ; |
| 129 | pub const EXE_SUFFIX: &str = "" ; |
| 130 | pub const EXE_EXTENSION: &str = "" ; |
| 131 | } |
| 132 | |
| 133 | #[cfg (target_os = "solaris" )] |
| 134 | pub mod os { |
| 135 | pub const FAMILY: &str = "unix" ; |
| 136 | pub const OS: &str = "solaris" ; |
| 137 | pub const DLL_PREFIX: &str = "lib" ; |
| 138 | pub const DLL_SUFFIX: &str = ".so" ; |
| 139 | pub const DLL_EXTENSION: &str = "so" ; |
| 140 | pub const EXE_SUFFIX: &str = "" ; |
| 141 | pub const EXE_EXTENSION: &str = "" ; |
| 142 | } |
| 143 | |
| 144 | #[cfg (target_os = "illumos" )] |
| 145 | pub mod os { |
| 146 | pub const FAMILY: &str = "unix" ; |
| 147 | pub const OS: &str = "illumos" ; |
| 148 | pub const DLL_PREFIX: &str = "lib" ; |
| 149 | pub const DLL_SUFFIX: &str = ".so" ; |
| 150 | pub const DLL_EXTENSION: &str = "so" ; |
| 151 | pub const EXE_SUFFIX: &str = "" ; |
| 152 | pub const EXE_EXTENSION: &str = "" ; |
| 153 | } |
| 154 | |
| 155 | #[cfg (target_os = "haiku" )] |
| 156 | pub mod os { |
| 157 | pub const FAMILY: &str = "unix" ; |
| 158 | pub const OS: &str = "haiku" ; |
| 159 | pub const DLL_PREFIX: &str = "lib" ; |
| 160 | pub const DLL_SUFFIX: &str = ".so" ; |
| 161 | pub const DLL_EXTENSION: &str = "so" ; |
| 162 | pub const EXE_SUFFIX: &str = "" ; |
| 163 | pub const EXE_EXTENSION: &str = "" ; |
| 164 | } |
| 165 | |
| 166 | #[cfg (target_os = "horizon" )] |
| 167 | pub mod os { |
| 168 | pub const FAMILY: &str = "unix" ; |
| 169 | pub const OS: &str = "horizon" ; |
| 170 | pub const DLL_PREFIX: &str = "lib" ; |
| 171 | pub const DLL_SUFFIX: &str = ".so" ; |
| 172 | pub const DLL_EXTENSION: &str = "so" ; |
| 173 | pub const EXE_SUFFIX: &str = ".elf" ; |
| 174 | pub const EXE_EXTENSION: &str = "elf" ; |
| 175 | } |
| 176 | |
| 177 | #[cfg (target_os = "hurd" )] |
| 178 | pub mod os { |
| 179 | pub const FAMILY: &str = "unix" ; |
| 180 | pub const OS: &str = "hurd" ; |
| 181 | pub const DLL_PREFIX: &str = "lib" ; |
| 182 | pub const DLL_SUFFIX: &str = ".so" ; |
| 183 | pub const DLL_EXTENSION: &str = "so" ; |
| 184 | pub const EXE_SUFFIX: &str = "" ; |
| 185 | pub const EXE_EXTENSION: &str = "" ; |
| 186 | } |
| 187 | |
| 188 | #[cfg (target_os = "vita" )] |
| 189 | pub mod os { |
| 190 | pub const FAMILY: &str = "unix" ; |
| 191 | pub const OS: &str = "vita" ; |
| 192 | pub const DLL_PREFIX: &str = "lib" ; |
| 193 | pub const DLL_SUFFIX: &str = ".so" ; |
| 194 | pub const DLL_EXTENSION: &str = "so" ; |
| 195 | pub const EXE_SUFFIX: &str = ".elf" ; |
| 196 | pub const EXE_EXTENSION: &str = "elf" ; |
| 197 | } |
| 198 | |
| 199 | #[cfg (all(target_os = "emscripten" , target_arch = "wasm32" ))] |
| 200 | pub mod os { |
| 201 | pub const FAMILY: &str = "unix" ; |
| 202 | pub const OS: &str = "emscripten" ; |
| 203 | pub const DLL_PREFIX: &str = "lib" ; |
| 204 | pub const DLL_SUFFIX: &str = ".so" ; |
| 205 | pub const DLL_EXTENSION: &str = "so" ; |
| 206 | pub const EXE_SUFFIX: &str = ".js" ; |
| 207 | pub const EXE_EXTENSION: &str = "js" ; |
| 208 | } |
| 209 | |
| 210 | #[cfg (target_os = "fuchsia" )] |
| 211 | pub mod os { |
| 212 | pub const FAMILY: &str = "unix" ; |
| 213 | pub const OS: &str = "fuchsia" ; |
| 214 | pub const DLL_PREFIX: &str = "lib" ; |
| 215 | pub const DLL_SUFFIX: &str = ".so" ; |
| 216 | pub const DLL_EXTENSION: &str = "so" ; |
| 217 | pub const EXE_SUFFIX: &str = "" ; |
| 218 | pub const EXE_EXTENSION: &str = "" ; |
| 219 | } |
| 220 | |
| 221 | #[cfg (target_os = "l4re" )] |
| 222 | pub mod os { |
| 223 | pub const FAMILY: &str = "unix" ; |
| 224 | pub const OS: &str = "l4re" ; |
| 225 | pub const DLL_PREFIX: &str = "lib" ; |
| 226 | pub const DLL_SUFFIX: &str = ".so" ; |
| 227 | pub const DLL_EXTENSION: &str = "so" ; |
| 228 | pub const EXE_SUFFIX: &str = "" ; |
| 229 | pub const EXE_EXTENSION: &str = "" ; |
| 230 | } |
| 231 | |
| 232 | #[cfg (target_os = "nto" )] |
| 233 | pub mod os { |
| 234 | pub const FAMILY: &str = "unix" ; |
| 235 | pub const OS: &str = "nto" ; |
| 236 | pub const DLL_PREFIX: &str = "lib" ; |
| 237 | pub const DLL_SUFFIX: &str = ".so" ; |
| 238 | pub const DLL_EXTENSION: &str = "so" ; |
| 239 | pub const EXE_SUFFIX: &str = "" ; |
| 240 | pub const EXE_EXTENSION: &str = "" ; |
| 241 | } |
| 242 | |
| 243 | #[cfg (target_os = "redox" )] |
| 244 | pub mod os { |
| 245 | pub const FAMILY: &str = "unix" ; |
| 246 | pub const OS: &str = "redox" ; |
| 247 | pub const DLL_PREFIX: &str = "lib" ; |
| 248 | pub const DLL_SUFFIX: &str = ".so" ; |
| 249 | pub const DLL_EXTENSION: &str = "so" ; |
| 250 | pub const EXE_SUFFIX: &str = "" ; |
| 251 | pub const EXE_EXTENSION: &str = "" ; |
| 252 | } |
| 253 | |
| 254 | #[cfg (target_os = "rtems" )] |
| 255 | pub mod os { |
| 256 | pub const FAMILY: &str = "unix" ; |
| 257 | pub const OS: &str = "rtems" ; |
| 258 | pub const DLL_PREFIX: &str = "lib" ; |
| 259 | pub const DLL_SUFFIX: &str = ".so" ; |
| 260 | pub const DLL_EXTENSION: &str = "so" ; |
| 261 | pub const EXE_SUFFIX: &str = "" ; |
| 262 | pub const EXE_EXTENSION: &str = "" ; |
| 263 | } |
| 264 | |
| 265 | #[cfg (target_os = "vxworks" )] |
| 266 | pub mod os { |
| 267 | pub const FAMILY: &str = "unix" ; |
| 268 | pub const OS: &str = "vxworks" ; |
| 269 | pub const DLL_PREFIX: &str = "lib" ; |
| 270 | pub const DLL_SUFFIX: &str = ".so" ; |
| 271 | pub const DLL_EXTENSION: &str = "so" ; |
| 272 | pub const EXE_SUFFIX: &str = "" ; |
| 273 | pub const EXE_EXTENSION: &str = "" ; |
| 274 | } |
| 275 | |
| 276 | #[cfg (target_os = "espidf" )] |
| 277 | pub mod os { |
| 278 | pub const FAMILY: &str = "unix" ; |
| 279 | pub const OS: &str = "espidf" ; |
| 280 | pub const DLL_PREFIX: &str = "lib" ; |
| 281 | pub const DLL_SUFFIX: &str = ".so" ; |
| 282 | pub const DLL_EXTENSION: &str = "so" ; |
| 283 | pub const EXE_SUFFIX: &str = "" ; |
| 284 | pub const EXE_EXTENSION: &str = "" ; |
| 285 | } |
| 286 | |
| 287 | #[cfg (target_os = "aix" )] |
| 288 | pub mod os { |
| 289 | pub const FAMILY: &str = "unix" ; |
| 290 | pub const OS: &str = "aix" ; |
| 291 | pub const DLL_PREFIX: &str = "lib" ; |
| 292 | pub const DLL_SUFFIX: &str = ".a" ; |
| 293 | pub const DLL_EXTENSION: &str = "a" ; |
| 294 | pub const EXE_SUFFIX: &str = "" ; |
| 295 | pub const EXE_EXTENSION: &str = "" ; |
| 296 | } |
| 297 | |
| 298 | #[cfg (target_os = "nuttx" )] |
| 299 | pub mod os { |
| 300 | pub const FAMILY: &str = "unix" ; |
| 301 | pub const OS: &str = "nuttx" ; |
| 302 | pub const DLL_PREFIX: &str = "lib" ; |
| 303 | pub const DLL_SUFFIX: &str = ".so" ; |
| 304 | pub const DLL_EXTENSION: &str = "so" ; |
| 305 | pub const EXE_SUFFIX: &str = "" ; |
| 306 | pub const EXE_EXTENSION: &str = "" ; |
| 307 | } |
| 308 | |