[package]
name = "aladin-lite"
description = "Aladin Lite v3 introduces a new graphical engine written in Rust with the use of WebGL"
license = "BSD-3-Clause"
repository = "https://github.com/cds-astro/aladin-lite"
version = "3.9.0-beta"
authors = [ "baumannmatthieu0@gmail.com", "matthieu.baumann@astro.unistra.fr",]
edition = "2018"

[workspace]
members = [ "al-core", "al-api",]

[lib]
crate-type = [ "cdylib",]

[dependencies]
futures = "0.3.12"
js-sys = "0.3.47"
wasm-bindgen-futures = "0.4.20"
cgmath = "*"
serde_json = "1.0.104"
serde-wasm-bindgen = "0.5"
enum_dispatch = "0.3.8"
wasm-bindgen = "=0.2.92"
async-channel = "1.8.0"
mapproj = "0.3.0"
colorgrad = "0.6.2"

[features]
webgl1 = [ "al-core/webgl1", "al-api/webgl1", "web-sys/WebGlRenderingContext", "web-sys/AngleInstancedArrays", "web-sys/ExtSRgb", "web-sys/OesTextureFloat",]
webgl2 = [ "al-core/webgl2", "al-api/webgl2", "web-sys/WebGl2RenderingContext", "web-sys/WebGlVertexArrayObject", "web-sys/ExtColorBufferFloat",]
dbg = [ "dep:console_error_panic_hook",]
minify_shaders = []

[dev-dependencies]
rand = "0.8"

[build-dependencies]
walkdir = "2.3.2"

[dependencies.fitsrs]
git = "https://github.com/cds-astro/fitsrs"
branch = "master"

[dependencies.console_error_panic_hook]
version = "0.1.7"
optional = true

[dependencies.healpix]
package = "cdshealpix"
version = "0.7.3"

[dependencies.moclib]
package = "moc"
version = "0.19.1"

[dependencies.serde]
version = "^1.0.183"
features = [ "derive",]

[dependencies.al-core]
path = "./al-core"

[dependencies.al-api]
path = "./al-api"

[dependencies.web-sys]
version = "0.3.56"
features = [ "console", "CssStyleDeclaration", "Document", "Element", "HtmlCollection", "CustomEvent", "CustomEventInit", "HtmlElement", "HtmlImageElement", "HtmlCanvasElement", "Blob", "Url", "ImageBitmap", "ImageData", "CanvasRenderingContext2d", "WebGlBuffer", "WebGlContextAttributes", "WebGlFramebuffer", "WebGlProgram", "WebGlShader", "WebGlUniformLocation", "WebGlTexture", "WebGlActiveInfo", "Headers", "Window", "Request", "RequestInit", "RequestMode", "RequestCredentials", "Response", "XmlHttpRequest", "XmlHttpRequestResponseType", "PerformanceTiming", "Performance", "Url", "ReadableStream", "File", "FileList", "OffscreenCanvas", "OffscreenCanvasRenderingContext2d", "Worker", "WorkerOptions", "WorkerType",]

[dev-dependencies.image-decoder]
package = "image"
version = "0.24.2"
default-features = false
features = [ "jpeg", "png",]

[profile.dev]
debug = true

[profile.release]
opt-level = "z"
debug = false
debug-assertions = false
overflow-checks = false
lto = true
panic = "abort"
incremental = false
codegen-units = 1
rpath = false

[package.metadata.wasm-pack.profile.release]
wasm-opt = false
