1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-11-22 07:31:09 +00:00
ibis/Cargo.toml
2024-11-20 15:56:37 +01:00

131 lines
3.4 KiB
TOML

[package]
name = "ibis"
version = "0.1.4"
edition = "2021"
[features]
default = ["ssr"]
ssr = [
"axum",
"axum-macros",
"axum-extra",
"tower-http",
"diesel",
"diesel-derive-newtype",
"diesel_migrations",
"tokio",
"leptos_axum",
"activitypub_federation",
"jsonwebtoken",
"leptos/ssr",
"leptos-use/ssr",
"leptos-use/axum",
"doku",
"bcrypt",
"diffy",
"enum_delegate",
"async-trait",
"config",
"tower",
"tower-layer","rand",
"reqwest","diesel-derive-newtype"
]
hydrate = ["leptos/hydrate", "gloo-net"]
# This profile significantly speeds up build time. If debug info is needed you can comment the line
# out temporarily, but make sure to leave this in the main branch.
[profile.dev]
debug = 0
[profile.release]
lto = "thin"
strip = true
# Defines a size-optimized profile for the WASM bundle in release mode
[profile.wasm-release]
inherits = "release"
opt-level = 'z'
lto = true
codegen-units = 1
panic = "abort"
[lints.clippy]
dbg_macro = "deny"
unwrap_used = "deny"
[dependencies]
anyhow = "1.0.93"
leptos = "0.7.0-rc1"
leptos_meta = "0.7.0-rc1"
chrono = { version = "0.4.38", features = ["serde"] }
env_logger = { version = "0.11.5", default-features = false }
futures = "0.3.31"
hex = "0.4.3"
rand = { version = "0.8.5", optional = true }
serde_json = "1.0.132"
sha2 = "0.10.8"
uuid = { version = "1.11.0", features = ["serde"] }
serde = { version = "1.0.215", features = ["derive"] }
url = { version = "2.5.3", features = ["serde"] }
reqwest = { version = "0.12.9", features = [
"json",
"cookies",
], optional = true }
log = "0.4"
tracing = "0.1.40"
console_error_panic_hook = "0.1.7"
time = "0.3.36"
smart-default = "0.7.1"
leptos-use = "0.14.0-rc3"
wasm-bindgen = "=0.2.95"
# backend-only features
axum = { version = "0.7.7", optional = true }
axum-macros = { version = "0.4.2", optional = true }
axum-extra = { version = "0.9.4", features = ["cookie"], optional = true }
tokio = { version = "1.41.1", features = ["full"], optional = true }
tower-http = { version = "0.6.1", features = ["cors", "fs"], optional = true }
activitypub_federation = { version = "0.6.0", features = [
"axum",
"diesel",
], default-features = false, optional = true }
diesel = { version = "2.2.4", default-features = false, features = [
"postgres",
"chrono",
"uuid",
"r2d2",
], optional = true }
diesel-derive-newtype = { version = "2.1.2", optional = true }
diesel_migrations = { version = "2.2.0", optional = true }
doku = { version = "0.21.1", optional = true }
jsonwebtoken = { version = "9.3.0", optional = true }
leptos_axum = { version = "0.7.0-rc1", optional = true }
bcrypt = { version = "0.15.1", optional = true }
diffy = { version = "0.4.0", optional = true }
enum_delegate = { version = "0.2.0", optional = true }
async-trait = { version = "0.1.83", optional = true }
config = { version = "0.14.1", features = ["toml"], optional = true }
tower = { version = "0.5.1", optional = true }
tower-layer = { version = "0.3.3", optional = true }
console_log = "1.0.0"
send_wrapper = "0.6.0"
gloo-net = { version = "0.6.0", optional = true }
web-sys = "0.3.72"
http = "1.1.0"
serde_urlencoded = "0.7.1"
[dev-dependencies]
pretty_assertions = "1.4.1"
retry_future = "0.4.0"
[package.metadata.leptos]
output-name = "ibis"
assets-dir = "assets"
bin-features = ["ssr"]
lib-features = ["hydrate"]
lib-profile-release = "wasm-release"
tailwind-input-file = "assets/ibis.css"
tailwind-config-file = "tailwind.config.js"
[lib]
crate-type = ["cdylib", "rlib"]