mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Bump heartwood crates to latest versions
This commit is contained in:
@@ -10,6 +10,7 @@ use radicle::identity::doc::PayloadId;
|
||||
use radicle::identity::{DocAt, RepoId};
|
||||
use radicle::issue::cache::Issues as _;
|
||||
use radicle::node::routing::Store;
|
||||
use radicle::node::NodeId;
|
||||
use radicle::patch::cache::Patches as _;
|
||||
use radicle::storage::git::Repository;
|
||||
use radicle::storage::{ReadRepository, ReadStorage};
|
||||
@@ -43,7 +44,7 @@ impl Context {
|
||||
}
|
||||
|
||||
#[allow(clippy::result_large_err)]
|
||||
pub fn repo_info<R: ReadRepository + radicle::cob::Store>(
|
||||
pub fn repo_info<R: ReadRepository + radicle::cob::Store<Namespace = NodeId>>(
|
||||
&self,
|
||||
repo: &R,
|
||||
doc: DocAt,
|
||||
|
||||
@@ -12,11 +12,12 @@ use tower::ServiceExt;
|
||||
|
||||
use radicle::cob::migrate;
|
||||
use radicle::cob::patch::MergeTarget;
|
||||
use radicle::crypto::signature::Signer;
|
||||
use radicle::crypto::ssh::Keystore;
|
||||
use radicle::crypto::test::signer::MockSigner;
|
||||
use radicle::crypto::{KeyPair, Seed, Signer};
|
||||
use radicle::crypto::{KeyPair, Seed, Signature};
|
||||
use radicle::git::{raw as git2, RefString};
|
||||
use radicle::identity::{project, Visibility};
|
||||
use radicle::node::device::Device;
|
||||
use radicle::node::{Features, Timestamp, UserAgent};
|
||||
use radicle::profile::{env, Home};
|
||||
use radicle::storage::ReadStorage;
|
||||
@@ -85,14 +86,18 @@ pub fn profile(home: &Path, seed: [u8; 32]) -> radicle::Profile {
|
||||
pub fn seed(dir: &Path) -> Context {
|
||||
let home = dir.join("radicle");
|
||||
let profile = profile(home.as_path(), [0xff; 32]);
|
||||
let signer = Box::new(MockSigner::from_seed([0xff; 32]));
|
||||
let signer = Device::mock_from_seed([0xff; 32]);
|
||||
|
||||
crate::logger::init().ok();
|
||||
|
||||
seed_with_signer(dir, profile, &signer)
|
||||
}
|
||||
|
||||
fn seed_with_signer<G: Signer>(dir: &Path, profile: radicle::Profile, signer: &G) -> Context {
|
||||
fn seed_with_signer<G: Signer<Signature>>(
|
||||
dir: &Path,
|
||||
profile: radicle::Profile,
|
||||
signer: &Device<G>,
|
||||
) -> Context {
|
||||
const DEFAULT_BRANCH: &str = "master";
|
||||
|
||||
crate::logger::init().ok();
|
||||
|
||||
Reference in New Issue
Block a user