30 stable releases (7 major)

new 7.8.4 Nov 2, 2024
7.8.2 Oct 31, 2024
6.1.0 Oct 6, 2024
6.0.0 Jun 28, 2024
0.6.1 Mar 4, 2021

#13 in #error-management

Download history 165/week @ 2024-07-13 117/week @ 2024-07-20 223/week @ 2024-07-27 157/week @ 2024-08-03 242/week @ 2024-08-10 140/week @ 2024-08-17 221/week @ 2024-08-24 345/week @ 2024-08-31 148/week @ 2024-09-07 151/week @ 2024-09-14 464/week @ 2024-09-21 198/week @ 2024-09-28 1450/week @ 2024-10-05 1528/week @ 2024-10-12 430/week @ 2024-10-19 685/week @ 2024-10-26

4,117 downloads per month
Used in 35 crates (31 directly)

MIT license

62KB
1.5K SLoC

GitHub top language Rust Latest Version Rust Documentation Minimum rustc version

ruc

Rust Util Collection, components included:

  • Chained error management
  • Local command execution based on rust standard library
    • required features: cmd
  • Remote command execution based on the SSH protocol
    • required features: ssh
  • Interprocess Communication Based on Unix Abstract Sockets
    • required features: uau
    • only available on various Linux platforms
    • the built-in functions only support the UDP protocol
  • Algorithm operations
    • required features: algo
      • rand, hash, ecc sigature, etc.
  • Encode/Decode operations
    • required features: ende
      • hex, base64
      • zlib compress, zlib uncompress
      • json, message-pack, serde transcode
      • and so on ...
  • ...

In addition, there is a feature named "full", using it will enable all functional features.

Documentations

# cargo doc --all-features --open
make doc

Links to static documentations:

ENV VARs

  • $RUC_SSH_TIMEOUT: ssh process timeout
    • Default to 20s
    • The max value is 300s(5 minutes)
  • $RUC_HTTP_TIMEOUT: http process timeout
    • Default to 3s
    • The max value is 255s(u8::MAX)

Gratitude

Thanks to all the people who already contributed!

Dependencies

~0.7–13MB
~163K SLoC