-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* scopes * signal get and set * signals owned by scopes * memos and reactive graph update propagation * improve performance by reusing allocations in topo_sort * add remaining reactive hooks * add some docs and reexport everything at top-level * add a lot more docs * add docs to everything and impl Debug, Display * add context api * migrate signal and memo tests over * separate effects from memos and defer effect callbacks * migrate all effect tests * check if effect is alive when calling it rather than removing links during drop * fix a few memo tests migrated from effects * some perf optimizations around slotmap indexing * migrate over map_keyed and map_indexed * remove unnecessary Rc * make Accessor take ref instead of move * add effect batching * Update some docs to new reactivity Co-authored-by: Genna Wingert <wingertge@gmail.com> * initial store API implementation * wip: add derive macro for State and macro for parsing lens path * add StateTrigger trait and make get! take a Store<T> * Implement set! macro. * fix doc comment * Rename store2.rs to store.rs * Satisfy clippy * Split scope into a new file * Move tests into scope.rs as well * Remove explicit cx: Scope * Set global root when propagating updates * Simplify Root internals * Fix CI? * Update Cargo.toml for new crates * Fix RUSTFLAGS * Fix RUSTFLAGS attempt 2 * Fix conditional compilation * Remove examples folder from sycamore-reactive3 * Do not run all tests * Ignore doctest in lib.rs --------- Co-authored-by: Genna Wingert <wingertge@gmail.com>
- Loading branch information
Showing
22 changed files
with
3,227 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,48 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
# Packages | ||
"packages/sycamore", | ||
"packages/sycamore-core", | ||
"packages/sycamore-futures", | ||
"packages/sycamore-macro", | ||
"packages/sycamore-reactive", | ||
"packages/sycamore-router", | ||
"packages/sycamore-router-macro", | ||
"packages/sycamore-web", | ||
# Packages | ||
"packages/sycamore", | ||
"packages/sycamore-core", | ||
"packages/sycamore-futures", | ||
"packages/sycamore-macro", | ||
"packages/sycamore-reactive", | ||
"packages/sycamore-reactive3", | ||
"packages/sycamore-reactive-macro", | ||
"packages/sycamore-router", | ||
"packages/sycamore-router-macro", | ||
"packages/sycamore-web", | ||
|
||
# Examples | ||
"examples/components", | ||
"examples/context", | ||
"examples/counter", | ||
"examples/http-request", | ||
"examples/http-request-builder", | ||
"examples/hydrate", | ||
"examples/iteration", | ||
"examples/js-framework-benchmark", | ||
"examples/hello-builder", | ||
"examples/hello-world", | ||
"examples/higher-order-components", | ||
"examples/motion", | ||
"examples/number-binding", | ||
"examples/ssr", | ||
"examples/svg", | ||
"examples/timer", | ||
"examples/todomvc", | ||
"examples/transitions", | ||
"examples/attributes-passthrough", | ||
"examples/js-snippets", | ||
# Examples | ||
"examples/components", | ||
"examples/context", | ||
"examples/counter", | ||
"examples/http-request", | ||
"examples/http-request-builder", | ||
"examples/hydrate", | ||
"examples/iteration", | ||
"examples/js-framework-benchmark", | ||
"examples/hello-builder", | ||
"examples/hello-world", | ||
"examples/higher-order-components", | ||
"examples/motion", | ||
"examples/number-binding", | ||
"examples/ssr", | ||
"examples/svg", | ||
"examples/timer", | ||
"examples/todomvc", | ||
"examples/transitions", | ||
"examples/attributes-passthrough", | ||
"examples/js-snippets", | ||
|
||
# Website | ||
"docs", | ||
"website", | ||
# Website | ||
"docs", | ||
"website", | ||
|
||
# Tools | ||
"packages/tools/bench", | ||
"packages/tools/bench-diff", | ||
# Tools | ||
"packages/tools/bench", | ||
"packages/tools/bench-diff", | ||
] | ||
|
||
[profile.bench] | ||
debug = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[package] | ||
name = "sycamore-reactive-macro" | ||
categories = ["gui", "wasm", "web-programming"] | ||
description = "Reactive primitives for Sycamore" | ||
edition = "2021" | ||
homepage = "https://github.com/sycamore-rs/sycamore" | ||
keywords = ["wasm", "gui", "reactive"] | ||
license = "MIT" | ||
readme = "../../README.md" | ||
repository = "https://github.com/sycamore-rs/sycamore" | ||
version = "0.9.0-beta.1" | ||
|
||
[lib] | ||
proc-macro = true | ||
|
||
[dependencies] | ||
proc-macro2 = "1.0.60" | ||
syn = "2.0.18" | ||
quote = "1.0.28" |
Oops, something went wrong.