diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/mis-interpreter.iml b/.idea/mis-interpreter.iml deleted file mode 100644 index cf84ae4..0000000 --- a/.idea/mis-interpreter.iml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index e0dbda5..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 8306744..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..d8c14ad --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + { + "associatedIndex": 0 +} + + + + { + "keyToString": { + "Cargo.Test mis-interpreter.executor": "Run", + "ModuleVcsDetector.initialDetectionPerformed": "true", + "RunOnceActivity.ShowReadmeOnStart": "true", + "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true", + "RunOnceActivity.git.unshallow": "true", + "RunOnceActivity.rust.reset.selective.auto.import": "true", + "git-widget-placeholder": "main", + "last_opened_file_path": "/home/rivulet/RustroverProjects/mis-interpreter", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "org.rust.cargo.project.model.PROJECT_DISCOVERY": "true", + "org.rust.cargo.project.model.impl.CargoExternalSystemProjectAware.subscribe.first.balloon": "", + "org.rust.first.attach.projects": "true", + "ts.external.directory.path": "/home/rivulet/.local/share/JetBrains/Toolbox/apps/rustrover/plugins/javascript-plugin/jsLanguageServicesImpl/external", + "vue.rearranger.settings.migration": "true" + } +} + + + + + + + + + + 1761613870150 + + + + + + + + + + \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index c1f881c..10530af 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,11 @@ authors = ["Rivulet "] [lib] crate-type = ["cdylib"] +[package.metadata.wasm-pack] +target = "web" +out-dir = "build" +out-name = "index" + [dependencies] worker = { version = "0.6", features = ['http', 'axum'] } worker-macros = { version = "0.6", features = ['http'] } diff --git a/wrangler.toml b/wrangler.toml index 40f747f..afee802 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -1,6 +1,12 @@ name = "mis-interpreter" -main = "build/index.js" +workers_dev = true compatibility_date = "2025-10-28" +main = "build/worker/shim.mjs" + + +[[rules]] +globs = [ "**/*.wasm" ] +type = "CompiledWasm" [build] -command = "cargo install -q worker-build && worker-build --release" \ No newline at end of file +command = "cargo install -q worker-build --version ^0.0.8 && worker-build --release" # required \ No newline at end of file