Skip to content

Commit

Permalink
remove femtovg/nanovg demo which is already in inlottie
Browse files Browse the repository at this point in the history
  • Loading branch information
mhfan committed Jun 26, 2024
1 parent 355b8b4 commit 1c0eb62
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 592 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:

- name: Run tests
# uses: taiki-e/install-action@nextest
run: cargo t -F "evg,b2d,ftg,ovg,nvg,ugl" -- --nocapture #cargo nextest r
run: cargo t -F "evg,b2d,ftg,ovg,ugl" -- --nocapture #cargo nextest r
env: # DYLD_FALLBACK_LIBRARY_PATH (macOS), PATH (Windows) # XXX:
LD_LIBRARY_PATH: ${{github.workspace}}/3rdparty/amanithvg/lib/linux/x86_64/sre/standalone

Expand Down
23 changes: 1 addition & 22 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
name = "intvg"
version = "0.1.7"
edition = "2021"
default-run = "intvg"
license = "MIT OR Apache-2.0"
authors = [ "MeiHui FAN <[email protected]>" ]
repository = "https://github.com/mhfan/intvg" # https://crates.io/category_slugs
Expand All @@ -24,19 +23,6 @@ usvg = "0.42"
#build-time = { version = "0.1", git = "https://github.com/AlephAlpha/build-time" }
png = { version = "0.17", optional = true }

winit = { version = "0.29", optional = true }
femtovg = { version = "0.9", optional = true }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
glutin = { version = "0.31", optional = true } # [email protected]
glutin-winit = { version = "0.4", optional = true }
raw-window-handle = { version = "0.5", optional = true } # HasRawWindowHandle

[target.'cfg(target_arch = "wasm32")'.dependencies]
web_sys = { version = "0.3", package = "web-sys", features = [
"console", "WebGlContextAttributes",
] }

[lib]
# Disable doctests as a workaround for https://github.com/rust-lang/rust-bindgen/issues/1313
#doctest = false
Expand All @@ -52,15 +38,8 @@ ftg = []
evg_fixed = [ "evg" ] # quite slow than floating point on Apple M1
evg = [ "dep:png" ]

nvg = [ "femtovg", "winit", "glutin", "glutin-winit", "raw-window-handle" ]

#cc = [ "dep:cc", "dep:bindgen", "dep:glob" ] # implied by optional dependency
#default = [ "b2d", "evg", "nvg" ] # XXX: ftg/ovg/ugl not completely work yet

[[bin]]
name = "nanovg"
path = "src/nanovg.rs"
required-features = [ "nvg" ]
#default = [ "b2d", "evg" ] # XXX: ftg/ovg/ugl not completely work yet

[[bench]]
name = "engine_2d"
Expand Down
Loading

0 comments on commit 1c0eb62

Please sign in to comment.