diff --git a/Cargo.lock b/Cargo.lock index 1911b32..15c7943 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -285,6 +285,7 @@ dependencies = [ "leptos-use", "leptos_meta", "leptos_router", + "libcards", "log", "serde-lite", "wasm-bindgen", diff --git a/client/Cargo.toml b/client/Cargo.toml index 86e2241..b492a52 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -25,3 +25,5 @@ serde-lite = "0.5.0" wasm-bindgen = "=0.2.92" wasm-bindgen-test = "0.3" web-sys = { version = "0.3", features = ["Document", "Window"] } + +libcards = { workspace = true } diff --git a/server/src/main.rs b/server/src/main.rs index a9d1346..c12bda3 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -1,6 +1,7 @@ use anyhow::{Context, Result}; use axum::{response::Html, routing::get, Router}; use axum_extra::response::Css; +use libcards::*; use std::{ // collections::HashSet, fs, @@ -10,8 +11,6 @@ use std::{ use tokio::sync::broadcast; use tower_http::services::ServeDir; use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt}; - -use libcards::*; pub mod api; use crate::api::*; @@ -26,8 +25,7 @@ fn load_json(path: &str) -> Result> { } // this is still around just for reference -#[allow(dead_code)] -fn test() -> Result<()> { +fn _test() -> Result<()> { // choose decks let cards_input_path: &str = "../data/cah-cards-full.json";