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