|
| 1 | +[package] |
| 2 | +name = "ladmin" |
| 3 | +version = "0.1.0" |
| 4 | +edition = "2021" |
| 5 | + |
| 6 | +[lib] |
| 7 | +crate-type = ["cdylib", "rlib"] |
| 8 | + |
| 9 | +[dependencies] |
| 10 | +leptos = { version = "0.8.0" } |
| 11 | +leptos_router = { version = "0.8.0" } |
| 12 | +axum = { version = "0.8.0", optional = true } |
| 13 | +console_error_panic_hook = { version = "0.1", optional = true } |
| 14 | +leptos_axum = { version = "0.8.0", optional = true } |
| 15 | +leptos_meta = { version = "0.8.0" } |
| 16 | +tokio = { version = "1", features = ["rt-multi-thread"], optional = true } |
| 17 | +wasm-bindgen = { version = "0.2.108", optional = true } |
| 18 | +tonic = {version = "0.14.2", default-features = false, features = ["codegen"], optional = true} |
| 19 | +tonic-prost = "0.14.2" |
| 20 | +prost = "0.14" |
| 21 | +tonic-web-wasm-client = { version = "0.8", optional = true, default-features = false } |
| 22 | + |
| 23 | +[build-dependencies] |
| 24 | +tonic-prost-build = { version = "0.14.2" } |
| 25 | + |
| 26 | +[features] |
| 27 | +hydrate = [ |
| 28 | + "leptos/hydrate", |
| 29 | + "dep:console_error_panic_hook", |
| 30 | + "dep:wasm-bindgen", |
| 31 | + "dep:tonic", |
| 32 | + "dep:tonic-web-wasm-client", |
| 33 | +] |
| 34 | +ssr = [ |
| 35 | + "dep:axum", |
| 36 | + "dep:tokio", |
| 37 | + "dep:leptos_axum", |
| 38 | + "leptos/ssr", |
| 39 | + "leptos_meta/ssr", |
| 40 | + "leptos_router/ssr", |
| 41 | + "dep:tonic", |
| 42 | + "dep:tonic-web-wasm-client", |
| 43 | +] |
| 44 | + |
| 45 | +# Defines a size-optimized profile for the WASM bundle in release mode |
| 46 | +[profile.wasm-release] |
| 47 | +inherits = "release" |
| 48 | +opt-level = 'z' |
| 49 | +lto = true |
| 50 | +codegen-units = 1 |
| 51 | +panic = "abort" |
| 52 | + |
| 53 | +[package.metadata.leptos] |
| 54 | +# The name used by wasm-bindgen/cargo-leptos for the JS/WASM bundle. Defaults to the crate name |
| 55 | +output-name = "ladmin" |
| 56 | + |
| 57 | +# 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. |
| 58 | +site-root = "target/site" |
| 59 | + |
| 60 | +# The site-root relative folder where all compiled output (JS, WASM and CSS) is written |
| 61 | +# Defaults to pkg |
| 62 | +site-pkg-dir = "pkg" |
| 63 | + |
| 64 | +# [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 |
| 65 | +style-file = "style/main.scss" |
| 66 | +# Assets source dir. All files found here will be copied and synchronized to site-root. |
| 67 | +# The assets-dir cannot have a sub directory with the same name/path as site-pkg-dir. |
| 68 | +# |
| 69 | +# Optional. Env: LEPTOS_ASSETS_DIR. |
| 70 | +assets-dir = "public" |
| 71 | + |
| 72 | +# The IP and port (ex: 127.0.0.1:3000) where the server serves the content. Use it in your server setup. |
| 73 | +site-addr = "127.0.0.1:3000" |
| 74 | + |
| 75 | +# The port to use for automatic reload monitoring |
| 76 | +reload-port = 3001 |
| 77 | + |
| 78 | +# [Optional] Command to use when running end2end tests. It will run in the end2end dir. |
| 79 | +# [Windows] for non-WSL use "npx.cmd playwright test" |
| 80 | +# This binary name can be checked in Powershell with Get-Command npx |
| 81 | +end2end-cmd = "npx playwright test" |
| 82 | +end2end-dir = "end2end" |
| 83 | + |
| 84 | +# The browserlist query used for optimizing the CSS. |
| 85 | +browserquery = "defaults" |
| 86 | + |
| 87 | +# The environment Leptos will run in, usually either "DEV" or "PROD" |
| 88 | +env = "DEV" |
| 89 | + |
| 90 | +# The features to use when compiling the bin target |
| 91 | +# |
| 92 | +# Optional. Can be over-ridden with the command line parameter --bin-features |
| 93 | +bin-features = ["ssr"] |
| 94 | + |
| 95 | +# If the --no-default-features flag should be used when compiling the bin target |
| 96 | +# |
| 97 | +# Optional. Defaults to false. |
| 98 | +bin-default-features = false |
| 99 | + |
| 100 | +# The features to use when compiling the lib target |
| 101 | +# |
| 102 | +# Optional. Can be over-ridden with the command line parameter --lib-features |
| 103 | +lib-features = ["hydrate"] |
| 104 | + |
| 105 | +# If the --no-default-features flag should be used when compiling the lib target |
| 106 | +# |
| 107 | +# Optional. Defaults to false. |
| 108 | +lib-default-features = false |
| 109 | + |
| 110 | +# The profile to use for the lib target when compiling for release |
| 111 | +# |
| 112 | +# Optional. Defaults to "release". |
| 113 | +lib-profile-release = "wasm-release" |
0 commit comments