Cargo
windows-rs
Our great sponsors
Cargo | windows-rs | |
---|---|---|
120 | 59 | |
8,342 | 6,620 | |
3.3% | 2.7% | |
9.8 | 9.6 | |
6 days ago | 7 days ago | |
Rust | Rust | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Cargo
-
Announcing Rust 1.61.0
Anybody knows when cargo-add will be distributed in stable cargo? Seems merged already.
-
Nix & Rust - cargo2nix 0.11.0 released
In this case the libary is cargo
- Cargo - The Rust package manager
-
Supply Chain Thoughts
We might not need to reserve all typos. Soon cargo add will be in the stable release and we are hoping to have crates.io start suggesting it along with or in place of the Cargo.toml snippet. cargo-add could check for typos when you add a dependency. We could even check for registry squatting. If all else fails, we can check for security advisories when adding a crate.
-
Understanding the bin, sbin, usr/bin, usr/sbin split (2010)
There is no specific reason for a program that uses the XDG dirs on other unices to not use them on macOS, other than some idea that it's "alien".
You can have ~/.config/. Nothing in macOS prevents you from having it. And so, some programs do. The worst thing that happens is that, instead of having one directoy ~/.foo you now have one directory ~/.config/foo and nothing else in ~/.config. But as soon as you add the second thing that uses ~/.config, you now have two directories in there instead of a second dotdirectory in ~.
It's just that for a bunch of them the XDG path is only used if it exists - e.g. emacs predates the spec, so it uses ~/.emacs.d (and a few others) first.
Cargo doesn't use the XDG paths at all, apparently - https://github.com/rust-lang/cargo/issues/1734. However it also needs a directory for binaries (~/.cargo/bin) and ~/.local/bin isn't actually in the spec at the moment (https://gitlab.freedesktop.org/xdg/xdg-specs/-/issues/14).
-
my first nontrivial rust program compiled!
Can I suggest using rustup (https://rustup.rs/) to manage the rust tool chain and cargo (installed by rustup, but https://github.com/rust-lang/cargo) to manage builds and packages? It makes it much easier to handle projects especially with dependencies. The book (https://doc.rust-lang.org/stable/book/title-page.html) outlines how to use it and some stuff for advancing with rust
-
Hey Rustaceans! Got a question? Ask here! (18/2022)!
The package in question was updated to v3.0 three weeks ago, at the same time as heron itself. Even when I explicitly define the dependency pointing at the git repo (which should find the package subdirectory):
-
Make `cargo doc` exit non-zero if there's warnings
I believe this is the relevant tracking issue
- Rust code quality and vulnerability scan tool
-
Rust from 0 to 80% for JavaScript Developers
Use Cargo.toml instead of package.json. You’ll want to add them manually (instead of using a command like yarn add)
windows-rs
-
What makes a library "pure" rust?
Windows might be possible to construe as "Pure Rust" even under this definition, as the windows crate is Microsoft's direct projection of the Windows API into Rust, with no C headers involved. (In fact, the ABI is even extern "system", not extern "C", so you can pretend it's less C.)
-
Need help with winapi in rust winapi OpenProcess always returning <read memory from 0x674 failed (0 of 1 bytes read)> and error 5 even with the corrent pid
I would recommend to use the official rust projection of the windows api from Microsoft. I had a very good experience using it and you can mostly reference the official Microsoft api documentation for C++ if the Rust docs are lacking in some regard.
-
I'm having a hard time staying committed to learning C++ and OpenGL for game development.
In any case, maybe you want to have a look at this, https://github.com/microsoft/windows-rs/tree/master/crates/samples/direct3d12
-
Win32 API fuzzer, to help develop Wine
Project is written in Rust and rust bindings to Windows API - https://github.com/microsoft/windows-rs
- "I wanted to make a quick thread to summarize the main reasons why many AAA studios (correctly) opt out of the STL"
-
Is rust worth the time and investment to learn?
I know Microsoft is putting effort into providing documentation and API bindings for using Rust on Windows and have used it for a component or two, though what beside one of their Azure components is unclear.
-
Rust Survey 2021 Results
Nope, I was speaking about this,
https://github.com/microsoft/windows-rs/tree/23ff38bbbf46fb5...
Apparently since last November they decided to replace it with another approach, so my information is outdated.
Nope, they are shipping binaries.
https://github.com/microsoft/windows-rs/tree/master/crates/t...
-
Am I the only one who finds Rust to be centered around Linux? Any Windows devs want to share their experience with Rust?
Microsoft is getting behind Rust with things like this guide and these API bindings.
-
How to use C++ HANDLE event
Microsoft created a language agnostic metadata project for the Windows api to auto-generate language bindings for it. The language bindings for Rust are generated with it for example. One big advantage with them is, that instead of a #define, the types such as HANDLE, etc. are indeed real types wrapping a void* (or a int, or whatever). So it's much harder to pass the wrong type and IDEs give much more helpful type information.
What are some alternatives?
winapi-rs - Rust bindings to Windows API
RustCMake - An example project showing usage of CMake with Rust
Clippy - A bunch of lints to catch common mistakes and improve your Rust code
cargo-outdated - A cargo subcommand for displaying when Rust dependencies are out of date
crates.io - Source code for crates.io
opencv-rust - Rust bindings for OpenCV 3 & 4
RustScan - 🤖 The Modern Port Scanner 🤖
cargo-check
rust-analyzer - A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer]
rust-windows-dll - Macro for dynamically loading windows dll functions
cargo-edit - A utility for managing cargo dependencies from the command line.
overflower - A Rust compiler plugin and support library to annotate overflow behavior