2020-08-14 10:23:03 +03:00
|
|
|
[package]
|
2020-11-30 14:38:35 +03:00
|
|
|
name = "ensogl-core"
|
2020-08-14 10:23:03 +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"
|
2020-08-14 10:23:03 +03:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
crate-type = ["rlib", "cdylib"]
|
|
|
|
|
|
|
|
[features]
|
|
|
|
default = ["statistics", "no_unboxed_callbacks"]
|
|
|
|
statistics = []
|
|
|
|
no_unboxed_callbacks = []
|
|
|
|
|
|
|
|
[dependencies]
|
2021-11-12 15:56:23 +03:00
|
|
|
code-builder = { path = "../../code-builder" }
|
|
|
|
enso-callback = { path = "../../callback" }
|
2021-11-25 13:45:42 +03:00
|
|
|
enso-data-structures = { path = "../../data-structures" }
|
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" }
|
2021-11-12 15:56:23 +03:00
|
|
|
enso-frp = { path = "../../frp" }
|
2022-05-23 05:16:04 +03:00
|
|
|
enso-generics = { path = "../../generics" }
|
|
|
|
enso-logger = { path = "../../logger" }
|
|
|
|
enso-prelude = { path = "../../prelude" }
|
|
|
|
enso-profiler = { path = "../../profiler" }
|
|
|
|
enso-shapely = { path = "../../shapely" }
|
2021-11-12 15:56:23 +03:00
|
|
|
enso-shortcuts = { path = "../../shortcuts" }
|
|
|
|
enso-types = { path = "../../types" }
|
|
|
|
enso-web = { path = "../../web" }
|
2022-08-27 01:25:34 +03:00
|
|
|
ensogl-text-embedded-fonts = { path = "../component/text/src/font/embedded" }
|
2020-11-30 14:38:35 +03:00
|
|
|
bit_field = { version = "0.10.0" }
|
|
|
|
console_error_panic_hook = { version = "0.1.6" }
|
2021-05-20 17:50:43 +03:00
|
|
|
enum_dispatch = { version = "0.3.6" }
|
2020-11-30 14:38:35 +03:00
|
|
|
failure = { version = "0.1.5" }
|
|
|
|
Inflector = { version = "0.11.4" }
|
2021-05-26 17:17:01 +03:00
|
|
|
itertools = { version = "0.10.0" }
|
2020-11-30 14:38:35 +03:00
|
|
|
js-sys = { version = "0.3.28" }
|
2021-05-20 17:50:43 +03:00
|
|
|
nalgebra = { version = "0.26.1" }
|
|
|
|
num_enum = { version = "0.5.1" }
|
2020-11-30 14:38:35 +03:00
|
|
|
num-traits = { version = "0.2" }
|
|
|
|
rustc-hash = { version = "1.0.1" }
|
2022-05-23 05:16:04 +03:00
|
|
|
semver = { version = "1.0.9" }
|
2022-04-19 14:30:29 +03:00
|
|
|
serde = { version = "1" }
|
2020-11-30 14:38:35 +03:00
|
|
|
shrinkwraprs = { version = "0.3.0" }
|
|
|
|
smallvec = { version = "1.0.0" }
|
|
|
|
typenum = { version = "1.11.2" }
|
2020-08-14 10:23:03 +03:00
|
|
|
# We require exact version of wasm-bindgen because we do patching final js in our build process,
|
|
|
|
# and this is vulnerable to any wasm-bindgen version change.
|
2022-06-01 21:01:16 +03:00
|
|
|
wasm-bindgen = { version = "=0.2.78", features = ["nightly"] }
|
2020-08-14 10:23:03 +03:00
|
|
|
|
|
|
|
[dependencies.web-sys]
|
|
|
|
version = "0.3.4"
|
|
|
|
features = [
|
2020-11-30 14:38:35 +03:00
|
|
|
'CanvasRenderingContext2d',
|
|
|
|
'CssStyleDeclaration',
|
|
|
|
'Document',
|
|
|
|
'Element',
|
|
|
|
'EventTarget',
|
|
|
|
'KeyboardEvent',
|
|
|
|
'HtmlCanvasElement',
|
|
|
|
'HtmlCollection',
|
|
|
|
'HtmlDivElement',
|
|
|
|
'HtmlElement',
|
|
|
|
'HtmlImageElement',
|
|
|
|
'Location',
|
|
|
|
'Node',
|
|
|
|
'Url',
|
|
|
|
'WebGlBuffer',
|
|
|
|
'WebGlFramebuffer',
|
|
|
|
'WebGlProgram',
|
|
|
|
'WebGlRenderingContext',
|
|
|
|
'WebGlShader',
|
|
|
|
'WebGlSync',
|
|
|
|
'WebGlTexture',
|
|
|
|
'WebGlUniformLocation',
|
|
|
|
'WebGlUniformLocation',
|
|
|
|
'WebGlVertexArrayObject',
|
|
|
|
'Window',
|
|
|
|
'console',
|
|
|
|
'EventTarget',
|
|
|
|
'Event',
|
|
|
|
'MouseEvent',
|
|
|
|
'WheelEvent',
|
|
|
|
'DomRect',
|
2022-11-18 21:52:28 +03:00
|
|
|
'AddEventListenerOptions',
|
|
|
|
'HtmlHeadElement',
|
|
|
|
"TextMetrics",
|
2020-08-14 10:23:03 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
wasm-bindgen-test = { version = "0.3.8" }
|