Emil Ernerfeldt
a9272e0e55
Update dependencies in Cargo.lock ( #3401 )
...
* Update to ehttp 0.3.1 with better error messages
* Explain why we are using an old cocoa
* cargo update
❯ cargo update
Updating crates.io index
Updating accesskit v0.11.0 -> v0.11.2
Updating accesskit_consumer v0.15.0 -> v0.15.2
Updating accesskit_macos v0.7.0 -> v0.9.0
Updating accesskit_unix v0.5.0 -> v0.5.2
Updating accesskit_windows v0.14.0 -> v0.14.3
Updating accesskit_winit v0.14.0 -> v0.14.4
Updating addr2line v0.19.0 -> v0.21.0
Removing ahash v0.7.6
Updating aho-corasick v1.0.1 -> v1.1.1
Adding allocator-api2 v0.2.16
Updating android-activity v0.4.1 -> v0.4.3
Adding android-tzdata v0.1.1
Updating anyhow v1.0.71 -> v1.0.75
Updating arboard v3.2.0 -> v3.2.1
Updating arrayvec v0.7.2 -> v0.7.4
Updating async-channel v1.8.0 -> v1.9.0
Updating async-executor v1.5.1 -> v1.5.3
Adding async-fs v1.6.0
Updating async-lock v2.7.0 -> v2.8.0
Adding async-process v1.8.0
Updating async-recursion v1.0.4 -> v1.0.5
Adding async-signal v0.2.1
Updating async-task v4.4.0 -> v4.4.1
Updating async-trait v0.1.68 -> v0.1.73
Adding atomic-waker v1.1.2
Updating backtrace v0.3.67 -> v0.3.69
Adding base64 v0.21.4
Updating bindgen v0.65.1 -> v0.68.1
Updating bitflags v2.3.1 -> v2.4.0
Adding blocking v1.4.0
Updating bumpalo v3.13.0 -> v3.14.0
Updating bytemuck v1.13.1 -> v1.14.0
Updating bytemuck_derive v1.4.1 -> v1.5.0
Updating bytes v1.4.0 -> v1.5.0
Updating calloop v0.10.5 -> v0.10.6
Updating cc v1.0.79 -> v1.0.83
Updating cfg-expr v0.15.1 -> v0.15.5
Updating chrono v0.4.24 -> v0.4.31
Updating cocoa-foundation v0.1.1 -> v0.1.2
Updating concurrent-queue v2.2.0 -> v2.3.0
Updating core-graphics-types v0.1.1 -> v0.1.2
Updating cpufeatures v0.2.7 -> v0.2.9
Updating crossbeam-utils v0.8.15 -> v0.8.16
Adding deranged v0.3.8
Removing dirs v4.0.0
Removing dirs-sys v0.3.7
Updating dlib v0.5.0 -> v0.5.2
Updating dyn-clone v1.0.11 -> v1.0.14
Updating either v1.8.1 -> v1.9.0
Updating enum-map v2.5.0 -> v2.6.3
Updating enum-map-derive v0.11.0 -> v0.14.0
Updating enumflags2 v0.7.7 -> v0.7.8
Updating enumflags2_derive v0.7.7 -> v0.7.8
Updating enumn v0.1.8 -> v0.1.12
Adding equivalent v1.0.1
Updating errno v0.3.1 -> v0.3.3
Adding event-listener v3.0.0
Updating fancy-regex v0.7.1 -> v0.11.0
Adding fastrand v2.0.1
Adding fdeflate v0.3.0
Updating flate2 v1.0.25 -> v1.0.27
Updating form_urlencoded v1.1.0 -> v1.2.0
Updating getrandom v0.2.9 -> v0.2.10
Updating gimli v0.27.2 -> v0.28.0
Updating glutin v0.30.8 -> v0.30.10
Updating glutin_egl_sys v0.5.0 -> v0.5.1
Updating gpu-descriptor v0.2.3 -> v0.2.4
Updating gpu-descriptor-types v0.1.1 -> v0.1.2
Adding hashbrown v0.14.0
Updating hermit-abi v0.3.1 -> v0.3.3
Updating iana-time-zone v0.1.56 -> v0.1.57
Updating idna v0.3.0 -> v0.4.0
Updating image v0.24.6 -> v0.24.7
Adding indexmap v2.0.0
Updating io-lifetimes v1.0.10 -> v1.0.11
Updating is-terminal v0.4.7 -> v0.4.9
Updating itoa v1.0.6 -> v1.0.9
Updating libc v0.2.144 -> v0.2.148
Adding linux-raw-sys v0.4.7
Updating lock_api v0.4.9 -> v0.4.10
Updating log v0.4.17 -> v0.4.20
Updating memchr v2.5.0 -> v2.6.3
Adding memoffset v0.7.1
Updating miniz_oxide v0.6.2 -> v0.7.1
Updating mio v0.8.6 -> v0.8.8
Adding nix v0.26.4
Updating num-traits v0.2.15 -> v0.2.16
Adding num_enum v0.6.1
Adding num_enum_derive v0.6.1
Updating object v0.30.3 -> v0.32.1
Updating once_cell v1.17.1 -> v1.18.0
Updating orbclient v0.3.45 -> v0.3.46
Updating os_str_bytes v6.5.0 -> v6.5.1
Updating parking v2.1.0 -> v2.1.1
Updating parking_lot_core v0.9.7 -> v0.9.8
Updating paste v1.0.12 -> v1.0.14
Updating percent-encoding v2.2.0 -> v2.3.0
Updating pin-project-lite v0.2.9 -> v0.2.13
Adding piper v0.2.1
Updating plist v1.4.0 -> v1.5.0
Updating png v0.17.7 -> v0.17.10
Updating prettyplease v0.2.5 -> v0.2.15
Updating proc-macro2 v1.0.58 -> v1.0.67
Updating profiling v1.0.8 -> v1.0.11
Updating quick-xml v0.26.0 -> v0.29.0
Updating quote v1.0.27 -> v1.0.33
Updating regex v1.8.2 -> v1.9.5
Adding regex-automata v0.3.8
Removing regex-syntax v0.6.29
Removing regex-syntax v0.7.2
Adding regex-syntax v0.7.5
Updating ron v0.8.0 -> v0.8.1
Removing rustix v0.37.19
Adding rustix v0.37.23
Adding rustix v0.38.14
Updating rustls v0.20.8 -> v0.21.7
Adding rustls-webpki v0.100.3
Adding rustls-webpki v0.101.6
Updating ryu v1.0.13 -> v1.0.15
Updating scopeguard v1.1.0 -> v1.2.0
Updating serde v1.0.163 -> v1.0.188
Updating serde_derive v1.0.163 -> v1.0.188
Updating serde_json v1.0.96 -> v1.0.107
Updating serde_repr v0.1.12 -> v0.1.16
Updating serde_spanned v0.6.2 -> v0.6.3
Updating sha1 v0.10.5 -> v0.10.6
Updating shlex v1.1.0 -> v1.2.0
Adding signal-hook-registry v1.4.1
Adding simd-adler32 v0.3.7
Updating siphasher v0.3.10 -> v0.3.11
Updating slab v0.4.8 -> v0.4.9
Updating smallvec v1.10.0 -> v1.11.1
Updating smithay-client-toolkit v0.16.0 -> v0.16.1
Updating strict-num v0.1.0 -> v0.1.1
Updating syn v2.0.16 -> v2.0.37
Updating syntect v5.0.0 -> v5.1.0
Updating system-deps v6.1.0 -> v6.1.1
Updating target-lexicon v0.12.7 -> v0.12.11
Updating tempfile v3.5.0 -> v3.8.0
Updating termcolor v1.2.0 -> v1.3.0
Updating thiserror v1.0.40 -> v1.0.49
Updating thiserror-impl v1.0.40 -> v1.0.49
Removing time v0.1.45
Removing time v0.3.21
Adding time v0.3.29
Updating time-core v0.1.1 -> v0.1.2
Updating time-macros v0.2.9 -> v0.2.15
Updating toml v0.7.4 -> v0.7.8
Updating toml_datetime v0.6.2 -> v0.6.3
Updating toml_edit v0.19.9 -> v0.19.15
Updating tracing-attributes v0.1.24 -> v0.1.26
Updating ttf-parser v0.19.0 -> v0.19.2
Updating tts v0.25.5 -> v0.25.6
Updating typenum v1.16.0 -> v1.17.0
Updating unicode-ident v1.0.8 -> v1.0.12
Updating unicode-width v0.1.10 -> v0.1.11
Updating ureq v2.6.2 -> v2.7.1
Updating url v2.3.1 -> v2.4.1
Updating waker-fn v1.1.0 -> v1.1.1
Updating walkdir v2.3.3 -> v2.4.0
Removing wasi v0.10.0+wasi-snapshot-preview1
Updating wasm-bindgen-futures v0.4.36 -> v0.4.37
Updating webbrowser v0.8.10 -> v0.8.11
Removing webpki v0.22.1
Updating webpki-roots v0.22.6 -> v0.23.1
Updating which v4.4.0 -> v4.4.2
Updating winapi-util v0.1.5 -> v0.1.6
Adding windows v0.51.1
Adding windows-core v0.51.1
Updating windows-implement v0.44.0 -> v0.48.0
Updating windows-interface v0.44.0 -> v0.48.0
Updating windows-targets v0.48.0 -> v0.48.5
Updating windows_aarch64_gnullvm v0.48.0 -> v0.48.5
Updating windows_aarch64_msvc v0.48.0 -> v0.48.5
Updating windows_i686_gnu v0.48.0 -> v0.48.5
Updating windows_i686_msvc v0.48.0 -> v0.48.5
Updating windows_x86_64_gnu v0.48.0 -> v0.48.5
Updating windows_x86_64_gnullvm v0.48.0 -> v0.48.5
Updating windows_x86_64_msvc v0.48.0 -> v0.48.5
Updating winnow v0.4.6 -> v0.5.15
Adding xdg-home v1.0.0
Updating xml-rs v0.8.15 -> v0.8.19
Updating zbus v3.10.0 -> v3.14.1
Updating zbus_macros v3.10.0 -> v3.14.1
Updating zbus_names v2.5.1 -> v2.6.0
Updating zvariant v3.14.0 -> v3.15.0
Updating zvariant_derive v3.14.0 -> v3.15.0
❯ cargo update -p ureq --precise 2.6.2
Updating crates.io index
Downgrading rustls v0.21.7 -> v0.20.9
Removing rustls-webpki v0.100.3
Removing rustls-webpki v0.101.6
Downgrading ureq v2.7.1 -> v2.6.2
Adding webpki v0.22.1
Downgrading webpki-roots v0.23.1 -> v0.22.6
❯ cargo update -p plist --precise 1.4.0
Updating crates.io index
Downgrading plist v1.5.0 -> v1.4.0
Downgrading quick-xml v0.29.0 -> v0.26.0
❯ cargo update -p ron --precise 0.8.0
Updating crates.io index
Removing base64 v0.21.4
Downgrading ron v0.8.1 -> v0.8.0
* Remove unnecessary mut
* Silence over-eager clippy
* Add misisng `'static` lifetime to `run_simple_native`
* ❯ cargo update -p android-activity --precise 0.4.1
Updating crates.io index
Downgrading android-activity v0.4.2 -> v0.4.1
Removing num_enum v0.6.1
Removing num_enum_derive v0.6.1
2023-09-27 12:49:24 +02:00
Emil Ernerfeldt
f138131bc8
Improve top-level crate docs, and sort features is Cargo.toml
2023-09-27 11:40:28 +02:00
Emil Ernerfeldt
82704bebbf
Update MSRV to Rust 1.70.0 ( #3310 )
...
* Update to Rust 1.70
* Fix renamed clippy lint
* Use let-else more
* Code cleanup
* Remove derelict Safety comments
* Enable more clippy lints
2023-09-06 07:59:24 +02:00
Emil Ernerfeldt
67168be069
Improve clippy, and add more docs ( #3306 )
...
* Silence a few clippy warnings
* Use named threads
* Remove some deprecated functions
* Document Context and Ui fully
* Use `parking_lot::Mutex` in `eframe`
* Expand clippy.toml files
* build fix
2023-09-05 14:11:22 +02:00
Emil Ernerfeldt
9e86bb8d6a
Add opt-in `puffin` feature to egui ( #3298 )
...
* Add opt-in `puffin` feature to egui
* fix web build
* Fix web for realz
2023-09-04 15:01:22 +02:00
Aaron Hill
98087029e0
Update to `wgpu` 0.17.0 ( #3170 )
...
* Bump `wgpu` to 0.17.0
This required bumping wasm-bindgen to 0.2.87
* cargo deny exception for `foreign-types`
* sort deny.toml
* Add fragile-send-sync-non-atomic-wasm feature to wgpu
* cargo deny: ignore children of foreign-types
---------
Co-authored-by: Andreas Reich <r_andreas2@web.de>
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2023-08-11 17:10:10 +02:00
Emil Ernerfeldt
f78db80840
Update to wasm-bindgen 0.2.87 ( #3237 )
...
* Update to wasm-bindgen 0.2.87
Required by the new `wgpu` version
* Catch unknown arguments to build_demo_web.sh
2023-08-11 15:34:16 +02:00
Emil Ernerfeldt
08fb447fb5
Increase MSRV to 1.67 ( #3234 )
...
* Bump MSRV to 1.67
* clippy fixes
* cargo clippy: inline format args
* Add `clippy::uninlined_format_args` to cranky lints
* Fix clippy on wasm
* More clippy fixes
2023-08-11 13:54:02 +02:00
Emil Ernerfeldt
7e035c6dd1
Allow users to opt-out of default `winit` features ( #3228 )
...
* Do not enable winit features by default
* Enable default winit features by default
* Add x11 feature
2023-08-10 17:09:01 +02:00
Emil Ernerfeldt
083d61fccd
Update to puffin 0.16 ( #3144 )
2023-07-10 12:29:01 +02:00
τ
073f49682d
Expose Raw Window and Display Handles ( #3073 )
...
* Expose raw window and display handles in eframe
* Ensure that no one implements `Clone` in the future
* Cleanup
---------
Co-authored-by: Matti Virkkunen <mvirkkunen@gmail.com>
2023-06-11 22:18:28 +02:00
Emil Ernerfeldt
307565efa5
Release 0.22.0 - A plethora of small improvements
2023-05-23 19:58:04 +02:00
Emil Ernerfeldt
8c5d235bfb
cargo update ( #3018 )
...
* cargo update
Updating crates.io index
Updating ab_glyph v0.2.20 -> v0.2.21
Updating aho-corasick v0.7.20 -> v1.0.1
Updating android-activity v0.4.0 -> v0.4.1
Updating anyhow v1.0.69 -> v1.0.71
Updating arrayref v0.3.6 -> v0.3.7
Updating async-broadcast v0.5.0 -> v0.5.1
Updating async-executor v1.5.0 -> v1.5.1
Updating async-io v1.12.0 -> v1.13.0
Updating async-lock v2.6.0 -> v2.7.0
Updating async-recursion v1.0.2 -> v1.0.4
Updating async-task v4.3.0 -> v4.4.0
Updating async-trait v0.1.64 -> v0.1.68
Updating atomic_refcell v0.1.9 -> v0.1.10
Adding base64 v0.21.1
Updating bindgen v0.64.0 -> v0.65.1
Updating bitflags v2.1.0 -> v2.3.1
Updating block-buffer v0.10.3 -> v0.10.4
Updating bumpalo v3.12.0 -> v3.13.0
Updating bytemuck v1.13.0 -> v1.13.1
Updating bytemuck_derive v1.4.0 -> v1.4.1
Updating cfg-expr v0.11.0 -> v0.15.1
Updating chrono v0.4.23 -> v0.4.24
Updating ciborium v0.2.0 -> v0.2.1
Updating ciborium-io v0.2.0 -> v0.2.1
Updating ciborium-ll v0.2.0 -> v0.2.1
Updating clang-sys v1.4.0 -> v1.6.1
Updating clap v3.2.23 -> v3.2.25
Updating cocoa-foundation v0.1.0 -> v0.1.1
Updating concurrent-queue v2.1.0 -> v2.2.0
Updating core-foundation-sys v0.8.3 -> v0.8.4
Updating cpufeatures v0.2.5 -> v0.2.7
Updating crossbeam-utils v0.8.14 -> v0.8.15
Removing cxx v1.0.89
Removing cxx-build v1.0.89
Removing cxxbridge-flags v1.0.89
Removing cxxbridge-macro v1.0.89
Updating digest v0.10.6 -> v0.10.7
Updating dyn-clone v1.0.10 -> v1.0.11
Updating enum-map v2.4.2 -> v2.5.0
Updating enumn v0.1.6 -> v0.1.8
Removing errno v0.2.8
Updating fastrand v1.8.0 -> v1.9.0
Adding fdeflate v0.3.0
Updating flate2 v1.0.25 -> v1.0.26
Updating futures-core v0.3.26 -> v0.3.28
Updating futures-io v0.3.26 -> v0.3.28
Updating futures-lite v1.12.0 -> v1.13.0
Updating futures-sink v0.3.26 -> v0.3.28
Updating futures-task v0.3.26 -> v0.3.28
Updating futures-util v0.3.26 -> v0.3.28
Updating generic-array v0.14.6 -> v0.14.7
Updating getrandom v0.2.8 -> v0.2.9
Updating gimli v0.27.1 -> v0.27.2
Updating glutin v0.30.4 -> v0.30.8
Updating glutin_egl_sys v0.4.0 -> v0.5.0
Updating gpu-alloc v0.5.3 -> v0.5.4
Adding home v0.5.5
Updating iana-time-zone v0.1.53 -> v0.1.56
Updating iana-time-zone-haiku v0.1.1 -> v0.1.2
Updating image v0.24.5 -> v0.24.6
Updating indexmap v1.9.2 -> v1.9.3
Updating io-lifetimes v1.0.6 -> v1.0.10
Updating itoa v1.0.5 -> v1.0.6
Updating jni v0.20.0 -> v0.21.1
Updating jobserver v0.1.25 -> v0.1.26
Updating js-sys v0.3.61 -> v0.3.63
Updating libc v0.2.139 -> v0.2.144
Removing link-cplusplus v1.0.8
Removing linux-raw-sys v0.1.4
Removing linux-raw-sys v0.3.2
Adding linux-raw-sys v0.3.8
Updating memmap2 v0.5.8 -> v0.5.10
Adding miniz_oxide v0.7.1
Updating mio v0.8.5 -> v0.8.6
Updating naga v0.12.0 -> v0.12.1
Removing nom8 v0.2.0
Updating num_enum v0.5.9 -> v0.5.11
Updating num_enum_derive v0.5.9 -> v0.5.11
Updating objc2 v0.3.0-beta.3 -> v0.3.0-beta.3.patch-leaks.3
Updating once_cell v1.17.0 -> v1.17.1
Updating orbclient v0.3.42 -> v0.3.45
Updating ordered-stream v0.1.4 -> v0.2.0
Updating os_str_bytes v6.4.1 -> v6.5.0
Updating owned_ttf_parser v0.18.1 -> v0.19.0
Updating parking v2.0.0 -> v2.1.0
Updating paste v1.0.11 -> v1.0.12
Updating pkg-config v0.3.26 -> v0.3.27
Updating plist v1.4.0 -> v1.4.3
Updating png v0.17.7 -> v0.17.8
Updating polling v2.5.2 -> v2.8.0
Adding prettyplease v0.2.5
Updating proc-macro-crate v1.3.0 -> v1.3.1
Updating proc-macro2 v1.0.56 -> v1.0.58
Updating profiling v1.0.7 -> v1.0.8
Updating puffin v0.14.2 -> v0.14.3
Updating quick-xml v0.26.0 -> v0.28.2
Updating quote v1.0.26 -> v1.0.27
Updating range-alloc v0.1.2 -> v0.1.3
Updating redox_syscall v0.3.4 -> v0.3.5
Updating regex v1.7.1 -> v1.8.2
Removing regex-syntax v0.6.28
Adding regex-syntax v0.6.29
Adding regex-syntax v0.7.2
Updating rfd v0.11.0 -> v0.11.4
Updating rgb v0.8.35 -> v0.8.36
Updating rustc-demangle v0.1.21 -> v0.1.23
Removing rustix v0.36.9
Removing rustix v0.37.3
Adding rustix v0.37.19
Updating ruzstd v0.3.0 -> v0.3.1
Updating ryu v1.0.12 -> v1.0.13
Removing scratch v1.0.3
Updating sctk-adwaita v0.5.3 -> v0.5.4
Updating serde v1.0.152 -> v1.0.163
Updating serde_derive v1.0.152 -> v1.0.163
Updating serde_json v1.0.92 -> v1.0.96
Updating serde_repr v0.1.10 -> v0.1.12
Adding serde_spanned v0.6.2
Adding simd-adler32 v0.3.5
Updating slab v0.4.7 -> v0.4.8
Updating socket2 v0.4.7 -> v0.4.9
Removing syn v1.0.107
Removing syn v2.0.15
Adding syn v1.0.109
Adding syn v2.0.16
Updating system-deps v6.0.3 -> v6.1.0
Adding target-lexicon v0.12.7
Updating tempfile v3.4.0 -> v3.5.0
Updating thiserror v1.0.38 -> v1.0.40
Updating thiserror-impl v1.0.38 -> v1.0.40
Updating time v0.3.17 -> v0.3.21
Updating time-core v0.1.0 -> v0.1.1
Updating time-macros v0.2.6 -> v0.2.9
Updating tiny-skia v0.8.3 -> v0.8.4
Updating tiny-skia-path v0.8.3 -> v0.8.4
Updating toml v0.5.11 -> v0.7.4
Updating toml_datetime v0.5.1 -> v0.6.2
Updating toml_edit v0.18.1 -> v0.19.9
Updating tracing-attributes v0.1.23 -> v0.1.24
Updating tracing-core v0.1.30 -> v0.1.31
Updating ttf-parser v0.18.1 -> v0.19.0
Updating tts v0.25.0 -> v0.25.5
Updating unicode-bidi v0.3.10 -> v0.3.13
Updating unicode-ident v1.0.6 -> v1.0.8
Updating walkdir v2.3.2 -> v2.3.3
Updating wasm-bindgen-futures v0.4.34 -> v0.4.36
Updating web-sys v0.3.61 -> v0.3.63
Updating webbrowser v0.8.7 -> v0.8.10
Removing wepoll-ffi v0.1.2
Updating windows v0.43.0 -> v0.48.0
Removing windows-sys v0.42.0
Updating windows-targets v0.42.1 -> v0.42.2
Updating windows_aarch64_gnullvm v0.42.1 -> v0.42.2
Updating windows_aarch64_msvc v0.42.1 -> v0.42.2
Updating windows_i686_gnu v0.42.1 -> v0.42.2
Updating windows_i686_msvc v0.42.1 -> v0.42.2
Updating windows_x86_64_gnu v0.42.1 -> v0.42.2
Updating windows_x86_64_gnullvm v0.42.1 -> v0.42.2
Updating windows_x86_64_msvc v0.42.1 -> v0.42.2
Updating winit v0.28.1 -> v0.28.6
Adding winnow v0.4.6
Updating xml-rs v0.8.4 -> v0.8.13
Updating zbus v3.9.0 -> v3.10.0
Updating zbus_macros v3.9.0 -> v3.10.0
Updating zbus_names v2.5.0 -> v2.5.1
Updating zstd-sys v2.0.6+zstd.1.5.2 -> v2.0.8+zstd.1.5.5
Updating zvariant v3.10.0 -> v3.14.0
Updating zvariant_derive v3.10.0 -> v3.14.0
Adding zvariant_utils v1.0.1
* Downgrade flate2 and png to avoid duplicated deps
* downgrade plist to avoid duplication of base64 crate
* Allow license `Apache-2.0 WITH LLVM-exception`
* Update to puffin 0.15
2023-05-23 09:25:39 +02:00
Emil Ernerfeldt
7b76161a6a
Set a default icon for all eframe apps: a white `e` on black background ( #2996 )
...
As a user you can change this by setting `NativeOptions::icon_data`.
Set it to `None` to get the default icon assigned by the OS.
2023-05-17 16:23:32 +02:00
Emil Ernerfeldt
856afc8f7e
Update wasm-bindgen to 0.2.86 ( #2995 )
2023-05-17 11:08:35 +02:00
Andreas Reich
f76eefb98d
[wgpu] Expose wgpu::Adapter via RenderState ( #2954 )
...
* [wgpu] Expose adapter, better errors, better docs, more code sharing, use stencil bits
* doc fix
* remove unnecessary unsafe
* handle missing framebuffer format
* better handling of renderstate creation in winit.rs
* remove unnecessary use directive
2023-04-25 17:42:13 +02:00
Andreas Reich
0e6d69d4c4
Make egui work on WebGPU out of the box. ( #2945 )
...
* Make wgpu webgl/gles opt-in (but still work out of the box via feature flag), workaround canvas creation issue
* missing allow unsafe code annotations
* add breaking change not to eframe release notes
* Add --webgpu flag to build_demo_web.sh
* Improve CHANGELOG docs
* Clean up, and prepare for having to wasm:s
* put canvas without workaround under `if false`
* fix spelling
---------
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2023-04-24 11:26:45 +02:00
Niklas Korz
f962378243
wgpu 0.16 ( #2884 )
...
* Adapt to latest wgpu changes
* Point to latest wgpu commit
* Fix egui-wgpu winit
* wgpu 0.16
* Fix web compilation issue
* Add libloading to deny.toml skip
* lock fix after merge, sort deny skip list
---------
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2023-04-21 11:40:25 +02:00
Emil Ernerfeldt
7f2de426d2
eframe: Set app icon on Mac and Windows ( #2940 )
...
* eframe: Set app icon on Mac and Windows
Also: correctly set window title on Mac when launching from
another process, e.g. python.
Co-authored-by: Wumpf <andreas@rerun.io>
* lint fixes
* Fix web build
* fix typo
* Try fix windows build
---------
Co-authored-by: Wumpf <andreas@rerun.io>
2023-04-20 15:47:04 +02:00
Emil Ernerfeldt
d486c76a9f
Remove dark-light dependency ( #2929 )
...
* Remove dark-light dependency
Since https://github.com/emilk/egui/pull/2750 we now get what we need
straight from `winit`.
* fix warning
* Docstring formatting
* fix typo in check.sh
2023-04-18 21:52:48 +02:00
Emil Ernerfeldt
9c9a54ce36
Replace `tracing` with `log` ( #2928 )
...
* Replace tracing crate with log
It's just so much simpler to use
* Add `bacon wasm` job
* eframe: add a WebLogger for piping log events to the web console
2023-04-18 21:11:26 +02:00
Robert Bragg
89e42884fc
Remove android-activity dependency + add activity features ( #2863 )
...
Instead of depending on android-activity directly, this exposes the
android-native-activity and android-game-activity features from Winit.
This ensures that applications can choose what android-backend they use
while also relying on Winit to decide what version of android-activity to
use - without increasing the risk of a version conflict by having a direct
dependency.
_(NB: Egui doesn't currently use the android-activity API itself)_
Since android-activity provides the `android_main()` entry point for
Android applications it's not possible to link in multiple version of
the android-activity crate and so it's particularly important to
avoid unnecessary direct dependencies that could cause a version
conflict in the future.
To help avoid the need for applications to directly depend on
android-activity the Winit crate re-exports the android-activity API
and exposes features to configure the backend so that application crates
can instead rely on Winit to pull in a compatible version of
android-activity. (This way version bumps for android-activity only
need to be synchronized with the Winit crate).
CI now enables the `android-native-activity` feature for testing.
Fixes : #2829
Fixes : #2720
Closes : #2834
2023-04-18 15:40:30 +02:00
Ruben
977749b0e0
eframe: Automatically change theme when system dark/light mode changes ( #2750 )
...
* React to ThemeChanged event from winit
* React to theme change using media query change event in WASM
* Share conversion from bool -> Theme
* Suppress too_many_arguments warning
* Document limitations of automatically following the dark vs light mode preference
* Simplify expression
* Conditionally compile code to prevent unused item warnings
* Remove needless borrow
* Remove another needless borrow
* Make associated functions to standalone
* Request repaint after theme has changed
* Only install event listener when `follow_system_theme` is enabled
* Remove dark-light feature gate
* Detect system theme using winit
* Update documentation
* Fix typos
* fix warning about unused argument
---------
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2023-03-29 16:39:30 +02:00
ItsEthra
c5caed5b35
Enabled wayland feature for winit when running native ( #2751 )
...
* Enabled wayland feature for winit when native
* Enable egui-winit/wayland through eframe instead by on by default
2023-03-29 14:38:27 +02:00
Emil Ernerfeldt
7215fdfb7c
Release eframe 0.21.3 - fix web input of the the letter P
2023-02-15 08:26:45 +01:00
Emil Ernerfeldt
38849fe381
Release eframe 0.21.2 - support --no-default-features
2023-02-12 19:34:37 +01:00
Emil Ernerfeldt
f71d79a0ff
Release egui-winit, eframe 0.21.1 - fix crash on monitor size/dpi change
...
https://github.com/emilk/egui/pull/2722
The crash could happen if the monitor size or DPI changes between runs
2023-02-12 15:29:47 +01:00
Emil Ernerfeldt
ae722ab0cf
Release 0.21.0 - Deadlock fix and winit update
2023-02-08 20:11:21 +01:00
Emil Ernerfeldt
449dd1c23c
cargo update ( #2697 )
...
* cargo update
Updating anyhow v1.0.68 -> v1.0.69
Updating bindgen v0.63.0 -> v0.64.0
Removing cocoa v0.24.1
Updating glutin v0.30.3 -> v0.30.4
Updating glutin_egl_sys v0.3.1 -> v0.4.0
Updating glutin_glx_sys v0.3.0 -> v0.4.0
Updating glutin_wgl_sys v0.3.0 -> v0.4.0
Updating proc-macro2 v1.0.50 -> v1.0.51
Updating rgb v0.8.34 -> v0.8.35
Updating serde_json v1.0.91 -> v1.0.92
Updating tiny-skia v0.8.2 -> v0.8.3
Updating tiny-skia-path v0.8.2 -> v0.8.3
Removing windows-sys v0.36.1
Removing windows_aarch64_msvc v0.36.1
Removing windows_i686_gnu v0.36.1
Removing windows_i686_msvc v0.36.1
Removing windows_x86_64_gnu v0.36.1
Removing windows_x86_64_msvc v0.36.1
Updating zbus v3.8.0 -> v3.9.0
Updating zbus_macros v3.8.0 -> v3.9.0
* Update wasm-bindgen to 0.2.84
* cargo update
Updating js-sys v0.3.60 -> v0.3.61
Updating wasm-bindgen-futures v0.4.33 -> v0.4.34
Updating web-sys v0.3.60 -> v0.3.61
* Update pollster to 0.3
* Update rfd to 0.11
* Make sure we never depend on cmake
2023-02-08 18:11:34 +01:00
Emil Ernerfeldt
636a39cbe1
Update `glow` to 0.12 ( #2695 )
...
* Remove three-d example due to glow incompatibility
* Update to glow 0.12
* Remove three-d from deny.toml
* Add line to changelog
2023-02-08 17:16:44 +01:00
Red Artist
be9b5a3641
polish glutin upgrade with glutin-winit crate ( #2526 )
...
* use glutin-winit for glow context creation
* added some tracing for easier debugging of glutin problems
* fmt
* add more debug logs
* more tracing
* fallback egl instead of prefer egl
* update pure glow example to use glutin_winit
* add more logging. ignore vsync option if not supported
* cranky lint
* add some logging for easier debugging
* drop window after glutin surface
* small changes based on pr review
* build fix
---------
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2023-02-08 14:28:42 +01:00
Emil Ernerfeldt
1edd333864
Update to winit 0.28.1
2023-02-08 10:00:03 +01:00
Emil Ernerfeldt
21a59143a4
cargo update ( #2671 )
...
* cargo update
Updating crates.io index
Updating ab_glyph v0.2.18 -> v0.2.20
Updating ab_glyph_rasterizer v0.1.7 -> v0.1.8
Updating ahash v0.8.2 -> v0.8.3
Updating anyhow v1.0.66 -> v1.0.68
Updating async-broadcast v0.4.1 -> v0.5.0
Updating async-recursion v1.0.0 -> v1.0.2
Updating async-trait v0.1.59 -> v0.1.64
Updating atomic_refcell v0.1.8 -> v0.1.9
Updating bumpalo v3.11.1 -> v3.12.0
Updating bytemuck v1.12.3 -> v1.13.0
Updating bytemuck_derive v1.3.0 -> v1.4.0
Updating bytes v1.3.0 -> v1.4.0
Updating calloop v0.10.3 -> v0.10.5
Updating cc v1.0.77 -> v1.0.79
Removing chunked_transfer v1.4.0
Updating clipboard-win v4.4.2 -> v4.5.0
Updating concurrent-queue v2.0.0 -> v2.1.0
Updating cxx v1.0.83 -> v1.0.89
Updating cxx-build v1.0.83 -> v1.0.89
Updating cxxbridge-flags v1.0.83 -> v1.0.89
Updating cxxbridge-macro v1.0.83 -> v1.0.89
Updating document-features v0.2.6 -> v0.2.7
Updating dyn-clone v1.0.9 -> v1.0.10
Updating either v1.8.0 -> v1.8.1
Updating enum-map v2.4.1 -> v2.4.2
Updating enum-map-derive v0.10.0 -> v0.11.0
Updating futures-core v0.3.25 -> v0.3.26
Updating futures-io v0.3.25 -> v0.3.26
Updating futures-sink v0.3.25 -> v0.3.26
Updating futures-task v0.3.25 -> v0.3.26
Updating futures-util v0.3.25 -> v0.3.26
Updating glob v0.3.0 -> v0.3.1
Updating heck v0.4.0 -> v0.4.1
Updating image v0.24.4 -> v0.24.5
Updating itoa v1.0.4 -> v1.0.5
Updating jpeg-decoder v0.2.6 -> v0.3.0
Updating js-sys v0.3.60 -> v0.3.61
Updating libc v0.2.138 -> v0.2.139
Updating link-cplusplus v1.0.7 -> v1.0.8
Updating nom v7.1.1 -> v7.1.3
Adding nom8 v0.2.0
Updating num_enum v0.5.7 -> v0.5.9
Updating num_enum_derive v0.5.7 -> v0.5.9
Updating once_cell v1.16.0 -> v1.17.0
Updating ordered-stream v0.1.2 -> v0.1.4
Updating owned_ttf_parser v0.17.1 -> v0.18.1
Updating parking_lot_core v0.9.5 -> v0.9.7
Updating paste v1.0.9 -> v1.0.11
Updating plist v1.3.1 -> v1.4.0
Updating polling v2.5.1 -> v2.5.2
Updating proc-macro-crate v1.2.1 -> v1.3.0
Updating proc-macro2 v1.0.47 -> v1.0.50
Updating puffin v0.14.0 -> v0.14.2
Updating puffin_http v0.11.0 -> v0.11.1
Adding quick-xml v0.26.0
Updating quote v1.0.21 -> v1.0.23
Updating regex v1.7.0 -> v1.7.1
Updating rustls v0.20.7 -> v0.20.8
Updating ryu v1.0.11 -> v1.0.12
Updating scratch v1.0.2 -> v1.0.3
Updating serde v1.0.149 -> v1.0.152
Updating serde_derive v1.0.149 -> v1.0.152
Updating serde_json v1.0.89 -> v1.0.91
Updating serde_repr v0.1.9 -> v0.1.10
Updating syn v1.0.105 -> v1.0.107
Updating termcolor v1.1.3 -> v1.2.0
Updating thiserror v1.0.37 -> v1.0.38
Updating thiserror-impl v1.0.37 -> v1.0.38
Updating tinyvec_macros v0.1.0 -> v0.1.1
Updating toml v0.5.9 -> v0.5.11
Adding toml_datetime v0.5.1
Adding toml_edit v0.18.1
Updating ttf-parser v0.17.1 -> v0.18.1
Updating typenum v1.15.0 -> v1.16.0
Updating unicode-bidi v0.3.8 -> v0.3.10
Updating unicode-ident v1.0.5 -> v1.0.6
Updating ureq v2.5.0 -> v2.6.2
Updating wasm-bindgen v0.2.83 -> v0.2.84
Updating wasm-bindgen-backend v0.2.83 -> v0.2.84
Updating wasm-bindgen-futures v0.4.33 -> v0.4.34
Updating wasm-bindgen-macro v0.2.83 -> v0.2.84
Updating wasm-bindgen-macro-support v0.2.83 -> v0.2.84
Updating wasm-bindgen-shared v0.2.83 -> v0.2.84
Updating wayland-sys v0.30.0 -> v0.30.1
Updating web-sys v0.3.60 -> v0.3.61
Updating webbrowser v0.8.6 -> v0.8.7
Updating webpki-roots v0.22.5 -> v0.22.6
Updating which v4.3.0 -> v4.4.0
Updating x11-dl v2.20.1 -> v2.21.0
Updating zbus v3.6.2 -> v3.8.0
Updating zbus_macros v3.6.2 -> v3.8.0
Updating zbus_names v2.4.0 -> v2.5.0
Updating zstd-sys v2.0.4+zstd.1.5.2 -> v2.0.6+zstd.1.5.2
Updating zvariant v3.9.0 -> v3.10.0
Updating zvariant_derive v3.9.0 -> v3.10.0
* Remove unnecessary import of wasm_bindgen::JsCast (its now in prelude)
* egui_glow/README.md: add line on how to run the example
* revert wasm-bindgen update
* Revert "Remove unnecessary import of wasm_bindgen::JsCast (its now in prelude)"
This reverts commit 95c3076cce76577d9f0f35e48f99b4acd2dbe62e.
2023-02-04 13:41:34 +01:00
Emil Ernerfeldt
8344e88f8a
Update to to winit 0.28 ( #2654 )
...
* Update to winit 0.28
Mac trackpads pinch gestures will now generate `egui::Event::Zoom`
* Update accesskit_winit
* Try to get Android CI green
* Fix wayland compilation
* Add comment about android-activity
* Update changelogs
* Fix call to register_xlib_error_hook
2023-02-04 12:43:43 +01:00
Emil Ernerfeldt
e4eaf99072
Remove native screen reader support ( #2669 )
...
* Remove native screen reader support
Use the "accesskit" feature flag to `eframe` instead.
[AccessKit](https://github.com/AccessKit/accesskit ) is the future.
`tts` was a mess to compile on many platforms, so I no longer want
the native `tts` dependency.
* Update tts to 0.25
* Update changelogs
* Turn on all feature flags for package.metadata.docs.rs
* remove tts from deny.toml skip-tree
* Update web build scripts
* Update deny.toml
2023-02-04 11:47:36 +01:00
Emil Ernerfeldt
d01e4342f0
Update accesskit_winit and dark_light ( #2655 )
...
* Update accesskit_winit to 0.8.1
* Update dark_light to 1.0
2023-01-31 10:41:27 +01:00
Red Artist
ce62b61e15
wgpu upgraded to 0.15. demo working on linux ( #2629 )
2023-01-27 09:19:47 +01:00
Emil Ernerfeldt
8ce0e1c520
Avoid deadlocks by using lambdas for context lock ( #2625 )
...
ctx.input().key_pressed(Key::A) -> ctx.input(|i| i.key_pressed(Key::A))
2023-01-25 10:24:23 +01:00
Emil Ernerfeldt
6c4fc50fdf
Make `egui_wgpu::winit::Painter::set_window` async ( #2434 )
...
* Make `egui_wgpu::winit::Painter::set_window` async
* Fix changelog link
2022-12-12 15:37:55 +01:00
Emil Ernerfeldt
cb77458f70
eframe error handling ( #2433 )
...
* eframe::run_native: return errors instead of crashing
* Detect and handle glutin errors
* egui_demo_app: silence wgpu log spam
* Add trace logs for why eframe is shutting down
* Fix: only save App state once on Mac
* Handle Winit failure
* Log where we load app state from
* Don't panic on zero-sized window
* Clamp loaded window size to not be too tiny to see
* Simplify code: more shared code in window_builder
* Improve code readability
* Fix wasm32 build
* fix android
* Update changelog
2022-12-12 15:16:32 +01:00
Emil Ernerfeldt
228f30ed46
Release 0.20.1 of eframe egui-winit egui_glium egui_glow - docs fixes
2022-12-11 17:04:23 +01:00
Emil Ernerfeldt
4e3ae098a9
Improve eframe wasm32 docs
2022-12-11 16:52:37 +01:00
Emil Ernerfeldt
32606c2223
Fix docs.rs build issues for eframe, egui-winit, egui_glium, egui_glow ( #2420 )
...
* Fix docs.rs build issues for eframe, egui-winit, egui_glium, egui_glow
I hope we can get rid of the `tts` crate very soon,
now that AcessKit has landed. It is only used for web atm.
Should probably be removed from all native libraries.
* Update changelogs
2022-12-09 12:24:47 +01:00
Emil Ernerfeldt
7d91e90481
Release 0.20.0 - AccessKit, prettier text, overlapping widgets
2022-12-08 15:11:54 +01:00
Emil Ernerfeldt
e30ac7f91a
Only add glutin dependency if you are using the glow backend ( #2402 )
2022-12-06 14:29:58 +01:00
Red Artist
8eb687cf04
Glutin Upgrade ( #2187 )
...
* working. but x11 blurry
* fixed x11 blurry. was just accidentally using multisampling even when user didnt request it
* allow dbg macro temporarily
* add windows WGL fallback support when EGL fails
* fmt
* glutin features explicitly added
* extract glutin context creation into a fn
* fix warnings
2022-12-05 11:34:28 +01:00
Matt Campbell
e1f348e4b2
Implement accessibility APIs via AccessKit ( #2294 )
...
* squash before rebase
* Update AccessKit, introducing support for editable spinners on Windows and an important fix for navigation order on macOS
* Restore support for increment and decrement actions in DragValue
* Avoid VoiceOver race condition bug
* fix clippy lint
* Tell AccessKit that the default action for a text edit (equivalent to a click) is to set the focus. This matters to some platform adapters.
* Refactor InputState functions for AccessKit actions
* Support the AccessKit SetValue for DragValue; this is the only way for a Windows AT to programmatically adjust the value
* Same for Slider
* Properly associate the slider label with both the slider and the drag value
* Lazily activate egui's AccessKit support
* fix clippy lint
* Update AccessKit
* More documentation, particularly around lazy activation
* Tweak one of the doc comments
* See if I can get AccessKit exempted from the 'missing backticks' lint
* Make PlatformOutput::accesskit_update an Option
* Refactor lazy activation
* Refactor node mutation (again)
* Eliminate the need for an explicit is_accesskit_active method, at least for now
* Fix doc comment
* More refactoring of tree construction; don't depend on Arc::get_mut
* Override a clippy lint; I seem to have no other choice
* Final planned refactor: a more flexible approach to hierarchy
* Last AccessKit update for this PR; includes an important macOS DPI fix
* Move and document the optional accesskit dependency
* Fix comment typo
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
* reformat
* More elegant code for conditionally creating a node
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
* Set step to 1.0 for all integer sliders
* Add doc example for Response::labelled_by
* Clarify a TODO comment I left for myself
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2022-12-04 19:17:12 +01:00
Emil Ernerfeldt
48666e1d7a
Automatically generate screenshots for all examples ( #2379 )
2022-12-04 17:27:40 +01:00
Emil Ernerfeldt
eca5e6a4d2
Update to Rust 1.65 ( #2314 )
...
* Update to Rust 1.65
Because then you can use dynamic linking on Linux
* Fix a bunch of clippy lints
* Update changelogs
* More clippy fixes
2022-11-16 19:08:03 +01:00
Red Artist
8ff139687a
bump msrv 1.64 and tts + bindgen dep ( #2274 )
...
* bump msrv 1.64 and tts + bindgen dep
* Update crates/egui-winit/Cargo.toml
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
* Update crates/eframe/Cargo.toml
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2022-11-11 10:27:25 +01:00