mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 00:00:37 +08:00
Rename doc module to project
Signed-off-by: Alexis Sellier <alexis@radicle.xyz>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
pub mod doc;
|
||||
pub mod project;
|
||||
|
||||
use std::ops::Deref;
|
||||
use std::{ffi::OsString, fmt, str::FromStr};
|
||||
@@ -11,7 +11,7 @@ use crate::git;
|
||||
use crate::serde_ext;
|
||||
|
||||
pub use crypto::PublicKey;
|
||||
pub use doc::{Delegate, Doc};
|
||||
pub use project::{Delegate, Doc};
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum IdError {
|
||||
|
||||
+2
-2
@@ -17,9 +17,9 @@ pub const REMOTE_NAME: &str = "rad";
|
||||
#[derive(Error, Debug)]
|
||||
pub enum InitError {
|
||||
#[error("doc: {0}")]
|
||||
Doc(#[from] identity::doc::Error),
|
||||
Doc(#[from] identity::project::Error),
|
||||
#[error("doc: {0}")]
|
||||
DocVerification(#[from] identity::doc::VerificationError),
|
||||
DocVerification(#[from] identity::project::VerificationError),
|
||||
#[error("git: {0}")]
|
||||
Git(#[from] git2::Error),
|
||||
#[error("i/o: {0}")]
|
||||
|
||||
@@ -43,7 +43,7 @@ pub enum Error {
|
||||
#[error("i/o: {0}")]
|
||||
Io(#[from] io::Error),
|
||||
#[error("doc: {0}")]
|
||||
Doc(#[from] identity::doc::Error),
|
||||
Doc(#[from] identity::project::Error),
|
||||
#[error("invalid repository head")]
|
||||
InvalidHead,
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ use crate::crypto;
|
||||
use crate::crypto::{KeyPair, PublicKey, Seed, Signer, Unverified, Verified};
|
||||
use crate::git;
|
||||
use crate::hash;
|
||||
use crate::identity::{doc::Delegate, doc::Doc, Did, Id};
|
||||
use crate::identity::{project::Delegate, project::Doc, Did, Id};
|
||||
use crate::storage;
|
||||
use crate::storage::refs::{Refs, SignedRefs};
|
||||
use crate::test::signer::MockSigner;
|
||||
|
||||
@@ -4,7 +4,7 @@ use std::path::{Path, PathBuf};
|
||||
use git_url::Url;
|
||||
|
||||
use crate::crypto::{Signer, Verified};
|
||||
use crate::identity::doc::Doc;
|
||||
use crate::identity::project::Doc;
|
||||
use crate::identity::Id;
|
||||
|
||||
pub use crate::storage::*;
|
||||
|
||||
Reference in New Issue
Block a user