Rename `doc` module to `project`

Signed-off-by: Alexis Sellier <alexis@radicle.xyz>
This commit is contained in:
Alexis Sellier 2022-09-22 16:02:42 +02:00
parent e382bc4eb9
commit 62408234cf
No known key found for this signature in database
6 changed files with 7 additions and 7 deletions

View File

@ -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 {

View File

@ -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}")]

View File

@ -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,
}

View File

@ -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;

View File

@ -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::*;