ruc 11.0.2

Rust Util Collections
docs.rs failed to build ruc-11.0.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: ruc-11.0.1

GitHub top language Rust Latest Version Rust Documentation Minimum rustc version

ruc

Rust Util Collections, components included:

  • Chained error management
  • Local command execution based on the Rust standard library
    • required features: cmd
  • Remote command execution and SFTP file transfer over SSH
    • required features: ssh
  • Interprocess communication based on Unix abstract sockets
    • required features: uau
    • Linux only
    • UDP only
  • Algorithm operations
    • required features: algo
      • random generation, Keccak-256/SHA-256 hashing
      • AES-256-GCM encryption, ED25519 signatures
  • HTTP client (blocking GET/POST)
    • required features: http
    • plain HTTP only — this crate enables no TLS backend
  • Encode/Decode operations
    • required features: ende
      • hex, base64
      • zlib/zstd compression
      • JSON, MessagePack, and JSON↔MessagePack transcoding
  • ...

In addition, the full feature enables all functional features above (the output-format features ansi and compact are separate).

Documentation

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

Static documentation:

ENV VARs

  • $RUC_LOG_LEVEL: log verbosity, INFO(default) or ERROR
    • any other value falls back to INFO
    • INFO lets info!/info_omit! print; ERROR suppresses them
    • read once at first use, later changes have no effect
  • $RUC_SSH_TIMEOUT: SSH timeout, in seconds
    • bounds connect, handshake/authentication, and idle output draining
    • Default to 20s
    • The max value is 300s(5 minutes); larger values are clamped to 300
    • Unparsable values fall back to the default(20s)
  • $RUC_HTTP_TIMEOUT: HTTP request timeout, in seconds
    • Default to 3s
    • The max value is 255s(u8::MAX)
    • Unparsable or out-of-range values fall back to the default(3s)
    • Read once at the first request, later changes have no effect

Gratitude

Thanks to all the people who already contributed!