convert proc-macro for generating Context trait to a build script in hopes of getting...
[vector-math.git] / src / traits.rs
index c02b60919cddc332266ce23b36318f2a45ec9e76..e923e1a682ee9170b6f8cfdca7a0ca73470337a0 100644 (file)
@@ -7,13 +7,7 @@ use core::ops::{
     Mul, MulAssign, Neg, Not, Rem, RemAssign, Shl, ShlAssign, Shr, ShrAssign, Sub, SubAssign,
 };
 
-/// reference used to build IR for Kazan; an empty type for `core::simd`
-pub trait Context: Copy {
-    vector_math_proc_macro::make_context_types!();
-    fn make<T: Make<Context = Self>>(self, v: T::Prim) -> T {
-        T::make(self, v)
-    }
-}
+include!(concat!(env!("OUT_DIR"), "/context_trait.rs"));
 
 pub trait Make: Copy {
     type Prim: Copy;