Files
rezervovator/Cargo.toml
T

124 lines
4.4 KiB
TOML
Raw Normal View History

2023-08-18 12:22:23 +02:00
[package]
name = "rezervator"
2025-03-28 14:30:50 +01:00
version = "1.2.0"
2023-08-18 12:22:23 +02:00
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
2023-09-22 21:26:13 +02:00
actix-files = { version = "0.6.2", optional = true }
2024-04-23 21:14:50 +02:00
actix-web = { version = "4.5.1", optional = true, features = ["macros"] }
actix-session = { version = "0.10.0", optional = true, features = ["cookie-session"] }
actix-multipart = { version = "0.7.2", optional = true }
2024-04-23 21:14:50 +02:00
console_error_panic_hook = "0.1.7"
2023-08-18 12:22:23 +02:00
cfg-if = "1"
2026-10-12 07:51:29 +02:00
leptos = { version = "0.8.22" }
leptos_meta = { version = "0.8" }
leptos_actix = { version = "0.8", optional = true }
server_fn = { version = "0.8" }
leptos_router = { version = "0.8" }
2023-08-18 12:22:23 +02:00
serde = { version = "1", features = ["derive"] }
serde_json = "1.0.117"
2026-10-12 07:51:29 +02:00
wasm-bindgen = "=0.2.129"
2024-04-23 21:14:50 +02:00
web-sys = { version = "0.3.69", features = ["Navigator"] }
2023-08-18 12:22:23 +02:00
lazy_static = "1.4.0"
2024-04-23 21:14:50 +02:00
chrono = { version = "0.4.38", features = ["serde"]}
sqlx = { version = "0.8.0", optional = true, features = ["runtime-tokio-rustls", "postgres", "chrono", "rust_decimal", "uuid"] }
2024-04-23 21:14:50 +02:00
rust_decimal = "1.35.0"
2026-10-12 07:51:29 +02:00
uuid = {version = "1.8.0", features = ["v4", "serde", "js"]}
validator = {version = "0.16.1", features = ["derive"]}
2023-09-22 21:26:13 +02:00
pwhash = "1.0.0"
2024-04-23 21:14:50 +02:00
futures-util = "0.3.30"
regex = "1.10.4"
toml = "0.8.12"
log = "0.4.21"
env_logger = "0.11.3"
2023-11-16 21:13:33 +01:00
getopts = "0.2.21"
2026-10-12 07:51:29 +02:00
leptos-use = "0.19.2"
2026-10-12 11:07:29 +02:00
codee = "0.3"
2024-04-23 21:14:50 +02:00
lettre = {version = "0.11.6", features = ["tokio1-native-tls", "smtp-transport", "file-transport"], optional = true}
2026-10-12 07:51:29 +02:00
leptos-captcha = "0.4.0"
2024-04-23 21:14:50 +02:00
charts-rs = { version = "0.3.5", optional = true}
2024-02-14 16:46:31 +01:00
#image = { version = "0.24.8", optional = true }
2024-04-23 21:14:50 +02:00
base64 = "0.22.0"
rand = "0.8.5"
2026-10-12 07:51:29 +02:00
# rand needs the "js" backend when compiled for the browser
getrandom = { version = "0.2", features = ["js"] }
2023-08-18 12:22:23 +02:00
[features]
2026-10-12 07:51:29 +02:00
csr = ["leptos/csr"]
hydrate = ["leptos/hydrate"]
2023-08-18 12:22:23 +02:00
ssr = [
"dep:actix-files",
"dep:actix-web",
"dep:leptos_actix",
"dep:actix-session",
"dep:actix-multipart",
2023-08-24 21:58:03 +02:00
"dep:sqlx",
2024-02-12 17:17:26 +01:00
"dep:lettre",
2024-02-14 16:46:31 +01:00
"dep:charts-rs",
#"dep:image",
2023-08-18 12:22:23 +02:00
"leptos/ssr",
"leptos_meta/ssr",
"leptos_router/ssr",
2026-10-12 07:51:29 +02:00
"leptos-use/ssr",
"leptos-use/actix",
2023-08-18 12:22:23 +02:00
]
2024-03-15 14:24:10 +01:00
[profile.wasm-release]
inherits = "release"
opt-level = 'z'
lto = true
codegen-units = 1
2023-08-18 12:22:23 +02:00
[package.metadata.leptos]
# The name used by wasm-bindgen/cargo-leptos for the JS/WASM bundle. Defaults to the crate name
output-name = "rezervator"
# 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.
site-root = "target/site"
# The site-root relative folder where all compiled output (JS, WASM and CSS) is written
# Defaults to pkg
site-pkg-dir = "pkg"
# [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
style-file = "style/main.scss"
# Assets source dir. All files found here will be copied and synchronized to site-root.
# The assets-dir cannot have a sub directory with the same name/path as site-pkg-dir.
#
# Optional. Env: LEPTOS_ASSETS_DIR.
assets-dir = "assets"
# The IP and port (ex: 127.0.0.1:3000) where the server serves the content. Use it in your server setup.
site-addr = "127.0.0.1:3000"
# The port to use for automatic reload monitoring
reload-port = 3001
# [Optional] Command to use when running end2end tests. It will run in the end2end dir.
# [Windows] for non-WSL use "npx.cmd playwright test"
# This binary name can be checked in Powershell with Get-Command npx
end2end-cmd = "npx playwright test"
end2end-dir = "end2end"
# The browserlist query used for optimizing the CSS.
browserquery = "defaults"
# Set by cargo-leptos watch when building with that tool. Controls whether autoreload JS will be included in the head
watch = false
# The environment Leptos will run in, usually either "DEV" or "PROD"
2024-02-23 14:00:31 +01:00
env = "PROD"
2023-08-18 12:22:23 +02:00
# The features to use when compiling the bin target
#
# Optional. Can be over-ridden with the command line parameter --bin-features
bin-features = ["ssr"]
# If the --no-default-features flag should be used when compiling the bin target
#
# Optional. Defaults to false.
bin-default-features = false
# The features to use when compiling the lib target
#
# Optional. Can be over-ridden with the command line parameter --lib-features
lib-features = ["hydrate"]
# If the --no-default-features flag should be used when compiling the lib target
#
# Optional. Defaults to false.
lib-default-features = false
2024-03-15 14:24:10 +01:00
lib-profile-release = "wasm-release"