34 releases
new 0.4.2 | Nov 20, 2024 |
---|---|
0.3.9 | Nov 18, 2024 |
0.3.4 | Apr 15, 2024 |
0.3.3 | Mar 29, 2024 |
0.1.5 | Jul 20, 2023 |
#380 in Magic Beans
379 downloads per month
Used in soroban-client
225KB
5.5K
SLoC
Stellar Base Library
A library that offers a comprehensive set of functions for reading, writing, hashing, and signing primitive XDR constructs utilized in the Stellar network. it provides a nice abstraction for building and signing transactions
This project is currently in early development and is not yet functional. It is a work in progress and is subject to significant changes, including the addition or removal of features and modifications to its functionality.
Quickstart
Add this to your Cargo.toml:
[dependencies]
stellar-baselib = "0.4.2"
And this to your code:
use stellar_baselib::*;
How to run tests
cargo test
Coding Best Practices Used
-
All Rust code is linted with Clippy with the command
cargo clippy
. If preferred to ignore its advice, do so explicitly:#[allow(clippy::too_many_arguments)]
-
All rust code is formatted with
cargo fmt
. rustfmt.toml defines the expected format. -
Function and local variable names follow snake_case. Structs or Enums follow CamelCase and Constants have all capital letters.
Dependencies
~14–26MB
~360K SLoC