Evan Almloff
9c2e713dae
fix recycling nodes in native core
2023-08-15 09:30:43 -05:00
Steven Pecht
1ab5a03aef
Use to identify cargo build artifact if present ( #1344 )
2023-08-12 19:25:17 -05:00
Evan Almloff
ee2619abfd
Merge remote-tracking branch 'main/signals' into signals
2023-08-10 17:20:27 -07:00
Evan Almloff
18d255decc
add serde feature to signals
2023-08-10 17:17:25 -07:00
ealmloff
39ab39ac56
Merge branch 'DioxusLabs:master' into signals
2023-08-10 16:31:00 -05:00
Evan Almloff
80ac1a99af
fix miri
2023-08-09 14:20:46 -07:00
Evan Almloff
f91eeccca7
add compile test for unsound case
2023-08-09 10:49:47 -07:00
Evan Almloff
b4983706ac
fix variance on components
2023-08-09 10:26:59 -07:00
Dan Lock
92a8669e14
Make launch functions pub ( #1288 )
...
* Make launch functions pub
* add docs to web, desktop, and server launch functions
---------
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-08-09 11:26:50 -05:00
gmorenz
2a32271fa0
Set response headers from response, not request, parts ( #1328 )
2023-08-08 21:04:15 -05:00
Evan Almloff
3f31b9de43
fix tests
2023-08-08 15:13:02 -07:00
Evan Almloff
24c626b306
fix clippy
2023-08-08 13:43:57 -07:00
Evan Almloff
4ee4cf23d3
restore a few unneeded breaking changes
2023-08-08 13:37:29 -07:00
Evan Almloff
69dab86873
add selector example to readme
2023-08-08 13:27:45 -07:00
Evan Almloff
ba7a663eb6
fix some ownership issues
2023-08-08 13:18:15 -07:00
Evan Almloff
d6089bbd35
add optional dependency variants of selectors and effects
2023-08-08 13:06:33 -07:00
Evan Almloff
e2c08a79ae
fix signal readme example
2023-08-08 11:12:08 -07:00
Evan Almloff
292b3367dd
create some more compelling examples
2023-08-07 18:20:03 -07:00
Evan Almloff
0dc602eb32
Merge branch 'master' into signals
2023-08-07 18:02:19 -07:00
Evan Almloff
ed05abc196
document remaining methods in the signal crate
2023-08-07 18:00:17 -07:00
Evan Almloff
0c17bdb737
don't subscribe in tasks or event handlers
2023-08-07 17:55:29 -07:00
Evan Almloff
4447709ac8
add readmes
2023-08-07 17:49:14 -07:00
Evan Almloff
280d094f67
document generational box
2023-08-07 17:32:25 -07:00
Evan Almloff
cfd68bf7d9
document signals crate
2023-08-07 16:56:49 -07:00
Evan Almloff
2c7d0700d4
rename memo to selector
2023-08-07 16:17:47 -07:00
Evan Almloff
646c161c7d
create read only signal
2023-08-07 16:04:49 -07:00
Evan Almloff
6ca170453b
handle virtual dom switching
2023-08-07 14:59:58 -07:00
Evan Almloff
ddbe913e79
make signals non-breaking
2023-08-07 14:50:36 -07:00
Evan Almloff
84734c4146
change dioxus signal to generational box
2023-08-07 14:34:16 -07:00
Evan Almloff
190c65b15d
fix memo and add tests
2023-08-07 14:31:03 -07:00
Evan Almloff
7f2049b647
add memo
2023-08-07 12:32:46 -07:00
Evan Almloff
717c09c4a3
create tests for signals
2023-08-07 11:52:54 -07:00
Evan Almloff
b0d499036a
make future handling functions global
2023-08-07 11:16:22 -07:00
Brian Donovan
a025617db3
refactor(cli): use more semantic Instant::elapsed
( #1307 )
...
Plus, one of these was incorrectly subtracting the end time from the start time.
2023-08-07 11:08:51 -05:00
Jonathan Kelley
56c3dcc437
Merge pull request #1301 from eventualbuddha/chore/cli/remove-unused-fn
...
chore(cli): remove unused function
2023-08-06 23:09:28 -07:00
Dylan Blokhuis
24df4e15d9
spelling ( #1308 )
2023-08-06 11:42:36 -05:00
Brian Donovan
03e02591ec
fix(cli): allows extracting files without separate directory entries
...
Some zip files do not list directories separately from files. For example, a zip might contain `dir/file.txt` without a corresponding entry for just `dir/`. This should be okay, so we just create the leading paths for the files we extract as necessary.
Also adds tests for the expected and dangerous path cases of `extract_zip`.
2023-08-04 21:28:09 -07:00
Brian Donovan
14e7c50478
fix(cli): prevent "zip slip" vulnerability in tool extract
...
Using the name directly from a zip archive's entry and writing to it is a potential security vulnerability. More information about the vulnerability can be found here: https://security.snyk.io/research/zip-slip-vulnerability and here https://docs.rs/zip/latest/zip/read/struct.ZipFile.html#warnings .
It looks like the previous version maybe tried to remove `\` characters to prevent this, but only in directory paths?
2023-08-04 20:02:07 -07:00
Evan Almloff
dce418140a
create a way to hoist ownership to a different scope
2023-08-04 17:50:05 -07:00
Evan Almloff
b3fbbba711
fix signals in futures
2023-08-04 17:25:40 -07:00
Evan Almloff
a6f611eccf
fix subscriptions in events
2023-08-04 17:23:57 -07:00
Evan Almloff
07ed3e67dd
add check_generation feature flag
2023-08-04 15:46:04 -07:00
Evan Almloff
0032f7e2af
fix miri
2023-08-04 15:23:09 -07:00
Brian Donovan
7a7397bbb4
chore(cli): remove unused module ( #1302 )
...
It seems this was replaced by the `plugin.rs` module in 6cce4b9f4d
.
2023-08-04 17:01:04 -05:00
Brian Donovan
a77ff1c820
docs(cli): update subcommand comments ( #1303 )
...
A bunch of these were copy-pasted from `build`. This commit updates them to be the same as what their `dx help` string is.
2023-08-04 17:00:41 -05:00
Brian Donovan
5c62947835
refactor(cli): move check
module alongside others ( #1304 )
...
There was no reason for `check` to be defined as `check/mod.rs` when all the others were at the top level e.g. `serve.rs`.
2023-08-04 17:00:19 -05:00
Evan Almloff
48b1e9e54c
fix copy dependencies
2023-08-04 14:53:34 -07:00
Evan Almloff
3242fc9e88
add debug impl
2023-08-04 14:49:52 -07:00
Evan Almloff
0be5dbe715
fix the context API
2023-08-04 14:42:19 -07:00
Evan Almloff
2b6b3b67b1
move dioxus copy into a separate package
2023-08-04 14:28:55 -07:00