don't fail if rustfmt not found
[vector-math.git] / Cargo.toml
index 833a28966c960bc7ce9a07cb42b7adf414d8c2a3..56ad7be042db2b4c55b8674c5331b15fd177ce2d 100644 (file)
@@ -6,3 +6,26 @@ edition = "2018"
 license = "MIT OR Apache-2.0"
 
 [dependencies]
+half = { version = "1.7.1", optional = true }
+typed-arena = { version = "2.0.1", optional = true }
+core_simd = { version = "0.1.0", git = "https://github.com/rust-lang/stdsimd", optional = true }
+
+[build-dependencies]
+vector-math-build-helpers = { version = "=0.1.0", path = "vector-math-build-helpers" }
+
+[features]
+default = ["fma"]
+f16 = ["half"]
+fma = ["std"]
+std = []
+ir = ["std", "typed-arena"]
+stdsimd = ["core_simd", "std"] # for `f32::round` and similar
+# enable slow tests
+full_tests = []
+
+[dev-dependencies]
+rug = "1.12.0"
+az = "1.1.1"
+
+[workspace]
+members = [".", "vector-math-build-helpers"]