This commit is contained in:
Adam 2024-07-21 01:08:54 -04:00
parent 9a8a87662e
commit 21144d954e
3 changed files with 5 additions and 4 deletions

1
Cargo.lock generated
View file

@ -285,6 +285,7 @@ dependencies = [
"leptos-use",
"leptos_meta",
"leptos_router",
"libcards",
"log",
"serde-lite",
"wasm-bindgen",

View file

@ -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 }

View file

@ -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<Vec<CAHCardSet>> {
}
// 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";