* feat: add dx print command
* small tweak to how client_target is handled
* hotpatching engine wired up!
* small cleanups
* lighter diff
* little bit more light cleanups
* remove changes to manganis
* fix wrong dir error
* move session_cache fixing to prebuild step
* fix the server extension on windows server bundles
* fix formatting
* retry extracting assets if windows antivirus is holding the lock
* fix exe hash with extension
* add a timeout
* wip, make async
* use async methods
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
* Don't output escape codes for the cursor when the tui isn't active
* reset the cursor if we are running in a terminal even if tui active is false
* don't clone tui_active
* wip
* wip: basic telemetry
* fix merge
* keep errors for telemetry
* fix upload when queued events are empty
* add per session id and keep track of build timing
* keep track of what commands are run
* capture panics
* keep track of panics
* better path stripping
* better tracing error telemetry
* only sync every week and check settings before sending any telemetry
* keep track of the args passed to commands
* anonymize commands
* more error tolerant
* wip
* wip
* wip
* merge cnflict
* other merg conflict
* migrate everything from telemetry to logging
* update docs
* wip... about to merge trace controller
* lil bit more refactor to clean up tracer
* more performant log writer
* cleanup ci detecting
* wire up to posthog
* re-uploads work
* yoink out the anon from each file
* cleanup sig
* lil bit cleaner
* dont write empty files
* wip log handler
* fmt
* cleanup logging of backtraces
* add proper backtrace support
* use stable reporter
* adhere to posthog format
* fix stacktraces
* use anyhow for capturing backtraces
* I think we're done?
* cleanup logging
* properly collect!
* move out keycode handling
* she works
* typo
* add extra fields
* fix cargo doc
---------
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
* Use data dir instead of home dir for dioxus-related data
* merge dx dir
* make windows match the pshell
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
* fix linux bundle
* fix release mode
* fix resource path
* only use asset dir if it exists
* add comment about directory structure
* don't unwrap parent
* Add --renderer argument to the CLI
Signed-off-by: Nico Burns <nico@nicoburns.com>
* Make `--platform native` work
Signed-off-by: Nico Burns <nico@nicoburns.com>
* Emit `krates` error when cargo metadata fails
* Reinstate default "desktop" feature for examples
* Remove commented 'no platform specified' error
Signed-off-by: Nico Burns <nico@nicoburns.com>
* use the target tripple and bundle format as the source of truth for the build
* resolve renderer and bundle format
* add shorthand flags
* add headings to the help for shorthands
* resolve the renderer from the target triple if it isn't passed
* make value after --fullstack optional
* convert desktop -> mobile when targeting mobile webview
* use the new shorthand flags in the playwright tests
* fix clippy
* merge fix
* cleanup merge conflicts
* fix clippy
* remove nit
* restore platform as a legacy argument
* improve help message
* vendor openssl on native, pin server_fn
* print build errors as warnings
* add --desktop arg compat
* adjust cli headings
* prefer self.is_wasm_or_wasi()
---------
Signed-off-by: Nico Burns <nico@nicoburns.com>
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
* fix(bundle): add serde default for all fields that impl Default
- Adds #[serde(default)] for all fields of all bundle settings structs
where the types impl Default
- WindowsSettings: derive Default since all types impl Default
Default values for more [bundle] settings #3785
* Add default for Nsis settings
* Add default impl
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
Skip Tailwind watcher in fullstack mode to prevent race conditions between
the watcher and prebuild() both trying to install/run Tailwind simultaneously.
In fullstack mode, the client build's prebuild() properly handles Tailwind
generation, making the watcher redundant and problematic.
Fixes "Text file busy" error when running:
dx serve --fullstack true --platform web
Fixes#4431
* warn if we both find manganis in the dependencies and strip is enabled in the current profile
* bump node
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
* Update dependencies in Cargo.lock
* added in the missing bevy example which was included in recent merge
* undo unneccessary library installation in gh actions
* cleaned up further
* Update dependencies in Cargo.toml and Cargo.lock askana_escape to 0.13
* updated code to make tests work
* updated the wgpu texture example
* replaced all direct reference with use
* fixed wgpu and jsframework errors in benches and examples
* Fix: Import black_box from std::hint
* grand finale upgrade
* updated cargo.lock
* Bump hyper-util to 0.1.15 and plist to 1.7.4
* remove some unused swc dependencies and add a command to update them in the future
---------
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
* wip: openssl autodetection
* add voltaile read inside of asset fn
* support xcode 15 for --device
* vendor openssl on android
* Smaller width TUI
* switch to anyhow for the entire CLI
* add backtrace and print double printing of cargo_metadata errors
* add some padding to multi-line anyhow error
* check semvers
* don't open if not interactive
* set the tailwind current_dir so it doesn't twitch
* get the oboe demo working
* copy the c++ library on android
* cleanup env vars
* add depinfo watcher
* fix stale hotpatches and crate count
* add musl support
* remove outdated autofmt test
* update scanner app
* add hotdog app and bundle to ci
* upload dx on every branch
* collapse mobile into desktop
* `dx doctor` command
* windows command files
* no pipe on doctor
* fix ci?
* fix links
* fix ci
* use main instead of nightly
* bump node
* build cli for host
* cargo doc
* prep dog_app for bundle
* package hotdog
* no bundle or nightly cli
* comment out nightly cli
* add quotes to linker files
* chore(deps): upgrade wry from 0.45.0 to v0.51.2
* Unwrap webview
* update tauri
* fix more versions
* switch to a single websocket per app to communicate edits in desktop
* use websockets on the ts side
* queue pending edits before the websocket connects
* fix decoding the websocket blobs in ts
* rebuild js
* fix clippy
* more sensible struct names
* allow http on android and require a key to match between the webview and native sides
* remove out.txt
* clippy
* small style changes
* More light cleanups
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
* wip: fixes to get docsite working again
* Fix asset location with PIC in hot patched builds
* Add an hidden cli flag to exit early in hot patch tests on failure
* add a test for hot patching with assets
* fix clippy
* fix looks_like_manganis_symbol
* longer timeout for hot patching in CI
* log page content
* log assets
* Log asset after write
* record a playwright trace
* Explicitly enable cargo incremental for hot patching
* fix retry for patch test
* reset asset
* disable hot patching test for new exports
* add nightly playwright
* use different toolchain names
* use beta instead of nightly for less thrashing
* add failing test
* workaround hot reloading bug
* restore swapping asset tests
* add toolchain
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
* Don't use inline scripts and function constructor.
This allows a stricter Content-Security-Policy which is required for web extensions.
* Load module scripts asynchronously
* Extract common code into method
* Fix injecting loading script
* Append to the file instead of reading and appending to the file string
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
* wip: add some spin logging
* wipe dioxus branding if not being used by dioxus
* add --locked, --offline, --frozen
* properly git init with `dx new` and `dx init`
* dont panic in verbosity
* Move build-assets to "tools"
* change ui for dx new offline
* pin tauri-bundle
* pin tauri
* run tailwind once