mirror of
https://github.com/visioncortex/vtracer.git
synced 2026-04-10 04:01:29 -07:00
Source Release
This commit is contained in:
58
webapp/Cargo.toml
Executable file
58
webapp/Cargo.toml
Executable file
@@ -0,0 +1,58 @@
|
||||
[package]
|
||||
name = "vtracer-webapp"
|
||||
version = "0.1.0"
|
||||
authors = ["Chris Tsang <tyt2y7@gmail.com>"]
|
||||
edition = "2018"
|
||||
description = "Semantic Computer Vision"
|
||||
license = "MIT OR Apache-2.0"
|
||||
homepage = "http://www.visioncortex.org/vtracer"
|
||||
repository = "https://github.com/visioncortex/vtracer/"
|
||||
categories = ["graphics", "computer-vision"]
|
||||
keywords = ["computer-graphics", "computer-vision"]
|
||||
exclude = [
|
||||
"docs/*",
|
||||
]
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[features]
|
||||
default = ["console_error_panic_hook"]
|
||||
|
||||
[dependencies]
|
||||
cfg-if = "0.1"
|
||||
console_log = { version = "0.2", features = ["color"] }
|
||||
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
visioncortex = "0.1.0"
|
||||
|
||||
# The `console_error_panic_hook` crate provides better debugging of panics by
|
||||
# logging them with `console.error`. This is great for development, but requires
|
||||
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
|
||||
# code size when deploying.
|
||||
console_error_panic_hook = { version = "0.1", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
wasm-bindgen-test = "0.2"
|
||||
|
||||
[dependencies.web-sys]
|
||||
version = "0.3"
|
||||
features = [
|
||||
"CanvasRenderingContext2d",
|
||||
"console",
|
||||
"Document",
|
||||
"HtmlElement",
|
||||
"HtmlCanvasElement",
|
||||
"ImageData",
|
||||
"Window",
|
||||
]
|
||||
|
||||
# [profile.release]
|
||||
# opt-level = 'z'
|
||||
# lto = true
|
||||
|
||||
# `wasm-opt` is on by default in for the release profile, but it can be
|
||||
# disabled by setting it to `false`
|
||||
[package.metadata.wasm-pack.profile.release]
|
||||
wasm-opt = false
|
||||
Reference in New Issue
Block a user