Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
- uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build -p fabric-rs -p relay
run: cargo build -p fabric-resolver -p relay

- name: Run tests
run: cargo test -p fabric-rs
run: cargo test -p fabric-resolver

lint:
name: Lint
Expand All @@ -37,4 +37,4 @@ jobs:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
- run: cargo clippy -p fabric-rs -p relay --all-features -- -D warnings
- run: cargo clippy -p fabric-resolver -p relay --all-features -- -D warnings
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ homepage = "https://spacesprotocol.org"
authors = ["Buffrr <contact@buffrr.dev>"]

[workspace.dependencies]
fabric-rs = { path = "fabric/rust", version = "0.1.1" }
fabric-resolver = { path = "fabric/rust", version = "0.1.1" }
libveritas = { version = "0.1" }
libveritas_testutil = { version = "0.1" }

Expand Down
26 changes: 1 addition & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,7 @@ The protocol is plain HTTP — relays are queryable from browsers, mobile apps,

## Fabric Client

For documentation on using Fabric to resolve handles, publish records, and verify identities, see:

**[spacesprotocol.org/docs](https://spacesprotocol.org/docs)**

### Quick Start

```bash
# Rust
cargo add fabric-rs

# JavaScript / TypeScript
npm install @spacesprotocol/fabric-web

# Go
go get github.com/spacesprotocol/fabric-go

# Python
pip install fabric-resolver

# Kotlin
implementation("org.spacesprotocol:fabric:0.1.0")

# Swift
.package(url: "https://github.com/spacesprotocol/fabric-swift.git", from: "0.1.0")
```
For documentation on using Fabric to resolve handles, publish records, and verify identities, see **[spacesprotocol.org/docs](https://spacesprotocol.org/docs)**.

## Running a Relay

Expand Down
2 changes: 1 addition & 1 deletion fabric/examples/rust/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// <doc:install>
// cargo add fabric-rs
// cargo add fabric-resolver
// </doc:install>

use fabric::client::{Fabric};
Expand Down
4 changes: 2 additions & 2 deletions fabric/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "fabric-rs"
name = "fabric-resolver"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
Expand All @@ -8,7 +8,7 @@ repository.workspace = true
homepage.workspace = true
authors.workspace = true
description = "Client library for the Spaces protocol certificate relay network."
documentation = "https://docs.rs/fabric-rs"
documentation = "https://docs.rs/fabric-resolver"
keywords = ["spaces", "fabric", "dns", "certificates"]
categories = ["network-programming"]

Expand Down
2 changes: 1 addition & 1 deletion relay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ path = "src/main.rs"
[dependencies]
clap = { version = "4", features = ["derive", "env"] }
libveritas = { workspace = true }
resolver = { path = "../fabric/rust", package = "fabric-rs", default-features = false }
resolver = { path = "../fabric/rust", package = "fabric-resolver", default-features = false }
spaces_protocol = { workspace = true }
spaces_client = { workspace = true }
spaces_nums = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion release-plz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ commit_parsers = [

# Published to crates.io
[[package]]
name = "fabric-rs"
name = "fabric-resolver"
publish = true
git_release_enable = true
git_release_latest = false
Expand Down
2 changes: 1 addition & 1 deletion tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ publish = false
[dependencies]
relay = { path = "../relay", features = ["testutil"] }
axum = "0.8"
fabric = { path = "../fabric/rust", package = "fabric-rs" }
fabric = { path = "../fabric/rust", package = "fabric-resolver" }
libveritas = { workspace = true }
libveritas_testutil = { workspace = true }
spaces_protocol = { workspace = true }
Expand Down
Loading