Skip to content

Commit

Permalink
Add subspace-data-retrieval crate
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Sep 19, 2024
1 parent 850bdfa commit 9f3afed
Show file tree
Hide file tree
Showing 7 changed files with 803 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Cargo.lock

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

29 changes: 29 additions & 0 deletions shared/subspace-data-retrieval/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[package]
name = "subspace-data-retrieval"
description = "Fetching data from the archived history of the Subspace Distributed Storage Network."
license = "Apache-2.0"
version = "0.1.0"
authors = ["Teor <teor@riseup.net>"]
edition = "2021"
include = [
"/src",
"/Cargo.toml",
"/README.md",
]

[dependencies]
async-trait = "0.1.81"
parity-scale-codec = { version = "3.6.12", features = ["derive"] }
subspace-archiving = { version = "0.1.0", path = "../../crates/subspace-archiving" }
subspace-core-primitives = { version = "0.1.0", path = "../../crates/subspace-core-primitives" }
subspace-erasure-coding = { version = "0.1.0", path = "../../crates/subspace-erasure-coding" }
thiserror = "1.0.63"
tracing = "0.1.40"

[dev-dependencies]

[features]
parallel = [
"subspace-archiving/parallel",
"subspace-core-primitives/parallel",
]
6 changes: 6 additions & 0 deletions shared/subspace-data-retrieval/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Fetching data from the archived history of the Subspace Distributed Storage Network.

This crate currently fetches 3 kinds of archived data:
* pieces, which are the smallest completed data archiving unit,
* sectors, which are a collection of pieces, and
* objects, which are contained in one or more pieces or sectors.
20 changes: 20 additions & 0 deletions shared/subspace-data-retrieval/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright (C) 2024 Subspace Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//! Fetching data from the archived history of the Subspace Distributed Storage Network.
pub mod object_fetcher;
pub mod piece_fetcher;
pub mod segment_fetcher;
Loading

0 comments on commit 9f3afed

Please sign in to comment.