44 lines
1.1 KiB
TOML
44 lines
1.1 KiB
TOML
[package]
|
|
name = "py-leptos"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["John Lancaster <32917998+jsl12@users.noreply.github.com>"]
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[lib]
|
|
# The name of the native library. This is the name which will be used in Python to import the
|
|
# library (i.e. `import string_sum`). If you change this, you must also change the name of the
|
|
# `#[pymodule]` in `src/lib.rs`.
|
|
name = "pyo3_server"
|
|
|
|
# "cdylib" is necessary to produce a shared library for Python to import from.
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
leptos = { version = "0.8", features = ["csr"] }
|
|
leptos_meta = { version = "0.8" }
|
|
leptos_router = { version = "0.8" }
|
|
console_log = "1"
|
|
log = "0.4"
|
|
console_error_panic_hook = "0.1"
|
|
|
|
pyo3 = { version = "0.26.0", features = ["extension-module"] }
|
|
|
|
# utils
|
|
# strum = { version = "0.25", features = ["derive", "strum_macros"] }
|
|
# strum_macros = "0.25"
|
|
|
|
|
|
[dev-dependencies]
|
|
wasm-bindgen = "0.2"
|
|
wasm-bindgen-test = "0.3"
|
|
web-sys = { version = "0.3", features = ["Document", "Window"] }
|
|
|
|
|
|
[profile.release]
|
|
opt-level = 'z'
|
|
lto = true
|
|
codegen-units = 1
|
|
panic = "abort"
|