migrate to cwtch-imp

This commit is contained in:
Dan Ballard 2022-07-31 08:30:30 -07:00
parent 14cfe91f9a
commit 31bd6f6d06
3 changed files with 21 additions and 19 deletions

25
Cargo.lock generated
View File

@ -55,6 +55,16 @@ dependencies = [
"typenum",
]
[[package]]
name = "cwtch-imp"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43f38e95ddcc77d53169fcc8fe0b6a7ba87bc6e0c5e5e70f0d9838ee9e1ecd72"
dependencies = [
"chrono",
"libcwtch",
]
[[package]]
name = "darling"
version = "0.13.1"
@ -128,15 +138,6 @@ version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
[[package]]
name = "imp"
version = "0.1.0"
dependencies = [
"chrono",
"libcwtch",
"serde_json",
]
[[package]]
name = "itoa"
version = "1.0.1"
@ -151,7 +152,9 @@ checksum = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125"
[[package]]
name = "libcwtch"
version = "0.3.2"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1dc37a50eff2066aec054e9c1616f3260a8531b31b5037a10bd0fa127f7f663f"
dependencies = [
"chrono",
"hex-literal",
@ -333,7 +336,7 @@ name = "update_bot"
version = "0.1.0"
dependencies = [
"chrono",
"imp",
"cwtch-imp",
"libcwtch",
"serde_json",
]

View File

@ -6,8 +6,8 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
libcwtch = {path = "../libcwtch-rs"} #"0.3.2"
imp = {path = "../imp"}
libcwtch = "0.4.0"
cwtch-imp = "0.2.0"
serde_json = "1.0"
chrono = "0.4.19"

View File

@ -5,17 +5,16 @@ use std::fs::read_dir;
use std::path::{Path, PathBuf};
use std::thread;
use ::imp::imp;
use ::imp::behaviour;
use ::imp::behaviour::BehaviourBuilder;
use ::imp::behaviour::Behaviour;
use ::imp::imp::Imp;
use cwtch_imp::imp;
use cwtch_imp::behaviour;
use cwtch_imp::behaviour::BehaviourBuilder;
use cwtch_imp::behaviour::Behaviour;
use cwtch_imp::imp::Imp;
use chrono::{DateTime, FixedOffset};
use libcwtch;
use libcwtch::CwtchLib;
use libcwtch::event::{ContactIdentity, ConversationID};
use libcwtch::structs::*;
use serde_json;
const DIST_DIR: &str = "cwtch_dist";
const BOT_HOME: &str = "~/.cwtch/bots/update_bot";