Skip to content

Commit 8a36f0e

Browse files
[sdk-rs] Improve Docs (#7)
1 parent b5dfd90 commit 8a36f0e

14 files changed

Lines changed: 26 additions & 20 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ members = [
66
resolver = "2"
77

88
[workspace.dependencies]
9-
exoware-sdk-rs = { version = "0.0.1", path = "sdk-rs" }
9+
exoware-sdk-rs = { version = "0.0.2", path = "sdk-rs" }
1010
tokio = "1.43.0"
1111
clap = "4.5.18"
1212
tracing = "0.1.41"
@@ -54,4 +54,4 @@ debug = true
5454
[profile.test]
5555
# Although overflow checks are enabled by default in "test", we explicitly
5656
# enable them here for clarity.
57-
overflow-checks = true
57+
overflow-checks = true

examples/sandbox/package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/sandbox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "exoware-sandbox",
33
"private": true,
4-
"version": "0.0.0",
4+
"version": "0.0.2",
55
"type": "module",
66
"scripts": {
77
"postinstall": "npm --prefix ../../sdk-ts install && npm --prefix ../../sdk-ts run build",

interface.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.0
22
info:
33
title: Exoware API
44
description: The canonical interface for all Exoware Components.
5-
version: 0.0.1
5+
version: 0.0.2
66
contact:
77
name: Commonware, Inc.
88
email: support@commonware.xyz
@@ -220,4 +220,4 @@ paths:
220220
'401':
221221
description: Unauthorized
222222
'500':
223-
description: Internal Server Error
223+
description: Internal Server Error

sdk-rs/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "exoware-sdk-rs"
3-
version = "0.0.1"
3+
version = "0.0.2"
44
edition = "2021"
55
publish = true
66
license = "MIT OR Apache-2.0"
@@ -20,4 +20,4 @@ serde_json = { workspace = true }
2020
thiserror = { workspace = true }
2121
tokio = { workspace = true, features = ["full"] }
2222
tokio-tungstenite = { workspace = true, features = ["native-tls"] }
23-
url = { workspace = true }
23+
url = { workspace = true }

sdk-rs/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use reqwest::StatusCode;
22
use thiserror::Error;
33
use tokio_tungstenite::tungstenite;
44

5-
/// The error type for the SDK.
5+
/// Errors that can occur when interacting with the Exoware API.
66
#[derive(Error, Debug)]
77
pub enum Error {
88
/// An error from the underlying `reqwest` HTTP client.

sdk-rs/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Rust SDK for the Exoware API.
22
3-
pub mod error;
3+
mod error;
4+
pub use error::Error;
45
pub mod store;
56
pub mod stream;
67

sdk-rs/src/store.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Persist and retrieve artifacts.
2+
13
use crate::{error::Error, Client as SdkClient};
24
use base64::{engine::general_purpose, Engine as _};
35
use reqwest::header::{HeaderValue, AUTHORIZATION};

sdk-rs/src/stream.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Broadcast realtime data.
2+
13
use crate::{error::Error, Client as SdkClient};
24
use futures_util::{
35
stream::{SplitSink, SplitStream},

0 commit comments

Comments
 (0)