mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-03 21:08:18 +00:00

* Create asynchronous rust imaginate node * Make a first imaginate request via rust * Implement parsing of imaginate API result image * Stop refresh timer from affecting imaginate progress requests * Add cargo-about clarification for rustls-webpki * Delete imaginate.ts and all uses of its functions * Add imaginate img2img feature * Fix imaginate random seed button * Fix imaginate ui inferring non-custom resolutions * Fix the imaginate progress indicator * Remove ImaginatePreferences from being compiled into node graph * Regenerate imaginate only when hitting button * Add ability to terminate imaginate requests * Add imaginate server check feature * Do not compile wasm_bindgen bindings in graphite_editor for tests * Address some review suggestions - move wasm futures dependency in editor to the future-executor crate - guard wasm-bindgen in editor behind a `wasm` feature flag - dont make seed number input a slider - remove poll_server_check from process_message function beginning - guard wasm related code behind `cfg(target_arch = "wasm32")` instead of `cfg(test)` - Call the imaginate idle states "Ready" and "Done" instead of "Nothing to do" - Call the imaginate uploading state "Uploading Image" instead of "Uploading Input Image" - Remove the EvalSyncNode * Fix imaginate host name being restored between graphite instances also change the progress status texts a bit. --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
73 lines
1.7 KiB
TOML
73 lines
1.7 KiB
TOML
[package]
|
|
name = "graphite-wasm"
|
|
publish = false
|
|
version = "0.0.0"
|
|
rust-version = "1.66.0"
|
|
authors = ["Graphite Authors <contact@graphite.rs>"]
|
|
edition = "2021"
|
|
readme = "../../README.md"
|
|
homepage = "https://graphite.rs"
|
|
repository = "https://github.com/GraphiteEditor/Graphite"
|
|
license = "Apache-2.0"
|
|
|
|
[features]
|
|
tauri = ["ron"]
|
|
gpu = ["editor/gpu"]
|
|
default = ["gpu"]
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
editor = { path = "../../editor", package = "graphite-editor" }
|
|
document-legacy = { path = "../../document-legacy", package = "graphite-document-legacy" }
|
|
graph-craft = { path = "../../node-graph/graph-craft" }
|
|
log = "0.4"
|
|
graphene-core = { path = "../../node-graph/gcore", features = [
|
|
"async",
|
|
"std",
|
|
"alloc",
|
|
] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
wasm-bindgen = { version = "=0.2.86" }
|
|
serde-wasm-bindgen = "0.5.0"
|
|
js-sys = "0.3.63"
|
|
wasm-bindgen-futures = "0.4.36"
|
|
ron = { version = "0.8", optional = true }
|
|
bezier-rs = { path = "../../libraries/bezier-rs" }
|
|
|
|
[dependencies.web-sys]
|
|
version = "0.3.4"
|
|
features = [
|
|
"Window",
|
|
"CanvasRenderingContext2d",
|
|
"Document",
|
|
"HtmlCanvasElement",
|
|
]
|
|
|
|
[dev-dependencies]
|
|
wasm-bindgen-test = "0.3.22"
|
|
|
|
[package.metadata.wasm-pack.profile.dev]
|
|
wasm-opt = false
|
|
|
|
[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
|
|
debug-js-glue = true
|
|
demangle-name-section = true
|
|
dwarf-debug-info = true
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
wasm-opt = ["-Os"]
|
|
|
|
[package.metadata.wasm-pack.profile.release.wasm-bindgen]
|
|
debug-js-glue = false
|
|
demangle-name-section = false
|
|
dwarf-debug-info = false
|
|
|
|
[package.metadata.wasm-pack.profile.profiling]
|
|
wasm-opt = ["-Os", "-g"]
|
|
|
|
[package.metadata.wasm-pack.profile.profiling.wasm-bindgen]
|
|
debug-js-glue = true
|
|
demangle-name-section = true
|
|
dwarf-debug-info = true
|