Feat/http server adapt (#1754)

This commit is contained in:
Nathan.fooo
2023-01-30 11:11:19 +08:00
committed by GitHub
parent 000569a836
commit 0d8adaa921
301 changed files with 2181 additions and 1768 deletions

View File

@ -8,7 +8,6 @@ edition = "2018"
[dependencies]
pin-project = "1.0"
futures-core = { version = "0.3", default-features = false }
paste = "1"
futures-channel = "0.3.15"
futures = "0.3.15"
futures-util = "0.3.15"
@ -16,16 +15,12 @@ bytes = {version = "1.0", features = ["serde"]}
tokio = { version = "1", features = ["full"] }
nanoid = "0.4.0"
log = "0.4.14"
env_logger = "0.8"
serde_with = "1.9.4"
thread-id = "3.3.0"
lazy_static = "1.4.0"
dyn-clone = "1.0"
derivative = "2.2.0"
serde_json = {version = "1.0", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
serde_repr = { version = "0.1", optional = true }
dashmap = "5"
#optional crate
bincode = { version = "1.3", optional = true}

View File

@ -8,8 +8,6 @@ pub async fn hello() -> String {
#[tokio::test]
async fn test() {
env_logger::init();
let event = "1";
let runtime = tokio_default_runtime().unwrap();
let dispatch = Arc::new(AFPluginDispatcher::construct(runtime, || {