11 releases (6 breaking)

new 0.19.1 Dec 12, 2024
0.19.0 Dec 8, 2024
0.18.0 Nov 24, 2024
0.17.0 Nov 5, 2024
0.13.6 May 20, 2024

#68 in Configuration

Download history 226/week @ 2024-09-27 26/week @ 2024-10-04 8/week @ 2024-10-11 3/week @ 2024-10-18 2/week @ 2024-10-25 116/week @ 2024-11-01 56/week @ 2024-11-08 10/week @ 2024-11-15 204/week @ 2024-11-22 56/week @ 2024-11-29 227/week @ 2024-12-06

500 downloads per month

MIT/Apache

340KB
7.5K SLoC

Sprinkles Library

Build & Test Crates.io Version docs.rs dependency status Crates.io Total Downloads Crates.io License Crates.io MSRV

View the latest documentation on Github Pages (the docs.rs builds are currently failing).

[!WARNING] This library is currently unstable, and is not recommended for use in production. There will be breaking changes in the future, and the API may change.

Sprinkles is a library for interacting with Scoop, the Windows package manager.

It provides a high-level API for interacting with Scoop, such as installing, updating, and removing packages.

Reporting Issues

Please, please, please check the FAQs, before you report an issue.

If you have a question, please ask it on the discussions page.

If you have a bug report, feature request, or other issue, then open an issue.

Example Usage

If you want a more in depth example of how to use the library, check out the sfsu project.

use sprinkles::contexts::{User, ScoopContext};

let ctx = User::new().unwrap();

let apps = ctx.installed_apps().unwrap();

println!("You have {} apps installed", apps.len());

Running Benchmarks

The benchmarks rely on the large-file.bin file, which should be a large amount (>100MB) of random data.

To generate the file, run the following command (feel free to change the size to your liking):

Windows

Install genfile and run the following command:

genfile --size 512mb -o benches/large-file.bin --random

Linux

dd if=/dev/urandom of=benches/large-file.bin bs=1M count=512

Supported Platforms

Windows is the only supported platform at the moment, and this will likely not change, given that Scoop is only available on Windows.

Minimum Supported Rust Version

The MSRV may change in the future, but will only ever be increased over the course of a major version.

The MSRV is set for the target x86_64-pc-windows-msvc, and is checked for all supported platforms in the CI.

Made with 💗 by Juliette Cordor

Dependencies

~185MB
~3.5M SLoC