Re-organize identity types and modules

The new hierarchy should be much more correct, and cleaner:

* `identity` (`Identity`)
* `identity::did` (`Did`)
* `identity::doc` (`Doc`, `Payload`)
  * `identity::doc::id` (`Id`)
* `identity::project` (`Project`)

Signed-off-by: Alexis Sellier <alexis@radicle.xyz>
This commit is contained in:
Alexis Sellier
2022-12-09 22:06:20 +01:00
parent 8735719ecc
commit b37fef9f22
14 changed files with 770 additions and 736 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ use anyhow::{anyhow, Context as _};
use chrono::prelude::*;
use json_color::{Color, Colorizer};
use radicle::identity::project::{Doc, Untrusted};
use radicle::identity::Id;
use radicle::identity::Untrusted;
use radicle::identity::{Doc, Id};
use radicle::storage::{ReadRepository, ReadStorage, WriteStorage};
use crate::terminal as term;
+1 -1
View File
@@ -4,7 +4,7 @@ use std::str::FromStr;
use anyhow::anyhow;
use radicle::identity::project::Id;
use radicle::identity::Id;
use radicle::storage::ReadStorage;
use crate::commands::rad_untrack;
+1 -1
View File
@@ -2,7 +2,7 @@ use std::ffi::OsString;
use anyhow::{anyhow, Context as _};
use radicle::identity::project::Id;
use radicle::identity::Id;
use radicle::node::Handle;
use radicle::prelude::*;
use radicle::storage::WriteStorage;