#tui #rest-http #slumber #http #yaml #terminal #rest

slumber_util

Common utilities used across several subcrates of Slumber. Not for external use.

2 stable releases

Uses new Rust 2024

new 3.1.1 Apr 23, 2025
3.1.0 Apr 4, 2025

#3 in #slumber

Download history 174/week @ 2025-04-02 32/week @ 2025-04-09 34/week @ 2025-04-16

240 downloads per month
Used in 6 crates

MIT license

15KB
237 lines

Common utilities that aren't specific to one other subcrate and are unlikely to change frequently. The main purpose of this is to pull logic out of the core crate, because that one changes a lot and requires constant recompilation.

This crate is not semver compliant. The version is locked to the root slumber crate version. If you choose to depend directly on this crate, you do so at your own risk of breakage.


Slumber

Test CI crates.io Sponsor

Slumber example

Slumber is a TUI (terminal user interface) HTTP client. Define, execute, and share configurable HTTP requests. Slumber is built on some basic principles:

  • It will remain free to use forever
  • You own your data: all configuration and data is stored locally and can be checked into version control
  • It will never be enshittified

Features

Examples

Slumber is based around collections. A collection is a group of request recipes, which are templates for the requests you want to run. A simple collection could be:

# slumber.yml
requests:
  get: !request
    method: GET
    url: https://httpbin.org/get

  post: !request
    method: POST
    url: https://httpbin.org/post
    body: !json { "id": 3, "name": "Slumber" }

Create this file, then run the TUI with slumber.

For a more extensive example, see the docs.

Dependencies

~2–13MB
~107K SLoC