Skip to content

Commit

Permalink
Update schema and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
fogodev committed Oct 1, 2024
1 parent bdd26eb commit 60cfafe
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 39 deletions.
39 changes: 19 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ rust-version = "1.80"

[workspace.dependencies]
# First party dependencies
sd-cloud-schema = { git = "https://github.com/spacedriveapp/cloud-services-schema", rev = "fc4b6edabd" }
sd-cloud-schema = { git = "https://github.com/spacedriveapp/cloud-services-schema", rev = "ed37fb537b" }

# Third party dependencies used by one or more of our crates
async-channel = "2.3"
Expand Down
13 changes: 6 additions & 7 deletions core/crates/cloud-services/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,12 @@ uuid = { workspace = true, features = ["serde"] }
zeroize = { workspace = true }

# External dependencies
anyhow = "1.0.86"
iroh-base = { version = "0.25", features = ["key"] }
iroh-net = { version = "0.25", features = ["discovery-local-network", "iroh-relay"] }
paste = "=1.0.15"
postcard = { version = "1.0.8", features = ["use-std"] }
quic-rpc = { version = "0.12.0", features = ["quinn-transport"] }
quinn = { package = "iroh-quinn", version = "0.11" }
anyhow = "1.0.86"
iroh-net = { version = "0.26", features = ["discovery-local-network", "iroh-relay"] }
paste = "=1.0.15"
postcard = { version = "1.0.8", features = ["use-std"] }
quic-rpc = { version = "0.12.1", features = ["quinn-transport"] }
quinn = { package = "iroh-quinn", version = "0.11" }
# Using whatever version of reqwest that reqwest-middleware uses, just putting here to enable some features
reqwest = { version = "0.12", features = ["json", "native-tls-vendored", "stream"] }
reqwest-middleware = { version = "0.3", features = ["json"] }
Expand Down
6 changes: 4 additions & 2 deletions core/crates/cloud-services/src/key_manager/key_store.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use crate::Error;

use sd_cloud_schema::sync::{groups, KeyHash};
use sd_cloud_schema::{
sync::{groups, KeyHash},
NodeId, SecretKey as IrohSecretKey,
};
use sd_crypto::{
cloud::{decrypt, encrypt, secret_key::SecretKey},
primitives::{EncryptedBlock, OneShotNonce, StreamNonce},
Expand All @@ -16,7 +19,6 @@ use std::{
};

use futures::StreamExt;
use iroh_base::key::{NodeId, SecretKey as IrohSecretKey};
use serde::{Deserialize, Serialize};
use tokio::{
fs,
Expand Down
6 changes: 4 additions & 2 deletions core/crates/cloud-services/src/key_manager/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use crate::Error;

use sd_cloud_schema::sync::{groups, KeyHash};
use sd_cloud_schema::{
sync::{groups, KeyHash},
NodeId, SecretKey as IrohSecretKey,
};
use sd_crypto::{cloud::secret_key::SecretKey, CryptoRng};
use sd_utils::error::FileIOError;

Expand All @@ -9,7 +12,6 @@ use std::{
path::{Path, PathBuf},
};

use iroh_base::key::{NodeId, SecretKey as IrohSecretKey};
use tokio::{fs, sync::RwLock};

mod key_store;
Expand Down
1 change: 0 additions & 1 deletion core/crates/cloud-services/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ pub use sync::{
};

// Re-exports
pub use iroh_base::key::{NodeId, SecretKey as IrohSecretKey};
pub use quic_rpc::transport::quinn::QuinnConnection;

// Export URL for the auth server
Expand Down
2 changes: 1 addition & 1 deletion core/crates/cloud-services/src/p2p/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ use sd_cloud_schema::{
devices::{self, Device},
libraries,
sync::groups::GroupWithDevices,
SecretKey as IrohSecretKey,
};
use sd_crypto::{CryptoRng, SeedableRng};

use iroh_base::key::SecretKey as IrohSecretKey;
use iroh_net::{
discovery::{
dns::DnsDiscovery, local_swarm_discovery::LocalSwarmDiscovery, pkarr::dht::DhtDiscovery,
Expand Down
5 changes: 3 additions & 2 deletions core/src/api/cloud/devices.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use crate::api::{Ctx, R};

use sd_core_cloud_services::QuinnConnection;

use sd_cloud_schema::{
auth::AccessToken,
devices::{self, DeviceOS, HardwareModel, PubId},
Expand All @@ -8,9 +10,8 @@ use sd_cloud_schema::{
ClientRegistration, ClientRegistrationFinishParameters, ClientRegistrationFinishResult,
ClientRegistrationStartResult,
},
Client, Service, SpacedriveCipherSuite,
Client, NodeId, Service, SpacedriveCipherSuite,
};
use sd_core_cloud_services::{NodeId, QuinnConnection};
use sd_crypto::{cloud::secret_key::SecretKey, CryptoRng};

use blake3::Hash;
Expand Down
4 changes: 2 additions & 2 deletions core/src/api/cloud/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ use crate::{
Node,
};

use sd_core_cloud_services::{CloudP2P, IrohSecretKey, KeyManager, QuinnConnection, UserResponse};
use sd_core_cloud_services::{CloudP2P, KeyManager, QuinnConnection, UserResponse};

use sd_cloud_schema::{
auth,
error::{ClientSideError, Error},
sync::groups,
users, Client, Service,
users, Client, SecretKey as IrohSecretKey, Service,
};
use sd_crypto::{CryptoRng, SeedableRng};
use sd_utils::error::report_error;
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/core.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 60cfafe

Please sign in to comment.