ealmloff
d83a6d683f
use the workspace version of futures utils
2024-01-27 20:07:16 -06:00
marc2332
63b82b279b
ok
2024-01-27 22:29:28 +01:00
marc2332
fad0607667
feat: Reduce CLI deps
2024-01-27 22:27:23 +01:00
Andrew Voynov
f7041b118d
chore(deps): bump cargo-generate from 0.18 to 0.19
...
When building the `dx` CLI there is 1 less dependency (from 710 to 709).
2024-01-27 21:52:52 +03:00
Evan Almloff
636aeb4b90
integrate liveview with the launch builder
2024-01-22 11:56:34 -06:00
Ege Gungordu
91e378fc5e
mark hot-reload flag incompatible with release
2024-01-20 20:49:45 +03:00
Jonathan Kelley
6ed3aafb2f
Get cargo check --all working
2024-01-18 19:27:55 -08:00
Jonathan Kelley
d8af9b7ed1
Fix compile checks on numerous packages using --all --all-features
2024-01-18 16:27:43 -08:00
Granville Schmidt
b372701d30
fix wording in CLI building waiting message
2024-01-17 18:13:58 -07:00
Evan Almloff
611f0d3b5f
Merge branch 'maybe-sync-signal' into breaking
2024-01-16 13:49:53 -06:00
Evan Almloff
d44b0b34c8
Merge branch 'master' into breaking
2024-01-16 10:38:55 -06:00
hem1t
c6e1b0f728
init
subcommand (#1840 )
...
* `init` subcommand
* clippy
2024-01-16 10:25:07 -06:00
hem1t
1db8bd7edd
Minor fixes in cli ( #1837 )
...
* not using bin, until needed
also removes an unnecessary warning!
* removed redundant line
maybe, it was readability?
* using same `if let` pattern as below
* to `get_bin(args.bin)?` with `Ok(())` at last
* unreachable!
2024-01-16 07:21:01 -06:00
Evan Almloff
d17a04931b
Merge branch 'master' into breaking
2024-01-15 12:01:09 -06:00
Jonathan Kelley
1dde044697
remove cx.render
2024-01-13 21:12:21 -08:00
Jonathan Kelley
fae0b08e61
Fix the router and stub out a number of crates to get compiling
2024-01-13 20:51:37 -08:00
Hampus Lidin
011116b83d
Fix panic when using dev profile ( #1824 )
2024-01-13 13:07:38 -06:00
Jonathan Kelley
f7bf156422
Merge pull request #1810 from DioxusLabs/jk/disambiguate-exprs-in-rsx
...
Disambiguate if expressions in rsx by requiring curlies, allow shorthand component/element initialization
2024-01-11 12:25:59 -08:00
Jonathan Kelley
3ef15577eb
Merge pull request #1807 from ealmloff/assets-optional
...
Only support manganis in the CLI
2024-01-11 12:18:24 -08:00
hem1t
8be9a7192b
using cargo.toml version ( #1813 )
...
- Replaced `CFG_RELEASE` with `CARGO_PKG_VERSION`
- No rerun on `CFG_RELEASE`
2024-01-11 13:50:23 -06:00
Jonathan Kelley
c5dfbd7913
fix test
2024-01-10 22:52:41 -08:00
Evan Almloff
e004c1722f
set the required environment variable for manganis support
2024-01-10 11:19:51 -06:00
ealmloff
e1e29d1404
Merge branch 'master' into maybe-sync-signal
2024-01-09 15:31:31 -06:00
Evan Almloff
663296ae45
make collect-assets not optional in dioxus fullstack
2024-01-09 13:58:28 -06:00
TKirishima
48e413a4f3
fix: no project-name in argument of dx create
( #1803 )
2024-01-09 13:22:38 -06:00
Jonathan Kelley
2876a7deb2
Merge branch 'master' into feat/inline-attributes-fmt
2024-01-08 20:00:14 -08:00
Jonathan Kelley
28a9dc6805
Pin assets sha to keep CI in check
2024-01-08 14:54:02 -08:00
ealmloff
c7e104c0f0
Merge branch 'master' into maybe-sync-signal
2024-01-08 16:27:11 -06:00
Evan Almloff
2cc6f2f51f
fix merge and reorganize the CLI a bit
2024-01-08 13:39:12 -06:00
Evan Almloff
23509ada9f
Merge branch 'master' into cli-config-library
2024-01-08 13:24:16 -06:00
Jonathan Kelley
fb40e72520
Merge pull request #1603 from divinerapier/master
...
Bump tauri bundler for using proxy to fetch resources
2024-01-08 10:38:05 -08:00
ealmloff
f54ee1c361
Merge branch 'master' into map-signal
2024-01-05 18:30:31 -06:00
Jonathan Kelley
785b61a05e
Merge branch 'master' into intigrate-collect-assets
2024-01-05 12:13:31 -08:00
Evan Almloff
4f654d61b7
fix cargo check
2024-01-04 19:05:36 -06:00
Evan Almloff
b1de7d850c
Merge branch 'master' into intigrate-collect-assets
2024-01-04 18:44:29 -06:00
Teague Lasser
334e7e6f22
Updated packages and comments referencing old CLI location ( #1786 )
2024-01-04 18:41:05 -06:00
ealmloff
f913b2ce53
don't cache assets in the CLI ( #1742 )
2024-01-04 09:06:57 -06:00
Bennett-Petzold
80a8e1f512
Add Cargo Arguments and Cross-Architecture Support ( #1777 )
...
* Add passthrough to cargo build
* Add platform_triple flag
* Add handling to bundle and serve commands
* Show full stacked error from Tauri in bundling
Previously only the top-level error was shown, giving only vague data
for debugging the build process
* Adjust bundle platform triple when cross compiling
* Rename --platform-triple to --target
* restore some deleted docs on CLI commands
---------
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-01-02 15:19:29 -06:00
Evan Almloff
cddcd69200
Merge branch 'maybe-sync-signal' into map-signal
2024-01-02 14:17:01 -06:00
Evan Almloff
15dff7ad55
delete a leftover dioxusin file on all unix operating systems, not just mac
2023-12-30 11:58:09 -06:00
Evan Almloff
ab79c00cd8
kill the fullstack server before starting another one
2023-12-29 16:07:44 -06:00
Evan Almloff
49be972507
make dx clean clean the new .dioxus directory
2023-12-29 15:20:30 -06:00
Evan Almloff
1683ec8a72
introduce RAIIChild to drop the child process for desktop even when the exit is not planned
2023-12-29 14:36:18 -06:00
Evan Almloff
d88a662877
Rename --debug to --force-debug and improve docs
2023-12-29 11:11:39 -06:00
Evan Almloff
1acfd46b0b
fix formatting
2023-12-29 10:08:10 -06:00
Evan Almloff
f7881aa1f0
fix some merge conflicts
2023-12-29 09:46:58 -06:00
Evan Almloff
601c63b67f
manually apply debug assertions flag for fullstack debug mode
2023-12-22 09:25:35 -06:00
Evan Almloff
0914298bea
Merge branch 'intigrate-collect-assets' of https://github.com/Demonthos/dioxus into intigrate-collect-assets
2023-12-21 18:05:02 -06:00
Evan Almloff
8b125231f0
make backend and frontend builds happen in parallel
2023-12-21 18:04:35 -06:00
ealmloff
2853b16cd6
Merge branch 'DioxusLabs:master' into intigrate-collect-assets
2023-12-21 14:00:35 -06:00
Evan Almloff
5ab0c48ddd
fix clippy
2023-12-17 17:55:02 -06:00
Evan Almloff
2a764aaf6a
remove some unused CLI imports
2023-12-17 15:42:58 -06:00
Evan Almloff
e7515d18c1
show multiple different error messages in hot reloading
2023-12-17 15:39:48 -06:00
Exotik850
cf413780c1
Make hot reload error only show once ( #1725 )
2023-12-17 15:26:40 -06:00
Evan Almloff
f646f68b60
Merge branch 'master' into maybe-sync-signal
2023-12-15 18:38:06 -06:00
Evan Almloff
70c3abb8df
Merge branch 'master' into maybe-sync-signal
2023-12-14 12:29:32 -06:00
Exotik850
1ec230ae29
Autoformat ignores files in .gitignore
( #1704 )
...
* Make autofmt ignore gitignored files
* don't panic if it can't get the git ignore files
* replace some with ok
* Filter rs files from gitignore
* fmt
* remove early return
* only ignore paths that start with target
---------
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-12-13 09:44:01 -06:00
xfalcon
0cb13942da
fix: command error with dx build --verbose ( #1715 )
...
error msg: cannot set both --verbose and --quiet
2023-12-13 08:30:40 -06:00
YuKun Liu
695bf009d1
fix: dx create not work ( #1709 )
2023-12-11 13:27:55 -06:00
Benjamin Manns
972235bd6f
Fix doc tests by adding formatting to CLI README ( #1706 )
...
The README for cli gets included in lib.rs via `include_str!`. The code snippets then get assumed to be Rust, which fails if running `cargo test --doc`. This is not a huge problem, but was brought to my attention because Nix's `buildRustPackage` runs `cargo test` including doc tests (unlike what get run for this project on CI). This means I can't update the Nix package to 0.4.3 without changing the test flags (which I think I'll see about doing anyways, as that's how Dioxus runs CI).
2023-12-10 12:16:59 -06:00
marc2332
ce5d7bd11b
rename to split-line-attributes
2023-12-09 16:51:41 +01:00
marc2332
52cb5ff951
feat: --inline-attributes
option for autofmt
2023-12-09 11:16:26 +01:00
Evan Almloff
66e2c02bf7
Merge branch 'master' into intigrate-collect-assets
2023-12-08 08:49:17 -06:00
Exotik850
fc31876a57
Wasm target check before build ( #1689 )
...
* Add `rustup show` check for wasm32 target
* better place for check
* fmt
* clippy fmt
2023-12-07 12:35:16 -06:00
Jonathan Kelley
fe7df0c6a5
Merge pull request #1697 from ealmloff/hot-reload-temp-dir
2023-12-07 09:18:10 -08:00
Evan Almloff
9a13df2c73
move hot reload socket into the target directory
2023-12-07 07:00:59 -06:00
Jonathan Kelley
8f1791c039
Merge pull request #1597 from ColonelThirtyTwo/fmt-indent
...
Use indentation settings in dx fmt and vscode extension
2023-12-06 22:06:16 -08:00
Jonathan Kelley
edebe5be4a
Merge pull request #1653 from ealmloff/fix-hot-reload-missing-items
...
Fix missing items in hot reloading diffing
2023-12-06 21:38:36 -08:00
Jonathan Kelley
ea15c6a2eb
Merge branch 'master' into cli-config-library
2023-12-06 21:30:14 -08:00
Jonathan Kelley
d3f6ff703c
Release 0.4.3
...
dioxus@0.4.3
dioxus-autofmt@0.4.3
dioxus-check@0.4.3
dioxus-cli@0.4.3
dioxus-core@0.4.3
dioxus-core-macro@0.4.3
dioxus-desktop@0.4.3
dioxus-fullstack@0.4.3
dioxus-hooks@0.4.3
dioxus-hot-reload@0.4.3
dioxus-html@0.4.3
dioxus-interpreter-js@0.4.3
dioxus-liveview@0.4.3
dioxus-mobile@0.4.3
dioxus-native-core@0.4.3
dioxus-native-core-macro@0.4.3
dioxus-router@0.4.3
dioxus-router-macro@0.4.3
dioxus-rsx@0.4.3
dioxus-signals@0.4.3
dioxus-ssr@0.4.3
dioxus-tui@0.4.3
dioxus-web@0.4.3
dioxus_server_macro@0.4.3
fermi@0.4.3
generational-box@0.4.3
plasmo@0.4.3
rsx-rosetta@0.4.3
Generated by cargo-workspaces
2023-12-06 16:56:35 -08:00
Evan Almloff
b965fc23e9
use a temp directory for the hot reloading pipe on desktop, fullstack and liveview
2023-12-06 17:01:51 -06:00
Raul Cesar Teixeira
8149868ebc
Fixed conflict of "--verbose" and "--quiet" flags ( #1686 )
...
Co-authored-by: Raul Cesar <raul@zideco.dev>
2023-12-04 18:11:02 -06:00
Felix F Xu
d404ddfccf
fix false notification/rebuild for dx hot-reload ( #1684 )
...
* fix false notification/rebuild for dx hot-reload
* Make sure we have permissions and the changed file exists before reading the metadata
---------
Co-authored-by: ealmloff <evanalmloff@gmail.com>
2023-12-03 20:02:30 -06:00
Felix F Xu
a2ca1760c9
Set local_socket_stream to blocking (default) ( #1682 )
2023-12-02 19:25:27 -06:00
Evan Almloff
532ffaa614
fix merge
2023-11-20 18:36:18 -06:00
Evan Almloff
557630c419
Merge branch 'master' into cli-config-library
2023-11-20 18:35:24 -06:00
Evan Almloff
8cf8f66c27
add more logging to desktop hot reloading
2023-11-20 09:47:03 -06:00
Evan Almloff
0ee21dff1e
fix missing item in hot reloading diffing
2023-11-20 09:33:39 -06:00
HJin.me
ff6c7efb41
fix: tailwind.css use absolute path ( #1649 )
2023-11-19 11:22:54 -06:00
Raman Hafiyatulin
098689083d
Related to #1547 : use dioxus-cli
within a workspace (wildcard-members, real package names) ( #1642 )
...
* Related to #1547 : use `dioxus-cli` within a workspace
Although the `dx` CLI allows to specify a package name to chose from workspace members,
it does not support workspace members specified as glob-wildcards.
Neither it respects the effective package name, specified in the crate's `Cargo.toml`.
This PR addresses that issue:
- upon `dx build ...`, if the `--bin` CLI-argument is provided, treat the current dir as a workspace;
- search through the workspace's `members`: resolve each of them with `glob`;
- assume that any workspace member has a `Cargo.toml` in it (cargo does it, so it's okay);
- read said manifest, and check the package name in it;
- if found — there we have our sought package.
* Use cargo-metadata to find out the workspace structure
* glob is unused
2023-11-15 15:14:16 -06:00
Evan Almloff
e11f3fdc48
fix clippy
2023-11-15 09:30:15 -06:00
Evan Almloff
9bb464dd7d
fix cli tests
2023-11-15 09:29:15 -06:00
Evan Almloff
cd48b3b7f9
allow base_path in the CLI
2023-11-15 08:23:12 -06:00
Evan Almloff
1ed66a54cc
fix cli configuration environment variable
2023-11-14 15:50:04 -06:00
Evan Almloff
06be18a591
export lazy current config
2023-11-14 15:34:06 -06:00
Evan Almloff
5dc3486c53
Merge branch 'cli-serde-default' into cli-config-library
2023-11-10 16:26:58 -06:00
ealmloff
79e3fe677f
Merge branch 'master' into cli-serde-default
2023-11-10 16:22:53 -06:00
Evan Almloff
1b7017f67b
fix formatting
2023-11-09 08:36:14 -06:00
Evan Almloff
8a2d170d96
pull out the CLI config data into a separate library
2023-11-08 12:48:25 -06:00
xTeKc
ca556ea9cb
update readme ( #1615 )
...
* Fix wasm-bindgen version mismatch
* fixes #1613
2023-11-06 13:32:42 -06:00
Evan Almloff
4215e2b247
fix cargo.toml/lock path capitalization for linux
2023-11-03 13:09:33 -05:00
divinerapier
f372144fd7
Bump tauri bundler for using proxy to fetch resources
...
Signed-off-by: divinerapier <sihao.fang@outlook.com>
2023-11-03 11:01:00 +08:00
Alex Parrill
52fb080193
Use indentation settings in dx fmt and vscode extension
...
Adds the ability to specify an indent string to public autofmt methods - either
a sequence of spaces or a tab character.
Get the indentation style and size from rustfmt for dx fmt, or from the editor
settings for the vscode extension.
Closes #1595
2023-11-01 17:24:18 -04:00
Evan Almloff
51f342417a
add examples to the default watch path
2023-10-30 14:41:41 -05:00
Falco Hirschenberger
d4e6876ff6
Silence desktop build outputs from cargo ( #1584 )
...
Silence additional disturbing output from cargo in desktop builds
2023-10-27 08:29:43 -05:00
Evan Almloff
9d19f4d204
fix clippy
2023-10-16 10:44:08 -05:00
Evan Almloff
9f729dd6de
fix clippy
2023-10-14 14:32:08 -05:00
ealmloff
a7736284c8
Merge branch 'master' into intigrate-collect-assets
2023-10-12 08:46:27 -05:00
Evan Almloff
b26985ea6c
make debug build of fullstack applications load faster by default
2023-10-10 14:23:58 -05:00
Leonard
2d1234c3d1
Include README and Dioxus logo in package docs ( #1536 )
...
* Include README in docs.rs and add Dioxus logo
* Update README.md
2023-10-10 10:52:48 -05:00
Evan Almloff
b76f129083
Merge branch 'master' into intigrate-collect-assets
2023-10-10 09:57:16 -05:00
Leonard
c65a49fd0f
Remove redundant directories ( #1535 )
...
Also fix typo
2023-10-10 09:50:58 -05:00
Marc Espín
c8c4e85e65
feat: Remove unused deps ( #1447 )
...
* feat: Reduce dioxus-cli deps
* remove more unused deps
2023-10-09 10:14:46 -05:00
Timothy Mertz
cde1e886d6
cli: Add ability for autofmt to read stdin ( #1529 )
...
This change adds the ability for autofmt to read from stdin by using
'-f -' or '--file -'
2023-10-09 08:20:31 -05:00
Sridhar Ratnakumar
0d7bc86250
cli: Log connection errors during dx serve
in desktop apps ( #1515 )
...
* cli: Log connection errors during `dx serve` in desktop apps
* add a note about the dioxus CLI
---------
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-10-09 07:56:23 -05:00
Leonard
459f24d5e9
Clarify where serve warnings come from ( #1524 )
2023-10-05 13:05:14 -05:00
Sridhar Ratnakumar
91752e7220
cli: Fix typo, resouces
( #1516 )
2023-10-04 08:20:13 -05:00
Evan Almloff
e2f50cc689
Merge branch 'master' into intigrate-collect-assets
2023-09-22 07:56:00 -05:00
Leonard
07613c806b
Fix #1367 ( #1471 )
...
* Bump cargo_toml to 1.16.0
* Format
2023-09-18 18:51:04 -05:00
Evan Almloff
f976e08f71
Merge branch 'master' into intigrate-collect-assets
2023-09-17 19:40:14 -05:00
Evan Almloff
070ef6aec9
Merge branch 'master' into cli-serde-default
2023-09-17 19:00:13 -05:00
Evan Almloff
49a127b31e
deduplicate serve code with hot reloading in the CLI crate
2023-09-09 16:18:52 -05:00
Evan Almloff
ffb5de91d1
Merge branch 'master' into intigrate-collect-assets
2023-09-05 13:45:37 -05:00
ealmloff
d5d974d5a3
Bump the dioxus-cli to 0.4.1 ( #1424 )
...
* bump the dioxus-cli version
* bump DIOXUS_CLI_VERSION constant
* Merge branch 'master' into bump-cli
2023-09-04 15:10:27 -05:00
Jonathan Kelley
4009064767
Merge pull request #1415 from ealmloff/pin-tauri-deps
...
Pin Tauri dependencies to a minor version
2023-09-04 11:30:25 -07:00
Evan Almloff
148b35a87a
fix clippy
2023-09-04 08:42:30 -05:00
Evan Almloff
282e098086
Merge branch 'master' into intigrate-collect-assets
2023-09-04 08:42:14 -05:00
Marc Espín
95887e836c
fix: Add the --locked param to every cli installation command ( #1427 )
2023-09-04 07:28:38 -05:00
Evan Almloff
bc94f36934
restrict tauri bundler version to 1.3.0 only
2023-09-03 13:36:56 -05:00
YuKun Liu
2cfa0e4ea9
fix: prettier_build unavailabe ( #1410 )
...
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-09-02 18:31:34 -05:00
Evan Almloff
71264b1ee3
bump bundler to "=1.3.*"
2023-09-02 18:28:44 -05:00
Evan Almloff
24f22b1b87
Merge branch 'master' into pin-tauri-deps
2023-09-02 18:15:29 -05:00
Leonard
94f76946fc
Improve CLI docs ( #1404 )
...
* Improve CLI docs
* Fixed all the typos (hopefully).
* Improved the bad English. This encompasses grammar, vocabulary, generally awkward phrases, etc. The result is easier to read and understand, and in some cases shorter.
* Made some formatting improvements. This includes making formatting more consistent, but I changed some of it to be better, at least in my opinion.
* Removed certain unnecessities, the biggest one being the commands documentation. I think this is unnecessary because of the `dx --help` command. It also needs to be updated every time a command gets added/updated/removed. It doesn't really provide much extra insight than `dx --help`.
* Improved plugin documentation. I added a warning to ignore all of it, which is ironic, but the fact is that plugins are probably going to change. But by the time I learned that, I already made some changes to the plugin docs. This includes a better guide on how to get started (although still bad since the plugin system is too messy), and some general changes like the aforementioned English or formatting.
* And more. I can't list it all, but I didn't use any destructive changes. The content might be reformatted (to be shorter or easier to understand), but the meaning isn't lost.
* Fix grammar in packages/cli/docs/src/creating.md
Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com>
* Update README.md
* Change config example
---------
Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com>
2023-09-02 17:59:20 -05:00
fanyang
4511b37da8
Fix cli compile error due to tauri bundler adding fields ( #1416 )
...
New fields for debian settings:
- desktop_template
For NSIS settings:
- custom_language_files
- template
2023-09-02 06:44:31 -05:00
Evan Almloff
d94e2c104c
pin Tauri dependencies to a minor version
2023-09-01 10:27:28 -05:00
Evan Simkowitz
de87ba6548
Update all uncommented commands to remove actions-rs ( #1366 )
...
* Update all uncommented commands to remove actions-rs (#1 )
* install target in toolchain action
* add linux target explicitly
* try latest
* fix install
2023-08-22 19:48:03 -05:00
Evan Almloff
e162e3e4cf
fix formatting
2023-08-21 16:07:49 -05:00
Evan Almloff
99268acc05
add an option to skip assets in the CLI
2023-08-21 16:05:25 -05:00
Evan Almloff
5eca11fe3d
update collect assets name
2023-08-18 14:54:57 -05:00
Evan Almloff
4ee2bc259d
fix clippy
2023-08-18 14:45:03 -05:00
Evan Almloff
1c58352456
implement fullstack assets integration
2023-08-18 14:30:23 -05:00
Evan Almloff
afb8578605
Merge branch 'fullstack-serve' into intigrate-collect-assets
2023-08-18 14:03:55 -05:00
Evan Almloff
e3aac14ec9
make clippy happy
2023-08-18 13:57:05 -05:00
Evan Almloff
bd743fa2f9
Add fullstack platform to serve and build commands
2023-08-18 13:55:00 -05:00
Evan Almloff
1ed814668a
Set an environment variable during serve for bundling
2023-08-18 11:12:56 -05:00
Evan Almloff
9bfe9682b5
integrate with the bundle command
2023-08-18 10:27:38 -05:00
Evan Almloff
213b80790b
fix release desktop builds
2023-08-18 09:55:49 -05:00
Evan Almloff
62f8e0f727
fix fullstack assets
2023-08-17 09:56:59 -05:00
Vinicius Gobbo Antunes de Oliveira
fa39408d58
If mkcert not enabled, require cert_path and key_path to be specified or error. ( #1342 )
2023-08-17 07:58:56 -05:00
Evan Almloff
77d11f6d9a
Fix the asset config in the CLI
2023-08-16 17:24:30 -05:00
Evan Almloff
c402b6cd36
collect assets in desktop debug mode
2023-08-16 17:01:51 -05:00
Evan Almloff
8d3c11ef15
inject included styles and preload images into the head
2023-08-16 16:16:34 -05:00
Evan Almloff
0ec085fbbd
add collect assets
2023-08-16 14:03:28 -05:00
Evan Simkowitz
3e24b3d34a
Publish CLI binaries for cargo-binstall ( #1358 )
...
* add test release pipeline
* fix
* debug
* oops forgot checkout
* debug
* fix if
* blah
* fix working dir
* fix cargo build path
* add publish step
* add cache
* fix path
* use package instead of working dir
* fix cache path
* fix typo in checksum
* fix upload artifact loop
* add more comments
* add binstall metadata
* test simplified action
* fix target
* remove dispatch
* fix permissions
* remove mac arm config
* update comments
* update comment
* replace unmaintained actions-rs
2023-08-15 13:41:32 -05:00
Steven Pecht
1ab5a03aef
Use to identify cargo build artifact if present ( #1344 )
2023-08-12 19:25:17 -05:00
Evan Almloff
8d1c17ba7d
fix clippy
2023-08-09 11:10:41 -07:00
Evan Almloff
8b4e0b3e07
Use serde default instead of options in the CLI
2023-08-08 15:33:48 -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
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
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
Brian Donovan
63bb5cc758
chore(cli): remove unused function
...
I believe that technically this function is part of the public API via `dioxus_cli::cli::cfg::parse_public_url`. However, I don't see any evidence that this function is actually used inside or outside this crate. The last use within the crate was removed in January 2022 (9bb10c65a3
).
2023-08-04 13:52:49 -07:00
Brian Donovan
6d154b5072
Minor Proxy Improvements ( #1289 )
...
* fix(serve): provide a clear error with pathless proxy URLs
Without this, `dx serve` panics with this message:
```
Paths must start with a `/`. Use "/" for
root routes
```
That's not very clear. Instead, we can detect this situation and provide a better error message:
```
Error: 🚫 Serving project failed: Failed to establish proxy: Proxy backend URL must have a non-empty path, e.g. http://localhost:8080/api instead of http://localhost:8080
```
* docs(config): correct format for `web.proxy`
2023-08-04 13:44:56 -05:00
Brian Donovan
ab1d64bc4a
docs(cli): fix typo ( #1294 )
...
"tripple" should be "triple".
2023-08-04 12:49:31 -05:00
Jonathan Kelley
39e89c1fac
Bump crate versions, fix any publish errors
2023-07-31 18:49:54 -07:00
Jonathan Kelley
8a875acdd2
Adjust versions, add authors, move server macro to top level
2023-07-31 17:59:36 -07:00
Jonathan Kelley
418c03e2cd
Merge pull request #1252 from Demonthos/non-generic-link
...
Remove autogenerated functions/components from the routable macro
2023-07-26 18:11:32 -07:00
Evan Almloff
7bf0926938
use tauri bundle 1.2
2023-07-26 12:53:00 -07:00
Evan Almloff
489338d642
create cli bundle command
2023-07-26 12:40:50 -07:00
Evan Almloff
e7a9161066
fix link component
2023-07-26 10:18:39 -07:00
Jonathan Kelley
6751d5941b
Merge pull request #1215 from eventualbuddha/feat/check/rules-of-hooks
...
feat(check): adds `dx check`
2023-07-25 11:57:02 -07:00
Brian Donovan
dc7e1a5f13
docs(clean): fix copy-paste docs from build
( #1240 )
2023-07-24 11:32:13 -05:00
Brian Donovan
420bc39ecc
docs(cli): re-sync dx --help
output
2023-07-23 18:57:23 -07:00
Brian Donovan
2c2534d1cc
feat(check): adds dx check
...
At the moment this only checks the Rules of Hooks, ensuring that hook functions (i.e. `use_*`) are being called as expected.
https://dioxuslabs.com/docs/0.3/guide/en/interactivity/hooks.html
Closes #1202
2023-07-23 16:06:55 -07:00
Jonathan Kelley
91d4207fa7
Merge branch 'master' into feature/use-shared-state-better-diagnostics
2023-07-20 10:51:10 -07:00
Jonathan Kelley
f0289068a2
Merge pull request #1219 from Demonthos/improve-build-times
...
Halve Build Times
2023-07-20 10:50:15 -07:00
Andrea Frigido
dccad58f1d
Update license field following SPDX 2.1 license expression standard
2023-07-20 18:00:07 +01:00
Evan Almloff
beb56b93a0
more clippy fixes
2023-07-20 09:06:12 -07:00
Jonathan Kelley
1ed277154a
Merge pull request #1210 from Demonthos/desktop-serve-cli
...
Move desktop hot reload into the CLI
2023-07-19 19:48:09 -07:00
Evan Almloff
b6ea722d94
fix some edge cases around multiline attributes
2023-07-19 16:59:20 -07:00
Jonathan Kelley
90d23714da
Fix clippy around pathbuf
2023-07-19 13:44:38 -07:00
Jonathan Kelley
9185afdba8
Merge branch 'master' into desktop-serve-cli
2023-07-19 13:33:02 -07:00
Evan Almloff
3d8d8a1b6f
half-build-times
2023-07-19 10:19:23 -07:00
Jonathan Kelley
31a68a9743
Rename dioxus to dx
2023-07-18 18:33:14 -07:00
Jonathan Kelley
cd30b42e2d
Merge branch 'master' into jk/remove-dioxus-bin
2023-07-18 18:31:48 -07:00
Evan Almloff
f3b3c0698b
fix clippy
2023-07-18 12:43:02 -07:00
Evan Almloff
4a0869de7b
cargo fix
2023-07-18 12:41:48 -07:00
Evan Almloff
98e2b4acbd
fix normal desktop serve
2023-07-18 12:40:47 -07:00
Evan Almloff
2c1c147828
fix desktop hot reloading
2023-07-18 11:55:56 -07:00
Evan Almloff
0c5025ffa0
WIP desktop serve hot reload
2023-07-18 10:24:29 -07:00
Evan Almloff
f2c4233ef4
Merge branch 'master' into router-typesafe
2023-07-17 17:24:42 -07:00
Miles Murgaw
056effb87c
feat: --bin docs
2023-07-17 18:24:03 -04:00
Evan Almloff
7453486448
fix formatting
2023-07-17 15:12:57 -07:00
Miles Murgaw
4b70b1ce96
revision: find bin from workspace Cargo.toml
2023-07-17 14:30:05 -04:00
Miles Murgaw
9fab3cf4e3
Merge branch 'master' into cli-stuff
2023-07-15 12:40:23 -04:00
Brian Donovan
9cef71b6b9
fix(cli): improve error message for invalid config ( #1200 )
...
Previously an invalid `Dioxus.toml` file would yield this error when running e.g. `dx serve`:
```
Error: Failed to load `Dioxus.toml` because: Dioxus.toml parse failed
```
This doesn't give any indication why it failed to parse. This commit updates it to include why the parsing failed, e.g.:
```
Error: Failed to load Dioxus config because: Dioxus.toml missing field `name` for key `application` at line 38 column 1
```
I initially had it format the message to include `Dioxus.toml:38:1` to be clickable in some terminals, but the location specified didn't always seem particularly relevant to the actual problem so I left it as-is.
This also fixes what I believe would be an issue on case-sensitive file systems where if `dioxus.toml` existed it would try to read `Dioxus.toml`.
I'm still fairly new to Rust, so the `.as_path()` calls may not be the best way to deal with the fact that the borrow checker wouldn't let me re-use `crate_dir` and `dioxus_conf_file`. I'm open to suggestions!
2023-07-15 11:13:22 -05:00
Miles Murgaw
d710b92696
fix: do it correctly
2023-07-14 20:41:27 -04:00
Miles Murgaw
41fd7a1040
feat: bin flag for serve and build
2023-07-14 20:06:54 -04:00
Miles Murgaw
9d259b6073
revision: remove nestedness
2023-07-14 18:30:27 -04:00
Jonathan Kelley
9d2b44aa0f
Merge branch 'master' into feature/use-shared-state-better-diagnostics
2023-07-14 15:07:53 -07:00
Jonathan Kelley
df23c3c651
Update more docs
2023-07-14 13:58:49 -07:00
Jonathan Kelley
16763c065b
Rename dioxus to dx in examples and fullstack
2023-07-14 13:53:06 -07:00
Jonathan Kelley
d27af03e3f
Remove the dioxus bin from the cli
2023-07-14 13:52:54 -07:00
Miles Murgaw
120fccc53d
fix: full & hot reload
2023-07-12 02:09:13 -04:00
Miles Murgaw
5bc9e4556b
feat: custom mkcert paths
2023-07-11 23:01:37 -04:00
Miles Murgaw
b47e4fedcc
feat: default web.https config
2023-07-11 19:49:41 -04:00
niedzwiedzw
f159779af4
make thiserror a workspace dependency everywhere else
2023-07-11 22:54:24 +02:00