# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "audiobookroom" version = "0.1.1" authors = ["Jiangqiu Shen"] exclude = [] description = "Audiobookroom, a simple and fast self-hosted audiobook server" readme = "README.md" license = "MIT" repository = "https://github.com/audiobookroom/audiobookroom" [package.metadata.cargo-all-features] denylist = [ "axum", "tower", "tower-http", "tokio", "sqlx", "leptos_axum", ] skip_feature_sets = [[ "ssr", "hydrate", ]] [package.metadata.leptos] assets-dir = "public" bin-default-features = false bin-features = ["ssr"] bin-target = "audiobookroom" browserquery = "defaults" end2end-cmd = "npx playwright test" env = "PROD" lib-default-features = false lib-features = ["hydrate"] output-name = "audiobookroom" reload-port = 3001 site-addr = "127.0.0.1:3003" site-pkg-dir = "pkg" site-root = "target/site" tailwind-config-file = "tailwind.config.js" tailwind-input-file = "style/tailwind.css" watch = false [profile.release] opt-level = "z" lto = true codegen-units = 1 [lib] crate-type = [ "cdylib", "rlib", ] [dependencies.anyhow] version = "1.0.79" [dependencies.async-trait] version = "0.1" optional = true [dependencies.axum] version = "0.7" features = ["macros"] optional = true [dependencies.axum_session] version = "0.12.4" features = ["sqlite-rustls"] optional = true [dependencies.axum_session_auth] version = "0.12.0" features = ["sqlite-rustls"] optional = true [dependencies.bcrypt] version = "0.15" optional = true [dependencies.bytes] version = "1.5.0" [dependencies.clap] version = "4.4.18" features = ["derive"] optional = true [dependencies.console_error_panic_hook] version = "0.1" optional = true [dependencies.console_log] version = "1.0" optional = true [dependencies.dotenv] version = "0.15.0" optional = true [dependencies.eyre] version = "0.6.12" [dependencies.futures] version = "0.3" [dependencies.gloo-timers] version = "0.3.0" features = ["futures"] optional = true [dependencies.http] version = "1.0" [dependencies.http-body] version = "1.0.0" [dependencies.leptos] version = "0.6" features = ["nightly"] [dependencies.leptos_axum] version = "0.6" optional = true [dependencies.leptos_meta] version = "0.6" features = ["nightly"] [dependencies.leptos_router] version = "0.6" features = ["nightly"] [dependencies.pin-project-lite] version = "0.2.13" optional = true [dependencies.rand] version = "0.8" features = ["min_const_gen"] optional = true [dependencies.regex] version = "1.10.3" [dependencies.sea-orm] version = "0.12.14" features = ["sqlx-sqlite"] optional = true [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.sqlx] version = "0.7.2" features = [ "runtime-tokio-rustls", "sqlite", ] optional = true [dependencies.thiserror] version = "1.0" [dependencies.tokio] version = "1" features = ["full"] optional = true [dependencies.tower] version = "0.4" optional = true [dependencies.tower-http] version = "0.5" features = ["fs"] optional = true [dependencies.tracing] version = "0.1.40" [dependencies.tracing-subscriber] version = "0.3.18" features = [ "fmt", "env-filter", ] optional = true [dependencies.wasm-bindgen] version = "0.2" [dependencies.web-sys] version = "0.3.68" features = [ "Element", "DomRect", "Document", "Window", ] [features] default = ["ssr"] hydrate = [ "leptos/hydrate", "leptos_meta/hydrate", "leptos_router/hydrate", "dep:console_log", "dep:console_error_panic_hook", "dep:gloo-timers", ] ssr = [ "dep:axum", "dep:tower", "dep:tower-http", "dep:tokio", "dep:axum_session_auth", "dep:axum_session", "dep:async-trait", "dep:sqlx", "dep:bcrypt", "dep:rand", "leptos/ssr", "leptos_meta/ssr", "leptos_router/ssr", "dep:leptos_axum", "dep:sea-orm", "dep:dotenv", "dep:pin-project-lite", "dep:clap", "dep:tracing-subscriber", ]