g3-kit 0.1.0

The shared core of g3 stack apps: client, server and CDN caching, and session auth, for Dioxus fullstack.
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "g3-kit"
version = "0.1.0"
build = false
include = [
    "Cargo.toml",
    "README.md",
    "CHANGELOG.md",
    "LICENSE-MIT",
    "LICENSE-APACHE",
    "src/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The shared core of g3 stack apps: client, server and CDN caching, and session auth, for Dioxus fullstack."
documentation = "https://docs.rs/g3-kit"
readme = "README.md"
keywords = [
    "dioxus",
    "fullstack",
    "cache",
    "auth",
    "surrealdb",
]
categories = [
    "caching",
    "authentication",
    "gui",
    "wasm",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/g3techhq/g3-kit"

[package.metadata.docs.rs]
features = [
    "cache",
    "auth",
    "server",
]

[features]
auth = []
cache = []
default = []
mobile = [
    "dep:redb",
    "dep:jni",
    "dep:ndk-context",
]
server = [
    "dep:axum",
    "dep:tower-service",
    "dep:moka",
    "dep:axum_session",
    "dep:axum_session_auth",
    "dep:async-trait",
    "dep:anyhow",
    "dep:inventory",
    "dep:surrealdb",
    "dep:surrealdb-types",
]
web = [
    "dep:rexie",
    "dep:wasm-bindgen",
]

[lib]
name = "g3_kit"
path = "src/lib.rs"

[dependencies.anyhow]
version = "1.0.98"
optional = true

[dependencies.async-trait]
version = "0.1.88"
optional = true

[dependencies.axum]
version = "0.8.9"
optional = true
default-features = false

[dependencies.axum_session]
version = "0.20.1"
optional = true

[dependencies.axum_session_auth]
version = "0.20.0"
optional = true

[dependencies.chrono]
version = "0.4.39"
features = [
    "clock",
    "wasmbind",
]
default-features = false

[dependencies.dioxus]
version = "0.7.9"
features = [
    "signals",
    "hooks",
    "document",
]
default-features = false

[dependencies.g3-kit-macros]
version = "0.1.0"

[dependencies.inventory]
version = "0.3.20"
optional = true

[dependencies.moka]
version = "0.12.16"
features = ["future"]
optional = true

[dependencies.redb]
version = "4.3.0"
optional = true

[dependencies.serde]
version = "1.0.217"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.140"

[dependencies.surrealdb]
version = "=3.2.4"
optional = true
default-features = false

[dependencies.surrealdb-types]
version = "=3.2.4"
optional = true

[dependencies.tower-layer]
version = "0.3"

[dependencies.tower-service]
version = "0.3"
optional = true

[dependencies.tracing]
version = "0.1"

[dev-dependencies.dioxus]
version = "0.7.9"
features = [
    "fullstack",
    "server",
    "router",
]

[dev-dependencies.surrealdb]
version = "=3.2.4"
features = ["kv-mem"]
default-features = false

[dev-dependencies.tokio]
version = "1.42.0"
features = [
    "macros",
    "rt-multi-thread",
]

[target.'cfg(target_arch = "wasm32")'.dependencies.rexie]
version = "0.6.2"
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
optional = true

[target.'cfg(target_os = "android")'.dependencies.jni]
version = "0.21.1"
optional = true

[target.'cfg(target_os = "android")'.dependencies.ndk-context]
version = "0.1.1"
optional = true

[profile.dev.package.surrealdb]
debug = 0

[profile.dev.package.surrealdb-core]
debug = 0