|
| 1 | +[package] |
| 2 | +name = "todo_app_sqlite_viz" |
| 3 | +version = "0.1.0" |
| 4 | +edition = "2021" |
| 5 | + |
| 6 | +[lib] |
| 7 | +crate-type = ["cdylib", "rlib"] |
| 8 | + |
| 9 | +[dependencies] |
| 10 | +anyhow = "1.0.66" |
| 11 | +console_log = "0.2.0" |
| 12 | +console_error_panic_hook = "0.1.7" |
| 13 | +futures = "0.3.25" |
| 14 | +cfg-if = "1.0.0" |
| 15 | +leptos = { path = "../../leptos", default-features = false, features = [ |
| 16 | + "serde", |
| 17 | +] } |
| 18 | +leptos_viz = { path = "../../integrations/viz", default-features = false, optional = true } |
| 19 | +leptos_meta = { path = "../../meta", default-features = false } |
| 20 | +leptos_router = { path = "../../router", default-features = false } |
| 21 | +leptos_reactive = { path = "../../leptos_reactive", default-features = false } |
| 22 | +log = "0.4.17" |
| 23 | +simple_logger = "4.0.0" |
| 24 | +serde = { version = "1.0.148", features = ["derive"] } |
| 25 | +serde_json = "1.0.89" |
| 26 | +gloo-net = { version = "0.2.5", features = ["http"] } |
| 27 | +reqwest = { version = "0.11.13", features = ["json"] } |
| 28 | +viz = { version = "0.4.8", features = ["serve"], optional = true } |
| 29 | +tokio = { version = "1.25.0", features = ["full"], optional = true } |
| 30 | +http = { version = "0.2.8" } |
| 31 | +sqlx = { version = "0.6.2", features = [ |
| 32 | + "runtime-tokio-rustls", |
| 33 | + "sqlite", |
| 34 | +], optional = true } |
| 35 | +thiserror = "1.0.38" |
| 36 | +tracing = "0.1.37" |
| 37 | +wasm-bindgen = "0.2" |
| 38 | + |
| 39 | +[features] |
| 40 | +default = ["csr"] |
| 41 | +csr = ["leptos/csr", "leptos_meta/csr", "leptos_router/csr"] |
| 42 | +hydrate = ["leptos/hydrate", "leptos_meta/hydrate", "leptos_router/hydrate"] |
| 43 | +ssr = [ |
| 44 | + "dep:viz", |
| 45 | + "dep:tokio", |
| 46 | + "dep:sqlx", |
| 47 | + "leptos/ssr", |
| 48 | + "leptos_meta/ssr", |
| 49 | + "leptos_router/ssr", |
| 50 | + "dep:leptos_viz" |
| 51 | +] |
| 52 | + |
| 53 | +[package.metadata.cargo-all-features] |
| 54 | +denylist = ["viz", "tokio", "sqlx", "leptos_viz"] |
| 55 | +skip_feature_sets = [["csr", "ssr"], ["csr", "hydrate"], ["ssr", "hydrate"]] |
| 56 | + |
| 57 | +[package.metadata.leptos] |
| 58 | +# The name used by wasm-bindgen/cargo-leptos for the JS/WASM bundle. Defaults to the crate name |
| 59 | +output-name = "todo_app_sqlite_viz" |
| 60 | +# The site root folder is where cargo-leptos generate all output. WARNING: all content of this folder will be erased on a rebuild. Use it in your server setup. |
| 61 | +site-root = "target/site" |
| 62 | +# The site-root relative folder where all compiled output (JS, WASM and CSS) is written |
| 63 | +# Defaults to pkg |
| 64 | +site-pkg-dir = "pkg" |
| 65 | +# [Optional] The source CSS file. If it ends with .sass or .scss then it will be compiled by dart-sass into CSS. The CSS is optimized by Lightning CSS before being written to <site-root>/<site-pkg>/app.css |
| 66 | +style-file = "./style.css" |
| 67 | +# [Optional] Files in the asset-dir will be copied to the site-root directory |
| 68 | +assets-dir = "public" |
| 69 | +# The IP and port (ex: 127.0.0.1:3000) where the server serves the content. Use it in your server setup. |
| 70 | +site-addr = "127.0.0.1:3000" |
| 71 | +# The port to use for automatic reload monitoring |
| 72 | +reload-port = 3001 |
| 73 | +# [Optional] Command to use when running end2end tests. It will run in the end2end dir. |
| 74 | +end2end-cmd = "npx playwright test" |
| 75 | +# The browserlist query used for optimizing the CSS. |
| 76 | +browserquery = "defaults" |
| 77 | +# Set by cargo-leptos watch when building with tha tool. Controls whether autoreload JS will be included in the head |
| 78 | +watch = false |
| 79 | +# The environment Leptos will run in, usually either "DEV" or "PROD" |
| 80 | +env = "DEV" |
| 81 | +# The features to use when compiling the bin target |
| 82 | +# |
| 83 | +# Optional. Can be over-ridden with the command line parameter --bin-features |
| 84 | +bin-features = ["ssr"] |
| 85 | + |
| 86 | +# If the --no-default-features flag should be used when compiling the bin target |
| 87 | +# |
| 88 | +# Optional. Defaults to false. |
| 89 | +bin-default-features = false |
| 90 | + |
| 91 | +# The features to use when compiling the lib target |
| 92 | +# |
| 93 | +# Optional. Can be over-ridden with the command line parameter --lib-features |
| 94 | +lib-features = ["hydrate"] |
| 95 | + |
| 96 | +# If the --no-default-features flag should be used when compiling the lib target |
| 97 | +# |
| 98 | +# Optional. Defaults to false. |
| 99 | +lib-default-features = false |
0 commit comments