Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
dirs-rs
a low-level library that provides config/cache/data paths, following the respective conventions on Linux, macOS and Windows
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
tail
My implementation of the tail tool to (continuously) read the tail end of a file. See https://en.wikipedia.org/wiki/Tail_(Unix) (by LeCyberDucky)
Unconstrained constant generics are not allowed. https://github.com/rust-lang/rust/issues/68366 There must be some call somewhere in your program that actually binds the const value for it to resolve at compile-time.
It is an official part of the Rust org. It was intended as a place for new projects to live while they are in a "trial" period before graduating to the rust-lang org (see RFC 1242). It is no longer being used for new projects, and most projects have either moved to rust-lang, or have been deprecated. The rest haven't been moved just due to time constraints.
Hi, I haven't used this framework before, but actix-web seems to have the features you're looking for.
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.
I'm confused about this part in sdl2's readme:
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).
The peg crate has a resolved issue about this.
I've been using those today in this small project: https://github.com/LeCyberDucky/tail/blob/main/src/main.rs
The currently broken (although the latest commit should work) version is on my github, and the re-work is over here! (as well as a graveyard of unfinished little projects)