riff
riff
riff | riff | |
---|---|---|
8 | 4 | |
487 | 184 | |
- | - | |
10.0 | 9.5 | |
7 months ago | 10 days ago | |
Rust | Rust | |
Mozilla Public License 2.0 | MIT License |
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.
riff
-
nix-init - Generate Nix packages from URLs with hash prefetching, dependency inference, license detection, and more
Dependency inference for Rust packages using the Riff registry and python projects
-
Generate Nix packages from URLs with hash prefetching and dependency inference
- Dependency inference for Rust packages using the [Riff](https://github.com/DeterminateSystems/riff) registry and python projects
-
An example providing rust toolchain for Linux/macOS using devenv.sh
In this language context specifically, if one wanted to manage their workspace with Nix I would reach for Riff and/or oxalica/rust-overlay first, since they are deliberately more aware of Rust-specific nuance. In the latter's case it has compatibility paths with rustup-toolchain files as well, for allowing your peers who can't or won't adopt Nix to continue to feel like first-class participants in the project. Another alternative I don't have experience with would be nix-community/fenix.
-
devenv: Fast, Declarative, Reproducible, and Composable Developer Environments
Seems to have spiritual overlap with what I understand the goals of Riff to be. Both projects are early stage and not able to cover every language ecosystem yet.
-
An invitation to Rust maintainers from Determinate Systems
No, I wouldn't say that's obvious. Riff doesn't need 100% buy-in from all Rust maintainers because not all Rust projects have external dependencies. But what we've found in our research on the crate ecosystem is that there are particularly busy "nodes" in the dependency graph. Each time a busy "node" with external dependencies adds a few lines to Cargo.toml, that un-breaks a number of downstream project builds. Our internal registry is pretty small but even that has substantially increased the % of projects in which riff run cargo build works without issue. It's an asymptotic approach and we're confident that sufficient awareness could get us pretty darned close.
-
Introducing Riff, a Nix-based tool for automatically providing external dependencies to Rust projects
We currently have a hard-coded [registry](https://github.com/DeterminateSystems/riff/blob/main/registry/registry.json) of some known per-crate dependencies. But the goal is less to hard-code ever more dependencies and more to convince maintainers to explicitly [declare dependencies](https://github.com/determinateSystems/riff#how-to-declare-package-inputs) in their `Cargo.toml` under `package.metadata.riff`. Because Riff uses `cargo metadata` for the entirety of the crate dependency graph, explicit dependency declarations actually benefit downstream crates as well.
riff
-
Introducing Riff, a Nix-based tool for automatically providing external dependencies to Rust projects
There is rust diff app called riff https://github.com/walles/riff
-
A Better Git Diff with Delta
Ohh I've not heard of riff, I'll need to check that out. Thanks for the heads up! https://github.com/walles/riff
-
Is there a modern alternative for diff (like ripgrep for grep)?
I don't know about those features specifically, but lately I've been enjoying riff, and some other options I can think of are
-
diff for single file, showing changes from previous line?
#!/bin/zsh diffj () { # [] # uses: riff: https://github.com/walles/riff emulate -L zsh local lines if [[ ! $1 ]] { # without txt arg, read from stdin lines=(${(f)"$(>&1)"}) } else { lines=(${(f)"$(<$1)"}) } local colored_lines=() lineno=2 while (( lineno<=${#lines} )) { colored_lines+=( ${(f)"$(riff --no-pager =(<<<${lines[$(( lineno-1 ))]}) =(<<<${lines[$lineno]}))"} ) (( lineno+=1 )) } print -rl -- $lines[1] ${(M)colored_lines:#$'\C-[[32m'*} } diffj $@
What are some alternatives?
rust-overlay - Pure and reproducible nix overlay of binary distributed rust toolchains
gh-f - 🔎 the ultimate compact fzf gh extension
difftastic - a structural diff that understands syntax 🟥🟩
archbuilder_iosevka
nixpkgs-pytools - Tools for removing the tedious nature of creating nixpkgs derivations [maintainer=@costrouc]
codevis - Turns your code into one large image
devbox - Instant, easy, and predictable development environments
riff - Riff automatically provides external dependencies for Rust projects, with support for other languages coming soon.
devenv - Pluggable development environments builder that has potential to support any language or framework environment
nurl - Generate Nix fetcher calls from repository URLs [maintainer=@figsoda]