dirs-rs
aoc-runner-derive
dirs-rs | aoc-runner-derive | |
---|---|---|
3 | 1 | |
608 | 0 | |
3.1% | - | |
2.9 | 0.0 | |
about 1 month ago | 5 months ago | |
Rust | Rust | |
Apache License 2.0 | - |
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.
dirs-rs
-
Why the Windows Registry sucks technically (2010)
There are several libraries that handle directory for you in the appropriate OS-specific manner.
One Rust example being https://github.com/dirs-dev/dirs-rs
> The library provides the location of these directories by leveraging the mechanisms defined by
> the XDG base directory and the XDG user directory specifications on Linux and Redox
> the Known Folder API on Windows
> the Standard Directories guidelines on macOS
-
Rust 1.62.0 pre-release testing
Yes. We have dirs for that, folks!
-
Hey Rustaceans! Got an easy question? Ask here (5/2021)!
I'm using dirs to get the home directory. However, dirs::home_dir() returns an Option, which I can't quite grasp how to extract the string from, and the repo doesn't have examples for it either.
aoc-runner-derive
-
Hey Rustaceans! Got an easy question? Ask here (5/2021)!
I don't think that a way do this is actually guaranteed to work, see Crate local state for procedural macros? Issue #44034. That said there are crates that do this anyway since currently rustc expands macros from top to bottom in source files and doesn't cache the result so the proc macros are always re-run each time the code is compiled. Two crates that rely on this by using global variables in their procedural macro code are: enum_dispatch and aoc-runner (see here).
What are some alternatives?
libsqlfs - a library that implements a POSIX style filesystem on top of an SQLite database
tail - My implementation of the tail tool to (continuously) read the tail end of a file. See https://en.wikipedia.org/wiki/Tail_(Unix)
actix-web - Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.
nix-1p - A (more or less) one page introduction to Nix, the language.
rust-sdl2 - SDL2 bindings for Rust
wedge_of_existence - an ascii game set in a modern world
nix-book - Nix documentation – centralized community online learning resource for Nix
rust-peg - Parsing Expression Grammar (PEG) parser generator for Rust
sqlfs - Sqlite FUSE filesystem with sqlcipher support
rfcs - RFCs for changes to Rust