Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddOnTop committed May 18, 2024
1 parent a66340b commit 9b4361f
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

6 changes: 5 additions & 1 deletion tailcall-wasm/src/builder.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
use std::sync::Arc;

use tailcall::{AppContext, Blueprint, ConfigReader, EndpointSet, TargetRuntime};
use tailcall::core::blueprint::Blueprint;
use tailcall::core::config::reader::ConfigReader;
use tailcall::core::http::AppContext;
use tailcall::core::rest::EndpointSet;
use tailcall::core::runtime::TargetRuntime;
use wasm_bindgen::prelude::wasm_bindgen;
use wasm_bindgen::JsValue;

Expand Down
2 changes: 1 addition & 1 deletion tailcall-wasm/src/env.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::borrow::Cow;

use dashmap::DashMap;
use tailcall::EnvIO;
use tailcall::core::EnvIO;

pub struct WasmEnv {
env: DashMap<String, String>,
Expand Down
2 changes: 1 addition & 1 deletion tailcall-wasm/src/file.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use anyhow::anyhow;
use dashmap::DashMap;
use tailcall::FileIO;
use tailcall::core::FileIO;

pub struct WasmFile {
files: DashMap<String, String>,
Expand Down
3 changes: 2 additions & 1 deletion tailcall-wasm/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ use anyhow::Result;
use async_std::task::spawn_local;
use hyper::body::Bytes;
use reqwest::Client;
use tailcall::{HttpIO, Response};
use tailcall::core::http::Response;
use tailcall::core::HttpIO;

#[derive(Clone)]
pub struct WasmHttp {
Expand Down
3 changes: 2 additions & 1 deletion tailcall-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ use std::panic;
use std::sync::Arc;

use serde_json::json;
use tailcall::{handle_request, AppContext, GraphQLRequest};
use tailcall::core::async_graphql_hyper::GraphQLRequest;
use tailcall::core::http::{handle_request, AppContext};
use wasm_bindgen::prelude::wasm_bindgen;
use wasm_bindgen::JsValue;

Expand Down
4 changes: 3 additions & 1 deletion tailcall-wasm/src/runtime.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
use std::sync::Arc;

use async_graphql_value::ConstValue;
use tailcall::{EnvIO, FileIO, HttpIO, InMemoryCache, TargetRuntime};
use tailcall::core::cache::InMemoryCache;
use tailcall::core::runtime::TargetRuntime;
use tailcall::core::{EnvIO, FileIO, HttpIO};

use crate::env::WasmEnv;
use crate::file::WasmFile;
Expand Down

0 comments on commit 9b4361f

Please sign in to comment.