Skip to content

Commit

Permalink
add spirv and shaderc features
Browse files Browse the repository at this point in the history
  • Loading branch information
woelper committed Mar 3, 2024
1 parent 6df1b71 commit 4e2abbe
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 24 deletions.
78 changes: 71 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 22 additions & 17 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
authors = ["Johann Woelper <woelper@gmail.com>"]
description = "A minimalistic image viewer with analysis and editing tools"
edition = "2018"
exclude = [
"res/*.gif",
"tests/*"
]
exclude = ["res/*.gif", "tests/*"]
keywords = ["graphics", "image", "viewer"]
license = "MIT"
name = "oculante"
Expand All @@ -21,7 +18,7 @@ name = "oculante"
[dependencies]
anyhow = "1.0"
arboard = "3.2"
avif-decode = {version = "0.2", optional = true}
avif-decode = { version = "0.2", optional = true }
clap = "3.2"
dds-rs = "0.7"
dirs = "5.0"
Expand All @@ -34,10 +31,15 @@ gif-dispose = "4"
image = "0.24"
kamadak-exif = "0.5"
lexical-sort = "0.3"
libavif-image = {version = "0.11", optional = true}
libavif-image = { version = "0.11", optional = true }
log = "0.4"
nalgebra = "0.32"
notan = {version = "0.12", default-features = false, features = ["backend", "draw", "shaderc","drop_files", "egui"]}
notan = { version = "0.12", default-features = false, features = [
"backend",
"draw",
"drop_files",
"egui",
] }
egui_plot = "0.26"
palette = "0.7"
psd = "0.3"
Expand All @@ -46,15 +48,17 @@ rand = "0.8"
rand_chacha = "0.3"
rayon = "1.7"
resvg = "0.33.0"
rfd = {version = "0.13", optional = true}
rfd = { version = "0.13", optional = true }
rgb = "0.8"
self_update = {version = "0.39", default-features = false, features = ["rustls"], optional = true}
serde = {version = "1.0", features = ["derive"]}
self_update = { version = "0.39", default-features = false, features = [
"rustls",
], optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
strum = {version = "0.26", features = ["derive"]}
strum = { version = "0.26", features = ["derive"] }
strum_macros = "0.26"
tiny-skia = "0.9"
turbojpeg = {version = "0.5", features = ["image"], optional = true}
turbojpeg = { version = "0.5", features = ["image"], optional = true }
usvg = "0.33.0"
webbrowser = "0.8"
tiff = "0.9"
Expand All @@ -63,8 +67,8 @@ zune-png = "0.4"
img-parts = "0.3"
dark-light = "1.0"
trash = "3.1"
lutgen = {version ="0.9.0", features = ["lutgen-palettes"]}
libheif-rs = { version = "0.22.0", default-features = false, optional = true}
lutgen = { version = "0.9.0", features = ["lutgen-palettes"] }
libheif-rs = { version = "0.22.0", default-features = false, optional = true }
egui-phosphor = "0.4"
egui-notify = "0.13"
ktx2 = "0.3.0"
Expand All @@ -78,19 +82,21 @@ mouse_position = "0.1.3"
webp-animation = { version = "0.9.0", features = ["static"] }

[features]
default = ["turbo", "avif_native", "file_open", "update", "spirv"]
heif = ["libheif-rs"]
avif_native = ["avif-decode"]
dav1d = ["libavif-image"]
default = ["turbo", "avif_native", "file_open", "update"]
file_open = ["rfd"]
turbo = ["turbojpeg"]
update = ["self_update"]
shaderc = ["notan/shaderc"]
spirv = ["notan/glsl-to-spirv"]


[target.'cfg(target_os = "macos")'.dependencies]
fruitbasket = "0.10.0"



[target.'cfg(windows)'.build-dependencies]
# this currently causes a link error LNK1356, check in the future if the problem was solved
windres = "0.2"
Expand All @@ -117,4 +123,3 @@ panic = "abort"
debug = false
incremental = true
opt-level = 1

0 comments on commit 4e2abbe

Please sign in to comment.