aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/render-triangles/Cargo.toml21
1 files changed, 5 insertions, 16 deletions
diff --git a/examples/render-triangles/Cargo.toml b/examples/render-triangles/Cargo.toml
index dd2c189..59d6e19 100644
--- a/examples/render-triangles/Cargo.toml
+++ b/examples/render-triangles/Cargo.toml
@@ -4,6 +4,11 @@ version = "0.1.0"
authors = ["Oscar <oscar.shrimpton.personal@gmail.com>"]
edition = "2018"
+[features]
+default = []
+gl = ["stockton-render/gl"]
+vulkan = ["stockton-render/vulkan"]
+
[dependencies]
stockton-render = { path = "../../stockton-render" }
stockton-types = { path = "../../stockton-types" }
@@ -12,19 +17,3 @@ winit = "0.19.1"
log = "0.4.0"
simple_logger = "1.0"
rand = "0.7"
-
-[target.'cfg(feature = "gl")'.dependencies.stockton-render]
-path = "../../stockton-render"
-features = ["gl"]
-
-# [target.'cfg(feature = "dx11")'.dependencies.stockton-render]
-# path = "../../stockton-render"
-# features = ["dx11"]
-
-# [target.'cfg(feature = "dx12")'.dependencies.stockton-render]
-# path = "../../stockton-render"
-# features = ["dx12"]
-
-# [target.'cfg(feature = "vulkan")'.dependencies.stockton-render]
-# path = "../../stockton-render"
-# features = ["vulkan"] \ No newline at end of file