2019-10-06 22:47:17 +03:00
|
|
|
[package]
|
2021-11-12 15:56:23 +03:00
|
|
|
name = "enso-web"
|
2019-10-06 22:47:17 +03:00
|
|
|
version = "0.1.0"
|
2020-11-30 14:38:35 +03:00
|
|
|
authors = ["Enso Team <contact@enso.org>"]
|
2021-12-01 18:06:57 +03:00
|
|
|
edition = "2021"
|
2019-10-06 22:47:17 +03:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
|
|
|
|
[features]
|
|
|
|
default = ["console_error_panic_hook"]
|
|
|
|
|
|
|
|
[dependencies]
|
Profiling batch mode (#3428)
Implement a command that launches the application, runs a series of steps (a "workflow"), writes a profile to a file, and exits.
See: [#181775808](https://www.pivotaltracker.com/story/show/181775808)
# Important Notes
- The command to capture run and profile is used like: `./run profile --workflow=new_project --save-profile=out.json`. Defining some more workflows (collapse nodes, create node and edit value) comes next; they are implemented with the same infrastructure as the integration-tests.
- The `--save-profile` option can also be used when profiling interactively; when the option is provided, capturing a profile with the hotkey will write a file instead of dumping the data to the devtools console.
- If the IDE panics, the error message is now printed to the console that invoked the process, as well as the devtools console. (If a batch workflow fails, this allows us to see why.)
- New functionality (writing profile files, quitting on command, logging to console) relies on Electron APIs. These APIs are implemented in `index.js`, bridged to the render process in `preload.js`, and wrapped for use in Rust in a `debug_api` crate.
2022-05-10 22:34:40 +03:00
|
|
|
enso-debug-api = { path = "../debug-api" }
|
|
|
|
console_error_panic_hook = { version = "0.1.6", optional = true }
|
2020-11-30 14:38:35 +03:00
|
|
|
failure = { version = "0.1.5" }
|
|
|
|
gloo-timers = { version = "0.2.1", features = ["futures"] }
|
|
|
|
js-sys = { version = "0.3.28" }
|
2021-05-20 17:50:43 +03:00
|
|
|
nalgebra = { version = "0.26.1" }
|
2022-03-04 17:13:23 +03:00
|
|
|
wasm-bindgen = { version = "0.2.78", features = ["nightly"] }
|
2022-08-27 01:25:34 +03:00
|
|
|
derivative = "2.2.0"
|
|
|
|
tracing = "0.1"
|
|
|
|
enso-shapely = { path = "../shapely" }
|
2019-10-06 22:47:17 +03:00
|
|
|
|
2020-04-15 16:46:22 +03:00
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
|
|
async-std = { version = "1.5.0" }
|
|
|
|
|
2019-10-06 22:47:17 +03:00
|
|
|
[dependencies.web-sys]
|
|
|
|
version = "0.3.4"
|
|
|
|
features = [
|
2021-06-02 12:02:49 +03:00
|
|
|
'Blob',
|
2019-10-06 22:47:17 +03:00
|
|
|
'Document',
|
2019-11-25 13:52:51 +03:00
|
|
|
'Node',
|
2019-10-06 22:47:17 +03:00
|
|
|
'Element',
|
2019-11-25 13:52:51 +03:00
|
|
|
'HtmlElement',
|
2020-02-11 02:47:03 +03:00
|
|
|
'HtmlDivElement',
|
2019-11-25 13:52:51 +03:00
|
|
|
'HtmlCollection',
|
|
|
|
'CssStyleDeclaration',
|
2019-10-06 22:47:17 +03:00
|
|
|
'HtmlCanvasElement',
|
|
|
|
'WebGlBuffer',
|
|
|
|
'WebGlRenderingContext',
|
2019-12-19 03:37:41 +03:00
|
|
|
'WebGl2RenderingContext',
|
2020-03-13 07:10:08 +03:00
|
|
|
'CanvasRenderingContext2d',
|
2019-10-06 22:47:17 +03:00
|
|
|
'WebGlProgram',
|
|
|
|
'WebGlShader',
|
|
|
|
'Window',
|
2020-04-22 04:03:36 +03:00
|
|
|
'Navigator',
|
2019-12-06 19:11:17 +03:00
|
|
|
'console',
|
2020-01-09 09:17:39 +03:00
|
|
|
'Performance',
|
|
|
|
'Event',
|
|
|
|
'MouseEvent',
|
2020-01-28 05:09:59 +03:00
|
|
|
'EventTarget',
|
2020-06-25 00:24:46 +03:00
|
|
|
'DomRect',
|
2021-01-21 17:56:22 +03:00
|
|
|
'DomRectReadOnly',
|
2021-06-02 12:02:49 +03:00
|
|
|
'Location',
|
|
|
|
'ReadableStream',
|
2022-08-27 01:25:34 +03:00
|
|
|
'AddEventListenerOptions',
|
|
|
|
'KeyboardEvent',
|
|
|
|
'WheelEvent',
|
2019-10-06 22:47:17 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
[dev-dependencies]
|
2020-03-05 08:25:00 +03:00
|
|
|
wasm-bindgen-test = { version = "0.3.8" }
|