Kaede Hoshikawa
6b89e21034
Migrate to once_cell ( #2750 )
...
* Replace lazy_static with once_cell.
* Migrate to clap v3, so 1 less lazy_static.
* Convert with `.into()`.
2022-06-24 19:32:00 +05:00
dependabot[bot]
f27bea9a37
Update lipsum requirement from =0.8.0 to 0.8.2 ( #2726 )
...
* Update lipsum requirement from =0.8.0 to =0.8.2
Updates the requirements on [lipsum](https://github.com/mgeisler/lipsum ) to permit the latest version.
- [Release notes](https://github.com/mgeisler/lipsum/releases )
- [Commits](https://github.com/mgeisler/lipsum/compare/0.8.0...0.8.2 )
---
updated-dependencies:
- dependency-name: lipsum
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Don't pin versions
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2022-06-19 19:11:43 +05:00
WorldSEnder
e19615693e
fix: examples depending on lipsum for rust 1.56 ( #2717 )
2022-06-04 21:22:58 +09:00
WorldSEnder
1d579a8bf4
Rework a bunch of cfg(feature) flags to be more principled ( #2666 )
...
* rework a bunch of feature flags to be more principled
* fixup of Collectable
* silence clippy
* unfix Mountable trait
leads to bundle size increase, so stick to the optimized version
* use required-features for function_router
* use --all-features in various places
* disable tokio dependency on wasm tests again
* add some #[inline] annotations
* merge one more feature annotations
* fixup: remove a line connected to trace_hydration
2022-05-07 21:17:47 +05:00
Kaede Hoshikawa
00b94d0051
Make Switch to accept a closure as render function directly ( #2659 )
...
* RenderFn can be be directly Fn() now.
* Switch switch to function component.
* Make Link a function component.
* Remove non-exhaustive.
* Add migration guide.
* Update Website Docs.
* Fix CI.
* Pushing to Navigator no longer requires an owned instance.
* Fix CI.
* Fix code size.
* Further optimisation.
2022-05-06 09:56:49 +09:00
Muhammad Hamza
c28a71e78e
Use nightly for Rustfmt ( #2630 )
...
* add rustfmt.toml, use nightly in CI, update contributing docs
* run `cargo +nightly fmt`
2022-04-21 23:21:15 +05:00
Kaede Hoshikawa
e46ae55cab
SSR Hydration ( #2552 )
...
* Bring changes to this branch.
* Add feature hydration.
* Hydrate text.
* Hydrate tag.
* Hydrate node.
* Hydrate List.
* Hydrate Suspense.
* Hydrate component.
* Renderer::hydrate.
* Add example and tests.
* Fix comp_id.
* Move some code away from generics.
* Fix everything.
* trybuild?
* Collectable!
* Phantom component.
* Migrate docs as well.
* Update example.
* Fix docs and improve debug message.
* Minor fixing.
* Add hydration to feature soundness check.
* Fix name in debug.
* Remove Shift.
* Remove comment.
* Adjust readme.
* Update website/docs/advanced-topics/server-side-rendering.md
Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
* Update packages/yew/src/dom_bundle/bnode.rs
Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
* Update packages/yew/src/dom_bundle/bnode.rs
Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
* Once via structopt, now direct clap.
* Fix docs and empty fragment.
* Remove struct component warning.
* Move function router into a separate binary.
* Optimise Code Logic.
* Fix condition.
* Fix rendering behaviour.
* Fix comment.
Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2022-04-03 08:00:16 +09:00
Kaede Hoshikawa
8bc2212716
#[cfg(feature = "render")] and yew::Renderer (#2498 )
...
* Bring changes to this branch.
* Bring changes to this branch.
* Add feature render and renderer.
* Bring changes to this branch.
* Migrate examples to Renderer.
* Satisfy no any render.
* Satisfy ssr.
* Satisfy feature render.
* Lint feature soundness.
* Suppress tests.
* Fix pr-flow, update docs.
* Add a notice.
* Adjust visibility.
* Correctly feature gate tests.
* make test scope available under feature render.
* Fix CI.
* Fix CI.
* Restore tests module to its original place as well.
* Make bundles crate private.
* Make most bundle APIs private.
* Adjust docs.
* Adjust debug implementation.
* Replace start_app with Renderer.
* Adjust documentation.
* Remove unused lint.
* Remove start_app from docs.
* DomBundle -> ReconcileTarget.
* Adjust documentation.
* Once render, now csr.
* Fix docs as well.
2022-03-20 00:48:47 +09:00
Kaede Hoshikawa
839a7965ad
Function Router Example ( #2494 )
...
* Move example from #2453 .
* Add implementation note.
* Update Implementation Note.
2022-03-07 18:38:22 +05:00