Skip to content

Commit

Permalink
Merge pull request Astrabit-ST#87 from white-axe/reporter
Browse files Browse the repository at this point in the history
Crash reporter
  • Loading branch information
somedevfox authored Feb 2, 2024
2 parents 3b2e2c8 + 65ba193 commit 58c5a2b
Show file tree
Hide file tree
Showing 34 changed files with 799 additions and 219 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

48 changes: 43 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ doc_markdown = "allow"
missing_panics_doc = "allow"
too_many_lines = "allow"
# you must provide a safety doc.
missing_safety_doc = "forbid"
missing_safety_doc = "warn"

[workspace.package]
version = "0.4.0"
Expand Down Expand Up @@ -125,11 +125,10 @@ qp-trie = "0.8.2"
itertools = "0.11.0"

rfd = "0.12.0"
tempfile = "3.8.1"

rand = "0.8.5"

git-version = "0.3.9"

luminol-audio = { version = "0.4.0", path = "crates/audio/" }
luminol-components = { version = "0.4.0", path = "crates/components/" }
luminol-config = { version = "0.4.0", path = "crates/config/" }
Expand Down Expand Up @@ -180,7 +179,7 @@ zstd = "0.13.0"
async-std.workspace = true
futures-lite.workspace = true

git-version.workspace = true
git-version = "0.3.9"

# Native
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
Expand All @@ -192,6 +191,7 @@ tokio = { version = "1.33", features = [
"rt-multi-thread",
"parking_lot",
] } # *sigh*
tempfile.workspace = true
luminol-term.workspace = true

# Set poll promise features here based on the target
Expand All @@ -213,7 +213,7 @@ wasm-bindgen = "0.2.87"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"

flume.workspace = true
oneshot.workspace = true

luminol-web = { version = "0.4.0", path = "crates/web/" }

Expand Down
118 changes: 0 additions & 118 deletions assets/coi-serviceworker.js

This file was deleted.

15 changes: 12 additions & 3 deletions assets/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@
// You should have received a copy of the GNU General Public License
// along with Luminol. If not, see <http://www.gnu.org/licenses/>.

import wasm_bindgen, { luminol_main_start } from './luminol.js';
window.restartLuminol = async function() {
// We need to reload luminol.js every time by invalidating the cache,
// otherwise it'll just reload the same WebAssembly module every time
// instead of reinstantiating it
const invalidator = crypto.randomUUID();

await wasm_bindgen();
luminol_main_start();
const { default: wasm_bindgen, luminol_main_start } = await import(`./luminol.js?luminol-invalidator=${invalidator}`);

await wasm_bindgen();
luminol_main_start();
};

await window.restartLuminol();
Loading

0 comments on commit 58c5a2b

Please sign in to comment.