core_rs 0.2.0

A library for a core http library for use with coinbase apis
Documentation

core_rs

A Rust library for building clients and utilities for the Coinbase Prime REST APIs.

The canonical source repository is coinbase/core_rs. The former coinbase-samples/core_rs repository is deprecated.

Overview

The core_rs crate provides foundational HTTP, authentication, and error handling utilities for interacting with Coinbase Prime APIs. It is designed to be used as a building block for higher-level SDKs and applications.

Features

  • HTTP client abstraction (async, based on reqwest)
  • Typed request/response handling
  • Credential management
  • Error handling with thiserror
  • Utilities for HTTP methods, headers, and status codes

Installation

Add the library from crates.io:

cargo add core_rs

Or add it to your Cargo.toml:

[dependencies]
core_rs = "0.2"

Setup

1. Clone the Repository

git clone git@github.com:coinbase/core_rs.git
cd core_rs

2. Build the Library

To build the library, ensure you have Rust installed (Rust 1.61+ recommended):

cargo build

License

This project is licensed under the Apache-2.0 license.