Skip to content

Commit

Permalink
Migrate to auxon-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
jonlamb-gh committed Apr 5, 2024
1 parent 96309c2 commit eff3b29
Show file tree
Hide file tree
Showing 8 changed files with 157 additions and 120 deletions.
214 changes: 124 additions & 90 deletions Cargo.lock

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

15 changes: 6 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,17 @@ derive_more = "0.99"
url = "2"
uuid = { version = "1", features = ["v4", "serde"] }
humantime = "2"
serde = { version = "1.0", features=["derive"] }
serde = { version = "1.0", features = ["derive"] }
serde_with = "3.6"
probe-rs = "0.23"
defmt-decoder = { git = "https://github.com/auxoncorp/defmt.git", branch = "decoder-changes", features=["unstable"] }
defmt-parser = { git = "https://github.com/auxoncorp/defmt.git", branch = "decoder-changes", features=["unstable"] }
defmt-decoder = { git = "https://github.com/auxoncorp/defmt.git", branch = "decoder-changes", features = ["unstable"] }
defmt-parser = { git = "https://github.com/auxoncorp/defmt.git", branch = "decoder-changes", features = ["unstable"] }
goblin = "0.8"
clap = { version = "4.5", features = ["derive", "env", "color"] }
clap-stdin = "0.4"
ctrlc = { version = "3.4", features=["termination"] }
ctrlc = { version = "3.4", features = ["termination"] }
exitcode = "1"
modality-api = "0.2"
modality-ingest-client = "0.3"
modality-ingest-protocol = "0.2"
modality-reflector-config = "0.3"
modality-auth-token = "0.2"
auxon-sdk = { version = "1.2", features = ["modality"] }

[dev-dependencies]
tempfile = "3.10"
Expand All @@ -57,3 +53,4 @@ strip="debuginfo"

[patch.crates-io]
nusb = { git = "https://github.com/jonlamb-gh/nusb.git", branch = "update-ioctl-code" }
auxon-sdk = { git = "https://github.com/auxoncorp/auxon-sdk.git", branch = "client-utils" }
11 changes: 6 additions & 5 deletions src/client.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
use crate::Error;
use modality_api::{AttrVal, TimelineId};
use modality_ingest_client::dynamic::DynamicIngestClient;
use modality_ingest_client::{IngestClient, ReadyState};
use modality_ingest_protocol::InternedAttrKey;
use auxon_sdk::{
api::{AttrVal, TimelineId},
ingest_client::{dynamic::DynamicIngestClient, IngestClient, ReadyState},
ingest_protocol::InternedAttrKey,
};
use std::collections::BTreeMap;

pub struct Client {
timeline_keys: BTreeMap<String, InternedAttrKey>,
event_keys: BTreeMap<String, InternedAttrKey>,
inner: DynamicIngestClient,
pub(crate) inner: DynamicIngestClient,
}

impl Client {
Expand Down
Loading

0 comments on commit eff3b29

Please sign in to comment.