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