3 unstable releases

0.4.0 Apr 27, 2025
0.3.1 Apr 9, 2025
0.3.0 Apr 9, 2025

#452 in Magic Beans

Download history 263/week @ 2025-04-08 16/week @ 2025-04-15 96/week @ 2025-04-22 31/week @ 2025-04-29

406 downloads per month

GPL-3.0 license

50KB
649 lines

Simple SAFE Network API

The goal is to create a high-level Safenet API, that follows best practices and avoids unnecessary complexities. It uses sane defaults, and doesn't need unnecessary additional dependencies – it has "batteries included".

  • Rust API Guidelines, except:
  • Arguments and return types (including errors – E in Result<T, E> C-GOOD-ERR):
    • Primitives and simple structs wherever possible
    • Derived traits: Deserialize, Serialize, Debug (C-SERDE, C-COMMON-TRAITS, C-DEBUG)
    • No need to depend on external crates. Re-export identifiers when neeeded (pub use).
    • (TODO) Don't write to stdout/stderr, just return Result or use logging infrastructure.

Documentation

https://docs.rs/safeapi

Testing

cargo test

Dependencies

~76–115MB
~2M SLoC