Commit Graph
373 Commits
Author SHA1 Message Date
Miles Murgaw 01c5716128 revision: template creation message (#3320) 2024-12-17 15:19:15 -08:00
Jonathan Kelley 040dc54200 add helpful message for obscure cargo failures (#3380) 2024-12-17 15:14:28 -08:00
Jonathan Kelley fa48016d0c Fix space remaining (again) (#3377)
This commit was tested in a separate project
2024-12-17 13:42:09 -08:00
Jonathan Kelley 95cde59606 fix space remaining mis calc in cli frame causing tears (#3371) 2024-12-17 10:56:16 -08:00
Jonathan Kelley eb76d48eae Fix: unwraps while ignoring log lines (#3370) 2024-12-16 17:13:52 -08:00
Miles MurgawandJonathan Kelley ccf500c77b Feat: CLI wasm-bindgen-cli Installer (#3335)
* feat: wasm-bindgen-cli installer

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-12-11 11:27:11 -08:00
Jonathan Kelley 94a499c900 fix: print error: messages and their contents from cargo (#3336) 2024-12-10 21:50:24 -08:00
Jonathan Kelley 49caa2b113 fix: toasts (#3333) 2024-12-10 21:11:05 -08:00
Jonathan Kelley e598cfe31c Fix merge conflict causing CLI lifetime to be wrong 2024-12-10 17:08:45 -08:00
Jonathan Kelley ca70e8660d feat: android asset hotreloading (#3332) 2024-12-10 16:46:30 -08:00
Miles Murgaw b20c8ac277 Fix: Windows Manganis Asset Hot Reload (#3330)
* fix: windows asset hot reload

* revision: canonicalize err handling
2024-12-10 16:24:39 -08:00
Jonathan Kelley d7d2c2fd53 Fix: move the hotreload msg into debug-only so it's so long 2024-12-06 18:18:34 -08:00
Jonathan Kelley 1fd5680937 fix: asset copy counter 2024-12-06 18:00:16 -08:00
Jonathan Kelley 995a529b2f feat: some simple UI tweaks to CLI (#3301) 2024-12-06 15:15:42 -08:00
Jonathan Kelley 02b2a12011 make wasm compile a bit faster 2024-12-06 13:43:55 -08:00
Jonathan Kelley fb85726084 longer ssg timeout 2024-12-06 12:12:00 -08:00
Jonathan Kelley 2c9d8aea56 fix: allow post_create on dx new to fail silently 2024-12-06 12:04:02 -08:00
Miles Murgaw f3b6ec5a2c fix: flush cargo logs (#3282) 2024-12-05 10:50:30 -08:00
Jonathan Kelley e6f76c7e75 fix wasm-bindgen verify logic 2024-12-04 18:34:43 -08:00
Jonathan Kelley 0974550c9f fix: line clipping and overlapping (#3291) 2024-12-04 17:50:18 -08:00
Jonathan Kelley 54db36c023 Chore: small tweaks to cli logging + cfbundlename 2024-12-02 17:20:44 -08:00
Jonathan Kelley 1cbfcde6cd improve build times by extracting asset opt into its own crate (#3273)
* improve build types by extracing asset opt as a dylib
* dont use dylib, but let regular workspace caching do the heavy lifting
* add prebuild to cli for better lock contention
* hoist deps
* disable slow tests
* re-enable sequential, debug=0 for dev
* use vfs for windows
* dont cache on failure, fix windows vfs caceh
* free disk space re-order
* add clippy + fmt to windows channel
* yoink makefile
* proper rustfmt/clippy on toolchain
* set incremental to zero since cargo-cache disables it
2024-12-02 16:52:40 -08:00
Jonathan Kelley b114ed39f3 drop reference types due to deprecation, pin browserlist (fix ci) (#3272)
* drop reference types due to deprecation

* also downgrade browserlist
2024-12-02 13:34:14 -08:00
Miles Murgaw 2c1215c6a4 fix: legacy folder asset (#3264) 2024-12-02 11:34:34 -08:00
Evan Almloff 3d62fbf021 Fix base path on web and fullstack (#3247)
* Create a crate for constant serialization of config structs for manganis

* use SerializeConst for the image asset builder

* switch to a declarative macro for assets

* clean up asset macro a bit

* add serializable options for each asset type

* serialize const vec

* Add unique path formatting

* implement the new manganis macro

* optimize assets in the CLI

* Fix clippy

* Fix assets with dioxus formattable

* reduce fuzzing test limits

* use the new syntax in examples

* fix formatting

* Final doc and test pass on const-serialize

* fix avif support

* Fix manganis doc tests

* cache asset optimization

* Split out asset and bundled asset

* make hash pointer width independent

* remove const serialize cargo lock

* Fix manganis macro docs

* all tests passing

* add constvec::is_empty method to fix clippy lint

* remove nasm feature

* simplify test_rsplit_once test so typos passes

* fix range syntax for stable

* revert example change from clippy fix

* remove dioxus-static-site-generation workspace dependency

* always accept unix paths

* fix windows path seperator

* fix folder asset hash

* Optimize assets in a blocking task

* Fix asset options docs

* Document Asset and BundledAsset

* move manganis back into it's own folder

* simplify the linker macro a bit

* add more docs to AssetParser expansion

* fix manganis core doc test

* add image format helpers

* Fill in new cargo.tomls

* fix folders with explicit options

* Split by  both unix and windows path separators and take the smallest one

* fix string length

* Fix base path on web and fullstack

* Fix assets with base path

* fix fullstack base route with trailing slash

* fix clippy
2024-11-27 10:40:55 +03:00
Miles Murgaw 3af7d34ef3 Fix: CLI Windows Write exe Errors (#3239)
* fix: windows write exec errors
* revision: gate kill_all behind windows
2024-11-26 18:14:35 +01:00
Evan Almloff f9617c8d33 Restore manganis optimizations (#3195)
* Create a crate for constant serialization of config structs for manganis
* use SerializeConst for the image asset builder
* switch to a declarative macro for assets
* add serializable options for each asset type
* implement the new manganis macro
* optimize assets in the CLI
* Fix assets with dioxus formattable
* reduce fuzzing test limits
* use the new syntax in examples
* fix avif support
* Fix manganis doc tests
* cache asset optimization
* Split out asset and bundled asset
* make hash pointer width independent
* Fix manganis macro docs
* add constvec::is_empty method to fix clippy lint
* remove nasm feature
* simplify test_rsplit_once test so typos passes
* revert example change from clippy fix
* always accept unix paths
* fix windows path seperator
* fix folder asset hash
* Optimize assets in a blocking task
* Fix asset options docs
* Document Asset and BundledAsset
* simplify the linker macro a bit
* add more docs to AssetParser expansion
* add image format helpers
* Split by  both unix and windows path separators and take the smallest one
2024-11-26 18:12:24 +01:00
Jonathan Kelley 493c5c7532 properly expose all symbls in manganis without linker intercept (#3230)
* force a volatile read of manganis symbols to preserve them in the final binary
2024-11-17 00:36:56 -05:00
Jonathan Kelley 017478d212 feat: traverse the target directory instead of intercepting the linker to collect assets (#3228)
* feat: simply traverse the filesystem instead of intercepting the linker

* handle LTO approach too

* typo...

* add deeplinker just in case
2024-11-16 22:15:00 -05:00
Jonathan Kelley fe1dd03732 only specify branch if it's none 2024-11-16 14:32:34 -05:00
Jonathan Kelley 7d353c9f17 feat: enable versioned templates (#3223)
* feat: enable versioned templates

* no subtemplate for 0.6
2024-11-16 12:56:03 -05:00
Andrew Voynov fca5a82e2b Fix (and rewrite) dx init/dx new (#2822)
* fix(cli)!: init subcommand now works correctly
* test(cli): added tests for init subcommands
* chore: moved `init` subcommand tests to its own file
* removed unnecessary arguments from tested command
* refactor(cli)!: new subcommand now behaves like cargo
* moved the hidden cursor workaround into a function
* feat(cli): added `branch` flag for init/new subcommands
* feat(cli): added `revision` and `tag` options
2024-11-16 01:20:59 -05:00
Jonathan Kelley fb7c568275 fix: java_home and cli swallowing logs (#3221)
* fix: http examples with android, add more important flags
- set java_home from assumed installations
- fix tracing redirection bug
2024-11-15 23:23:45 -05:00
Jonathan Kelley 992c2b0b9c feat: add keep-symbols flag, change ssg format to Vec<String> (#3217) 2024-11-15 02:06:01 -05:00
Miles Murgaw af53354b28 Feat: Android Dynamic Arch Support (#3215)
* feat: android multi-arch support

* revision: make krate immutable

* revision: minor tweaks

* revision: make pub crate

* revision: dedup arch access

* revision: minor tweaks
2024-11-14 13:24:48 -05:00
Jonathan Kelley 5ecbb6594c fixes: light qol fixes for ssg and logging on dx run (#3216) 2024-11-14 13:11:13 -05:00
Jonathan Kelley 8a2922c663 feat: allow android apps with any name, fix android + windows for aarch64 target (#3213)
* use llvm objcopy to rename syms
* use handlebars
* it works!
* remove linker code
* better docs internally about dev.dioxus.main
* use bundle identifier
* double check bundle identifier is proper
2024-11-13 18:48:21 -05:00
Jonathan Kelley c1f3a6868e fix: autodetect android install (#3200)
* fix: autodetect android install

* use clang
2024-11-12 10:26:00 -05:00
Jonathan Kelley ac3e33af46 cli json output, dx bundle fix, dx serve --platform android, race condition, drop ssg platform (#3186)
* clean up logging to avoid random extra trace

* fix race condition with updates

* properly wire up verbose

* fix bundling (macos) and logging

* Add structured output

* clean up clap names

* extract out wire format

* switch structured key to json

* fix random println, fallback to `dioxus/platform`

* clean up logging for run/build

* clean up logging around project

* remove manual exits

* fix tokio runtime for mobile

* rework dog app

* rip out ssg

* Switch dioxus/axum to dioxus/server

* add android template inline

* pre restructure for bundle prep

* add the whole res directory

* Better theme for the app

* remove mobile demo now that most apps work natively

* self-referential android

* only use deep linking for assets

* fix imports for android

* clippy, fixup ios and android

* I'm not boxing compiler message you can't make me

* fix clippy on unix
2024-11-12 09:01:01 -05:00
Miles Murgaw 8a998e7d49 fix: fullstack server exec ext (#3198) 2024-11-12 08:57:55 -05:00
Jonathan Kelley 8b586352a2 Make wasm-bindgen parallel/disable log, speed up 2-10x (#3161)
* wip: pull out incr linker intercept and debug=true for wasm for faster builds

* make walrus parallel

* clean up impl
2024-11-04 18:32:23 -08:00
Jonathan Kelley cf64eb909b fmt 2024-11-01 17:18:55 -07:00
Jonathan Kelley d126466702 Convert warn to trace to silence warnings before launching in serve 2024-11-01 17:15:54 -07:00
Jonathan Kelley aa9216d34c fix: clippy 2024-11-01 15:55:35 -07:00
Jonathan Kelley 24b6853c24 reset log levels 2024-11-01 15:18:41 -07:00
Jonathan Kelley 85c4c09811 feat: enable ssg using /api/static_routes (#3157)
* feat: enable ssg using  `/api/static_routes`
2024-11-01 15:02:23 -07:00
Jonathan Kelley a35655a457 fix: don't panic while reading file in hotreload (#3142) 2024-10-30 00:37:49 -07:00
Jonathan Kelley 6216a26a40 fix: allow deadcode for rustflags 2024-10-29 17:05:04 -07:00
Jonathan Kelley c487071cfd Don't set rustflags in CLI 2024-10-29 17:02:14 -07:00
Miles Murgaw 9ebcbc6bd9 fix: no-default-features (#3130) 2024-10-28 12:27:35 -07:00