leptos_i18n 0.4.1

Translations integration helper for the Leptos web framework
Documentation
[package]

name = "leptos_i18n"

version = { workspace = true }

edition = "2021"

authors = ["Baptiste de Montangon"]

license = "MIT"

repository = "https://github.com/Baptistemontan/leptos_i18n"

description = "Translations integration helper for the Leptos web framework"

readme = "../README.md"



# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html



[dependencies]

leptos_i18n_macro = { workspace = true }

leptos = { workspace = true }

leptos_meta = "0.6.14"

leptos_router = "0.6.14"

leptos-use = { version = "0.13", default-features = false, features = [

    "use_locales",

    "use_cookie",

] }

codee = "0.2"

icu = { version = "1.5", features = ["sync"] }

typed-builder = "0.19"

fixed_decimal = { version = "0.5", features = ["ryu"] }

writeable = "0.5"

serde = "1.0"

wasm-bindgen = "0.2.93"



[features]

default = ["cookie", "json_files"]

actix = ["ssr", "leptos-use/actix"]

axum = ["ssr", "leptos-use/axum"]

hydrate = ["leptos/hydrate", "leptos_meta/hydrate", "leptos_router/hydrate"]

csr = ["leptos/csr", "leptos_meta/csr", "leptos_router/csr"]

cookie = []

experimental-islands = [

    "leptos/experimental-islands",

    "leptos_i18n_macro/experimental-islands",

]



nightly = ["leptos/nightly", "leptos_meta/nightly", "leptos_i18n_macro/nightly"]



# internal use, should be enabled via "actix" or "axum" feature.

ssr = ["leptos/ssr", "leptos_meta/ssr", "leptos-use/ssr", "leptos_router/ssr"]



# macro features

show_keys_only = ["leptos_i18n_macro/show_keys_only"]

suppress_key_warnings = ["leptos_i18n_macro/suppress_key_warnings"]

json_files = ["leptos_i18n_macro/json_files"]

yaml_files = ["leptos_i18n_macro/yaml_files"]

interpolate_display = ["leptos_i18n_macro/interpolate_display"]

track_locale_files = ["leptos_i18n_macro/track_locale_files"]





[package.metadata.cargo-all-features]

denylist = [

    # Always exclude:

    "ssr",        # Should always be enabled via a server integration rather than directly

    "yaml_files", # See leptos_i18n_macro manifest to see why "yaml_files" and other formats are in deny list and JSON is always included

    "nightly",    # Requires a nightly toolchain



    # Only passed through to `leptos_i18n_macros`, exclude to save time:

    "serde",

    "suppress_key_warnings",

    "track_locale_files",

    "show_keys_only",

]

skip_feature_sets = [

    # Axum and Actix features are incompatible with each other

    [

        "axum",

        "actix",

    ],



    # Only one of `hydrate`, (`axum`, `actix`), `csr` should be enabled in a single crate, exclude to save time:

    [
        "actix",

        "hydrate",

    ],

    [
        "axum",

        "hydrate",

    ],

    [
        "axum",

        "actix",

    ],

    [
        "actix",

        "csr",

    ],

    [
        "axum",

        "csr",

    ],

    [
        "hydrate",

        "csr",

    ],

]

# see leptos_i18n_macro manifest to see why "yaml_files" and other formats are in deny list and JSON is always included

always_include_features = ["json_files"]