420 Commits

Author SHA1 Message Date
Greg Johnston
30fa4e0394 chore: publish patch versions 2026-06-25 06:43:31 -04:00
Sai Asish Y
23e3cadd33 chore: remove unused LeptosOptions import from render_app_to_stream_with_context example (#4714) 2026-06-19 12:14:15 -04:00
Greg Johnston
fbc9ed631f chore: publish patch versions 2026-04-16 13:11:03 -04:00
Tommy Yu
4e5e13774f feat: implement separate css_path and css_file_path and fix implementation (#4615)
* Fixes #4592 to actually achieve #3513 (#4615)

Provide both `css_path` and `css_file_path` to address both use cases in
a way that is more generally useful at their respective usage contexts.
Specifically, `css_path` may be used with `<Stylesheet/>` or as part of
the routing configuration for servers, while `css_file_path` is useful
for loading of the file itself from within the server application.

Also provide `site_pkg_dir_route_base`, which may be used for general
routing purposes and is the base for `css_path`.

* Additional integration tests for #4615

- Ensure that the new methods are usable for their intended purposes as
  per earlier discussion.
2026-03-06 14:02:26 -05:00
Greg Johnston
da62c0cb9a chore: publish patch versions 2026-02-16 15:46:42 -05:00
Greg Johnston
0f92623996 clippy 2026-02-06 12:38:05 -05:00
Greg Johnston
77e9cbb8ff merge issues 2026-02-06 12:36:41 -05:00
Greg Johnston
11ce41a8be fix merge issue 2026-02-06 12:31:31 -05:00
Greg Johnston
bc0c1303e5 Merge remote-tracking branch 'origin' into remove-dashmap 2026-02-06 12:31:03 -05:00
Tommy Yu
b13f1f6313 feat: provide tower services for serving static files (#4528)
* Remove unused example module.

* Helpers for setting up site pkg static routes

- This provides a function that construct an underlying `ServeDir`
  service and a function that constructs the typical path to serve the
  assets from.

* Provide the error handler as a service

- Combined with the previous static ServeDir service, these two can work
  together to provide the existing functionality, or be combined with
  other tower services to allow more control and flexibility as they may
  be composed with other services, while `file_and_error_handler` does
  not permit such a level of reuse.

* Need to test default feature manually.

- For whatever reason the default feature isn't automatically added by
  `cargo-all-features`.

* Integration tests for `leptos_axum`.

- Ensure the different ways to configure the services are tested to be
  sure they will keep serving asset files and the expected error pages.

* Test for #4394

- This is separated out mostly to show how a new test case might be
  added for an integration case viewable as a patch.

* Configure cargo-nextest to make new tests work

- Refer to comments added to relevant files for the issue this fixes.

* Remove hardcoding ports for axum test services

- Manuallying specifying ports will become annoying to keep track of for
  every different tests, instead require the server to report the port
  it started with and have parse that output into a helper type, which
  in turn provides a method to construct uri required for testing.

* Improve `cargo-nextest` setup for leptos_axum

- Define `cargo-nextest` setup-script for the leptos_axum integration
  tests so that `cargo leptos build` will run for the intended target,
  while also disable the running of that by the test itself if the
  environment variable associated with `cargo-nextest` is set.
- Instead of doing it directly from cargo as a more cross-platform
  approach, using an actual script must be done given the need to pass
  the environment variable in, hence both shell script and batch file
  are provided.
2026-01-15 19:53:49 -05:00
Greg Johnston
4642905665 chore: remove parking_lot (cf. #4410) (#4520) 2026-01-09 12:36:30 -05:00
Andrew Hlynskyi
e5c8d52c6d chore: enable all features for docs.rs (#4526) 2026-01-07 21:53:15 -05:00
Greg Johnston
588f6db557 chore: remove dashmap (cf. #4408) 2026-01-02 14:45:59 -05:00
Greg Johnston
72e0abc75c chore: bump versions after recent release (#4462) 2025-11-24 17:29:23 -05:00
tqq1994516
e6fe7fef07 fix: add response headers for leptos_axum static files #4377 (#4394) 2025-11-22 13:11:53 -05:00
Zak Stucke
9bf5b22633 Force cleanup even if there are other references to the root owner 2025-11-02 15:24:26 +02:00
Greg Johnston
d3148ac9c9 leptos_actix-v0.8.6 (#4396)
* leptos_actix-v0.8.6

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-23 12:50:48 -04:00
Greg Johnston
bbf5bf9170 chore: publish patch releases 2025-09-29 15:21:22 -04:00
Greg Johnston
68477d2b76 fix: preload correct __wasm_split.*.js file (closes #4322) (#4327) 2025-09-24 17:00:55 -04:00
Greg Johnston
d9213850f7 chore: publish new patch releases for changed packages 2025-08-25 20:40:32 -04:00
Greg Johnston
05cafa8b06 fix: support islands routing in 404 routes (#4218) 2025-08-11 21:46:10 -04:00
Raffaele Fontana
87fb947465 docs: fix typo (#4202) 2025-08-01 11:12:42 -04:00
Saber Haj Rabiee
8079956d1b fix: decouple versioning for members 2025-07-21 22:43:58 -07:00
Greg Johnston
ebb33b6f41 Merge remote-tracking branch 'origin' into wasm-splitting-support 2025-07-20 13:09:26 -04:00
Greg Johnston
1524386346 v0.8.4 2025-07-20 11:11:29 -04:00
Dylan Anthony
956af8e466 feat: allow using Actix without default features (#3921) 2025-07-20 08:03:49 -04:00
Greg Johnston
839eb9ac1c fix: correctly handle preloads when they do or don't exist 2025-07-18 08:30:02 -04:00
Greg Johnston
7559b27361 feat: support preloading split WASM files from a manifest 2025-07-17 14:06:20 -04:00
Greg Johnston
91fb315fe0 v0.8.3 2025-07-12 20:10:21 -04:00
martin frances
d555c1e0ce Removed crate once_cell (#4083)
* Removed crate once_cell

As of rust_version 1.80.0 there are now equivalent options in std.

Async and sync changes are as follows.

-use once_cell::sync::Lazy;
+use std::sync::LazyLock;

-use once_cell::sync::Lazy;
+use std::sync::LazyLock;

* ran cargo fmt.

* fixed server_fn errors.

* cargo fmt fixes.

* "use srd::sync" becomes "use std::sync".

* fixed formatting issue.

* formatting issues.

* Fixed error in examples/server_fns_axum

* more formatting issues.

* more formatting issues.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-16 10:38:32 -07:00
Saber Haj Rabiee
e1549c5ab3 chore: unify all deps + exact versioning in root workspace for better maintenance 2025-06-01 09:18:40 -07:00
Nicolas Cura
e82a0bbc7f chore: handle_response_inner public to be used in custom file_and_error_handler (closes #3996) (#3998) 2025-05-23 14:51:08 -04:00
Eric Roman
3903867f82 Fix spelling typos. (#3965) 2025-05-17 08:49:57 +02:00
Saber Haj Rabiee
7ca691305f chore: unify all deps with min occurrences of 2 (#3854) 2025-05-14 20:34:33 -04:00
Greg Johnston
2ee4444bb4 v0.8.2 2025-05-06 14:09:35 -04:00
Greg Johnston
3d91b5e90f v0.8.1 2025-05-05 21:39:43 -04:00
benwis
9b2e313d20 v0.8.0 2025-05-01 15:26:21 -07:00
Greg Johnston
171c8e7ff7 v0.8.0-rc3 2025-04-26 15:53:20 -04:00
autofix-ci[bot]
97175663ef [autofix.ci] apply automated fixes 2025-04-26 00:05:33 +00:00
Greg Johnston
2b50ddc0db v0.8.0-rc2 2025-04-18 08:43:16 -04:00
Greg Johnston
bb47916ebe fix: call additional_context after providing other server context in all cases (#3841) 2025-04-12 20:29:43 -04:00
Greg Johnston
cf843a8349 v0.8.0-rc1 2025-04-11 12:03:17 -04:00
Greg Johnston
b8810ba42f fix: correctly establish root ownership for static site generation (closes #3822) (#3824) 2025-04-05 19:50:28 -04:00
Greg Johnston
47aebf3e22 fix: allow custom status codes or redirects for route fallbacks (#3808) 2025-04-01 19:25:59 -04:00
Alexander Krivács Schrøder
c738c5d81b feat: switch extract() helper to use ServerFnErrorErr (closes #3745) (#3750)
* feat: switch `extract()` helper to use `ServerFnErrorErr`

This provides much better compatibility with server functions using
custom errors while still working as before with server functions using
`ServerFnError`

* style: apply autofix diff
2025-03-21 16:01:12 -04:00
Saber Haj Rabiee
52c770c7da fix(CI): free-up disk, properly gate nightly feature and pre-install deps (#3735)
* fix(CI): pre-install tailwind and sass

* chore: retrigger CI

* fix(CI): properly set `erased_mode` in examples

* fix(CI): workflow logic install deps locally

* chore(CI): organized tailwind and sass versions

* fix: properly ignore nightly features on stable rustc

* fix(CI): typo

* fix: missing cfg attr

* fix: properly gate nightly module in `reactive_graph``

* fix: complete `rustc_nightly` cfg gate

* fix(CI): making even more space for CI workers

* fix: missing one more rustc_nightly gated feature

* fix: maximize the speed of cargo-all-features by limiting combinations to 2
2025-03-20 14:28:07 -07:00
Greg Johnston
2faae43d5f v0.8.0-beta 2025-03-19 21:02:10 -04:00
Thomas Versteeg
93af23a970 feat: allow closures for shell parameter in file_and_error_handler* (#3711) 2025-03-15 10:24:09 -04:00
Greg Johnston
b2bea2e6b7 fix: support for websockets under default features 2025-03-12 21:06:52 -04:00
Greg Johnston
3dbb251853 fix: tweak bounds on For for backwards-compat (#3663) 2025-03-01 11:50:09 -05:00