| 1 |
use implibrust-analyzer cargo implib 0.3.3 crate/::{Flavorrust-analyzer cargo implib 0.3.3 Flavor#, ImportLibraryrust-analyzer cargo implib 0.3.3 ImportLibrary#, MachineTyperust-analyzer cargo implib 0.3.3 MachineType#}; |
| 2 |
|
| 3 |
#[cfg(feature = "msvc")] |
| 4 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 5 |
fn test_import_library_msvc_amd64rust-analyzer cargo implib 0.3.3 test_import_library_msvc_amd64().() { |
| 6 |
let import_lib = ImportLibraryrust-analyzer cargo implib 0.3.3 ImportLibrary#::newrust-analyzer cargo implib 0.3.3 impl#[ImportLibrary]new().( |
| 7 |
include_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/include_str!!("python39.def"), |
| 8 |
MachineTyperust-analyzer cargo implib 0.3.3 MachineType#::AMD64rust-analyzer cargo implib 0.3.3 MachineType#AMD64#, |
| 9 |
Flavorrust-analyzer cargo implib 0.3.3 Flavor#::Msvcrust-analyzer cargo implib 0.3.3 Flavor#Msvc#, |
| 10 |
) |
| 11 |
.unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| •12 |
let mut lib = stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fsrust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/::Filerust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/File#::createrust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/impl#[File]create().(stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/::Pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/Path#::newrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]new().(stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::envrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/env!!("CARGO_TARGET_TMPDIR")).joinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]join().("amd64-python39.lib")).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 13 |
import_lib.write_torust-analyzer cargo implib 0.3.3 impl#[ImportLibrary]write_to().(&mut lib).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 14 |
} |
| 15 |
|
| •16 |
#[cfg(feature = "msvc")] |
| 17 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 18 |
fn test_import_library_msvc_i386rust-analyzer cargo implib 0.3.3 test_import_library_msvc_i386().() { |
| 19 |
let import_lib = ImportLibraryrust-analyzer cargo implib 0.3.3 ImportLibrary#::newrust-analyzer cargo implib 0.3.3 impl#[ImportLibrary]new().( |
| 20 |
include_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/include_str!!("python39.def"), |
| 21 |
MachineTyperust-analyzer cargo implib 0.3.3 MachineType#::I386rust-analyzer cargo implib 0.3.3 MachineType#I386#, |
| 22 |
Flavorrust-analyzer cargo implib 0.3.3 Flavor#::Msvcrust-analyzer cargo implib 0.3.3 Flavor#Msvc#, |
| 23 |
) |
| 24 |
.unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| •25 |
let mut lib = stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fsrust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/::Filerust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/File#::createrust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/impl#[File]create().(stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/::Pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/Path#::newrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]new().(stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::envrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/env!!("CARGO_TARGET_TMPDIR")).joinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]join().("i386-python39.lib")).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 26 |
import_lib.write_torust-analyzer cargo implib 0.3.3 impl#[ImportLibrary]write_to().(&mut lib).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 27 |
} |
| 28 |
|
| 29 |
#[cfg(feature = "gnu")] |
| 30 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 31 |
fn test_import_library_gnu_amd64rust-analyzer cargo implib 0.3.3 test_import_library_gnu_amd64().() { |
| 32 |
let import_lib = ImportLibraryrust-analyzer cargo implib 0.3.3 ImportLibrary#::newrust-analyzer cargo implib 0.3.3 impl#[ImportLibrary]new().( |
| 33 |
include_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/include_str!!("python39.def"), |
| 34 |
MachineTyperust-analyzer cargo implib 0.3.3 MachineType#::AMD64rust-analyzer cargo implib 0.3.3 MachineType#AMD64#, |
| 35 |
Flavorrust-analyzer cargo implib 0.3.3 Flavor#::Gnurust-analyzer cargo implib 0.3.3 Flavor#Gnu#, |
| 36 |
) |
| 37 |
.unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| •38 |
let mut lib = stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fsrust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/::Filerust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/File#::createrust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/impl#[File]create().(stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/::Pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/Path#::newrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]new().(stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::envrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/env!!("CARGO_TARGET_TMPDIR")).joinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]join().("amd64-python39.dll.a")).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 39 |
import_lib.write_torust-analyzer cargo implib 0.3.3 impl#[ImportLibrary]write_to().(&mut lib).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 40 |
} |
| 41 |
|
| 42 |
#[cfg(feature = "gnu")] |
| 43 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 44 |
fn test_import_library_gnu_i386rust-analyzer cargo implib 0.3.3 test_import_library_gnu_i386().() { |
| 45 |
let import_lib = |
| 46 |
ImportLibraryrust-analyzer cargo implib 0.3.3 ImportLibrary#::newrust-analyzer cargo implib 0.3.3 impl#[ImportLibrary]new().(include_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/include_str!!("python39.def"), MachineTyperust-analyzer cargo implib 0.3.3 MachineType#::I386rust-analyzer cargo implib 0.3.3 MachineType#I386#, Flavorrust-analyzer cargo implib 0.3.3 Flavor#::Gnurust-analyzer cargo implib 0.3.3 Flavor#Gnu#).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| •47 |
let mut lib = stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fsrust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/::Filerust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/File#::createrust-analyzer cargo std https://github.com/rust-lang/rust/library/std fs/impl#[File]create().(stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/::Pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/Path#::newrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]new().(stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::envrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/env!!("CARGO_TARGET_TMPDIR")).joinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]join().("i386-python39.dll.a")).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 48 |
import_lib.write_torust-analyzer cargo implib 0.3.3 impl#[ImportLibrary]write_to().(&mut lib).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 49 |
} |