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-use",
|
||||||
"leptos_meta",
|
"leptos_meta",
|
||||||
"leptos_router",
|
"leptos_router",
|
||||||
|
"libcards",
|
||||||
"log",
|
"log",
|
||||||
"serde-lite",
|
"serde-lite",
|
||||||
"wasm-bindgen",
|
"wasm-bindgen",
|
||||||
|
|
|
@ -25,3 +25,5 @@ serde-lite = "0.5.0"
|
||||||
wasm-bindgen = "=0.2.92"
|
wasm-bindgen = "=0.2.92"
|
||||||
wasm-bindgen-test = "0.3"
|
wasm-bindgen-test = "0.3"
|
||||||
web-sys = { version = "0.3", features = ["Document", "Window"] }
|
web-sys = { version = "0.3", features = ["Document", "Window"] }
|
||||||
|
|
||||||
|
libcards = { workspace = true }
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
use anyhow::{Context, Result};
|
use anyhow::{Context, Result};
|
||||||
use axum::{response::Html, routing::get, Router};
|
use axum::{response::Html, routing::get, Router};
|
||||||
use axum_extra::response::Css;
|
use axum_extra::response::Css;
|
||||||
|
use libcards::*;
|
||||||
use std::{
|
use std::{
|
||||||
// collections::HashSet,
|
// collections::HashSet,
|
||||||
fs,
|
fs,
|
||||||
|
@ -10,8 +11,6 @@ use std::{
|
||||||
use tokio::sync::broadcast;
|
use tokio::sync::broadcast;
|
||||||
use tower_http::services::ServeDir;
|
use tower_http::services::ServeDir;
|
||||||
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
|
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
|
||||||
|
|
||||||
use libcards::*;
|
|
||||||
pub mod api;
|
pub mod api;
|
||||||
use crate::api::*;
|
use crate::api::*;
|
||||||
|
|
||||||
|
@ -26,8 +25,7 @@ fn load_json(path: &str) -> Result<Vec<CAHCardSet>> {
|
||||||
}
|
}
|
||||||
|
|
||||||
// this is still around just for reference
|
// this is still around just for reference
|
||||||
#[allow(dead_code)]
|
fn _test() -> Result<()> {
|
||||||
fn test() -> Result<()> {
|
|
||||||
// choose decks
|
// choose decks
|
||||||
let cards_input_path: &str = "../data/cah-cards-full.json";
|
let cards_input_path: &str = "../data/cah-cards-full.json";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue