Skip to content

Commit

Permalink
Refactor torii server to own crate (#774)
Browse files Browse the repository at this point in the history
* Remove unused deps

* Refactor torii server to own crate
  • Loading branch information
tarrencev authored Aug 15, 2023
1 parent 5685a17 commit 0d349da
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
32 changes: 16 additions & 16 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ members = [
"crates/katana/core",
"crates/katana/rpc",
"crates/sozo",
"crates/torii",
"crates/torii/server",
]

[workspace.package]
Expand Down
10 changes: 5 additions & 5 deletions crates/torii/Cargo.toml → crates/torii/server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
edition = "2021"
name = "torii"
name = "torii-server"
version = "0.1.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -15,8 +15,8 @@ camino.workspace = true
chrono.workspace = true
clap.workspace = true
ctrlc = "3.2.5"
dojo-types = { path = "../dojo-types" }
dojo-world = { path = "../dojo-world" }
dojo-types = { path = "../../dojo-types" }
dojo-world = { path = "../../dojo-world" }
indexmap = "1.9.3"
log = "0.4.17"
poem = "1.3.48"
Expand All @@ -29,8 +29,8 @@ starknet.workspace = true
tokio = { version = "1.20.1", features = [ "full" ] }
tokio-stream = "0.1.11"
tokio-util = "0.7.7"
torii-core = { path = "./core" }
torii-graphql = { path = "./graphql" }
torii-core = { path = "../core" }
torii-graphql = { path = "../graphql" }
tracing-subscriber.workspace = true
tracing.workspace = true
url = "2.2.2"
Expand Down
2 changes: 1 addition & 1 deletion crates/torii/src/cli.rs → crates/torii/server/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async fn main() -> anyhow::Result<()> {
let database_url = &args.database_url;
#[cfg(feature = "sqlite")]
let pool = SqlitePoolOptions::new().max_connections(5).connect(database_url).await?;
sqlx::migrate!().run(&pool).await?;
sqlx::migrate!("../migrations").run(&pool).await?;

let provider = JsonRpcClient::new(HttpTransport::new(Url::parse(&args.rpc).unwrap()));

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 0d349da

Please sign in to comment.