migrate to cwtch-imp
This commit is contained in:
parent
14cfe91f9a
commit
31bd6f6d06
|
@ -55,6 +55,16 @@ dependencies = [
|
||||||
"typenum",
|
"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]]
|
[[package]]
|
||||||
name = "darling"
|
name = "darling"
|
||||||
version = "0.13.1"
|
version = "0.13.1"
|
||||||
|
@ -128,15 +138,6 @@ version = "1.0.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
|
checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "imp"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"chrono",
|
|
||||||
"libcwtch",
|
|
||||||
"serde_json",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "itoa"
|
name = "itoa"
|
||||||
version = "1.0.1"
|
version = "1.0.1"
|
||||||
|
@ -151,7 +152,9 @@ checksum = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libcwtch"
|
name = "libcwtch"
|
||||||
version = "0.3.2"
|
version = "0.4.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "1dc37a50eff2066aec054e9c1616f3260a8531b31b5037a10bd0fa127f7f663f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"hex-literal",
|
"hex-literal",
|
||||||
|
@ -333,7 +336,7 @@ name = "update_bot"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"imp",
|
"cwtch-imp",
|
||||||
"libcwtch",
|
"libcwtch",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
]
|
]
|
||||||
|
|
|
@ -6,8 +6,8 @@ edition = "2021"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libcwtch = {path = "../libcwtch-rs"} #"0.3.2"
|
libcwtch = "0.4.0"
|
||||||
imp = {path = "../imp"}
|
cwtch-imp = "0.2.0"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
chrono = "0.4.19"
|
chrono = "0.4.19"
|
||||||
|
|
||||||
|
|
11
src/main.rs
11
src/main.rs
|
@ -5,17 +5,16 @@ use std::fs::read_dir;
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::thread;
|
use std::thread;
|
||||||
|
|
||||||
use ::imp::imp;
|
use cwtch_imp::imp;
|
||||||
use ::imp::behaviour;
|
use cwtch_imp::behaviour;
|
||||||
use ::imp::behaviour::BehaviourBuilder;
|
use cwtch_imp::behaviour::BehaviourBuilder;
|
||||||
use ::imp::behaviour::Behaviour;
|
use cwtch_imp::behaviour::Behaviour;
|
||||||
use ::imp::imp::Imp;
|
use cwtch_imp::imp::Imp;
|
||||||
use chrono::{DateTime, FixedOffset};
|
use chrono::{DateTime, FixedOffset};
|
||||||
use libcwtch;
|
use libcwtch;
|
||||||
use libcwtch::CwtchLib;
|
use libcwtch::CwtchLib;
|
||||||
use libcwtch::event::{ContactIdentity, ConversationID};
|
use libcwtch::event::{ContactIdentity, ConversationID};
|
||||||
use libcwtch::structs::*;
|
use libcwtch::structs::*;
|
||||||
use serde_json;
|
|
||||||
|
|
||||||
const DIST_DIR: &str = "cwtch_dist";
|
const DIST_DIR: &str = "cwtch_dist";
|
||||||
const BOT_HOME: &str = "~/.cwtch/bots/update_bot";
|
const BOT_HOME: &str = "~/.cwtch/bots/update_bot";
|
||||||
|
|
Loading…
Reference in New Issue