#stellar #soroban #transaction #rust

stellar-baselib

A low level Rust library that offers a comprehensive set of functions for reading, writing, hashing, and signing primitive XDR constructs utilized in the Stellar network

26 releases

new 0.3.4 Apr 15, 2024
0.3.3 Mar 29, 2024
0.3.0 Feb 2, 2024
0.2.7 Dec 29, 2023
0.1.5 Jul 20, 2023

#1999 in Magic Beans

Download history 4/week @ 2023-12-29 8/week @ 2024-01-05 1/week @ 2024-01-12 11/week @ 2024-01-19 7/week @ 2024-02-02 4/week @ 2024-02-16 22/week @ 2024-02-23 11/week @ 2024-03-01 2/week @ 2024-03-08 8/week @ 2024-03-15 478/week @ 2024-03-22 243/week @ 2024-03-29 9/week @ 2024-04-05

738 downloads per month
Used in soroban-client

Apache-2.0 and LGPL-3.0+

185KB
4.5K SLoC

Stellar Base Library

Crates.io Crates.io Crates.io

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.3.3"

And this to your code:

use stellar_baselib::*;

How to run tests

cargo test

Coding Best Practices Used

  1. 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)]

  2. All rust code is formatted with cargo fmt. rustfmt.toml defines the expected format.

  3. Function and local variable names follow snake_case. Structs or Enums follow CamelCase and Constants have all capital letters.

Dependencies

~13–21MB
~337K SLoC