Bootstrap geth Rust workspace
This commit is contained in:
commit
26f81ff1ef
73 changed files with 4835 additions and 0 deletions
10
crates/geth-document/Cargo.toml
Normal file
10
crates/geth-document/Cargo.toml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[package]
|
||||
name = "geth-document"
|
||||
version = "0.1.0"
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
[dependencies]
|
||||
serde.workspace = true
|
||||
geth-types = { path = "../geth-types" }
|
||||
14
crates/geth-document/src/lib.rs
Normal file
14
crates/geth-document/src/lib.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
use geth_types::{DocumentId, ResourceId};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct DocumentResource {
|
||||
pub id: DocumentId,
|
||||
pub resource: ResourceId,
|
||||
pub name: String,
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn automerge_roadmap() -> &'static str {
|
||||
"future documents use Automerge sync over Iroh with resource-local authorization"
|
||||
}
|
||||
Loading…
Reference in a new issue