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