Skip to content

Commit

Permalink
nighlty tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptistemontan committed Nov 6, 2024
1 parent 794c8ad commit 0475e5c
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 86 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ jobs:
uses: actions/checkout@v4

- name: "Load cargo toolchain"
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@nightly

- name: "Install cargo-all-features"
run: cargo install cargo-all-features --locked

- name: "Run clippy"
run: cargo clippy --package leptos_i18n

- name: "Test all features"
working-directory: "leptos_i18n"
run: cargo test-all-features
Expand Down
169 changes: 84 additions & 85 deletions leptos_i18n/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ leptos = { workspace = true }
leptos_meta = { version = "=0.7.0-rc0" }
leptos_router = { version = "=0.7.0-rc0" }
leptos-use = { version = "=0.14.0-gamma1", default-features = false, features = [
"use_locales",
"use_cookie",
"use_locales",
"use_cookie",
] }
codee = "0.2"
# icu = { version = "1.5", features = ["sync"] }
Expand All @@ -42,7 +42,7 @@ default-struct-builder = "0.5"

# FIXME:
tower = { version = "0.4.13", default-features = false, optional = true, features = [
"util",
"util",
] }
leptos_server = { version = "=0.7.0-rc0", optional = true }
server_fn = { version = "=0.7.0-rc0", optional = true }
Expand All @@ -51,51 +51,51 @@ server_fn_macro = { version = "=0.7.0-rc0", optional = true }
[features]
default = ["cookie", "json_files", "icu_compiled_data"]
icu_compiled_data = [
"icu_plurals?/compiled_data",
"icu_datetime?/compiled_data",
"icu_calendar?/compiled_data",
"icu_list?/compiled_data",
"icu_decimal?/compiled_data",
"leptos_i18n_macro/icu_compiled_data",
"icu_plurals?/compiled_data",
"icu_datetime?/compiled_data",
"icu_calendar?/compiled_data",
"icu_list?/compiled_data",
"icu_decimal?/compiled_data",
"leptos_i18n_macro/icu_compiled_data",
]
plurals = ["dep:icu_plurals", "dep:icu_provider", "leptos_i18n_macro/plurals"]
format_datetime = [
"dep:icu_datetime",
"dep:icu_calendar",
"dep:icu_provider",
"leptos_i18n_macro/format_datetime",
"dep:icu_datetime",
"dep:icu_calendar",
"dep:icu_provider",
"leptos_i18n_macro/format_datetime",
]
format_list = [
"dep:icu_list",
"dep:icu_provider",
"leptos_i18n_macro/format_list",
"dep:icu_list",
"dep:icu_provider",
"leptos_i18n_macro/format_list",
]
format_nums = [
"dep:icu_decimal",
"dep:fixed_decimal",
"dep:icu_provider",
"leptos_i18n_macro/format_nums",
"dep:icu_decimal",
"dep:fixed_decimal",
"dep:icu_provider",
"leptos_i18n_macro/format_nums",
]
actix = ["ssr", "leptos-use/actix"]
axum = ["ssr", "leptos-use/axum", "dep:tower"]
hydrate = [
"leptos/hydrate",
"leptos_i18n_macro/hydrate",
"dep:js-sys",
"dep:serde-wasm-bindgen",
"leptos/hydrate",
"leptos_i18n_macro/hydrate",
"dep:js-sys",
"dep:serde-wasm-bindgen",
]
csr = ["leptos/csr", "leptos_i18n_macro/csr"]
cookie = []
experimental-islands = [
"leptos/experimental-islands",
"leptos_i18n_macro/experimental-islands",
"leptos/experimental-islands",
"leptos_i18n_macro/experimental-islands",
]
ssr = [
"leptos/ssr",
"leptos_meta/ssr",
"leptos-use/ssr",
"leptos_router/ssr",
"leptos_i18n_macro/ssr",
"leptos/ssr",
"leptos_meta/ssr",
"leptos-use/ssr",
"leptos_router/ssr",
"leptos_i18n_macro/ssr",
# FIXME:
"dep:leptos_server",
"dep:server_fn",
Expand All @@ -104,10 +104,10 @@ ssr = [
nightly = ["leptos/nightly", "leptos_i18n_macro/nightly"]

dynamic_load = [
"leptos_i18n_macro/dynamic_load",
"dep:async-once-cell",
"dep:futures",
"dep:noop-waker",
"leptos_i18n_macro/dynamic_load",
"dep:async-once-cell",
"dep:futures",
"dep:noop-waker",
]


Expand All @@ -123,61 +123,60 @@ 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
"json5_files",
"nightly", # Requires a nightly toolchain
# 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
"json5_files",

# Only passed through to `leptos_i18n_macros`, exclude to save time:
"serde",
"suppress_key_warnings",
"track_locale_files",
"show_keys_only",
# 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",
],
# 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",
],
[
"dynamic_load",
"csr",
],
# 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",
],
[
"dynamic_load",
"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",
"icu_compiled_data",
"plurals",
"format_datetime",
"format_list",
"format_nums",
"json_files",
"icu_compiled_data",
"plurals",
"format_datetime",
"format_list",
"format_nums",
]

0 comments on commit 0475e5c

Please sign in to comment.