Trying to compile rust library on Windows

This page summarizes the projects mentioned and recommended in the original post on /r/rust

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. community

    Central repository for issues and recipes (by bincrafters)

    The missing symbols look very much like these: https://github.com/bincrafters/community/issues/860 Do you have the Crypt32 lib in the list of libraries to be linked?

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. cross

    “Zero setup” cross compilation and “cross testing” of Rust crates

    Why not use cross? It manages all these dependencies in containers, no effort needed on your part.

  4. Warframe-OCR

    A relic inventory recognition system for Warframe, based on experimental Rust bindings to Tesseract OCR. Supports detection in real-time. Very much WIP.

    Yes, you can link them statically. Here's a Python script I wrote to install and build a Python module in Rust. It will install the required development libraries on Linux and build a static build of tesseract on Windows (it also downloads the LLVM based clang compiler, I forgot why). Then it set up two environment variables VCPKG_ROOT to discover the tesseract library and RUSTFLAGS -Ctarget-feature=+crt-static (this forces the vpkg crate to link tesseract:x64-windows-static and not the dynamic version).

  5. winapi-rs

    Rust bindings to Windows API

    Is winapi = { version = "0.3.9", features = ["winuser"] } in [target.'cfg(windows)'.dependencies]? All the missing symbols are functions in module winapi::um::wincrypt (see https://docs.rs/winapi/0.3.9/winapi/um/wincrypt/index.html#functions ) and the crate's Git repo at https://github.com/retep998/winapi-rs contains all the import libs and export defs for the corresponding DLLs in directory x86_64. As crypt32.dll ships with windows by default, I think this is all that would be needed for building on a windows PC.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Improving Interoperability Between Rust and C++

    7 projects | news.ycombinator.com | 5 Feb 2024
  • I seen people say that () is similar to void in C. But what is similar to void*?

    1 project | /r/rust | 27 Mar 2023
  • Kernel Headers for Windows could soon make it into windows-rs

    5 projects | /r/rust | 22 Feb 2023
  • More malware is shifting to Rust

    4 projects | /r/rust | 29 Jan 2022
  • Noob question - Can I see what my used cargo crate has inside?

    1 project | /r/rust | 4 Aug 2021

Did you know that Rust is
the 5th most popular programming language
based on number of references?