use lib
This commit is contained in:
parent
9a8a87662e
commit
21144d954e
3 changed files with 5 additions and 4 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -285,6 +285,7 @@ dependencies = [
|
|||
"leptos-use",
|
||||
"leptos_meta",
|
||||
"leptos_router",
|
||||
"libcards",
|
||||
"log",
|
||||
"serde-lite",
|
||||
"wasm-bindgen",
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue