PrismaPhonic / domain_patterns

Repo that holds both domain_patterns and domain_derive library crates
MIT License
26 stars 5 forks source link

Domain_Derive Build broken #2

Closed pukeko37 closed 3 years ago

pukeko37 commented 3 years ago

Domain derive fails to build. The syn crate seems to have changed.

$ cargo build
   Compiling domain_derive v0.2.137
error[E0432]: unresolved import `syn::export`
 --> /home/andrew/.cargo/registry/src/github.com-1ecc6299db9ec823/domain_derive-0.2.137/src/entity.rs:3:10
  |
3 | use syn::export::TokenStream2;
  |          ^^^^^^ could not find `export` in `syn`

error[E0432]: unresolved import `syn::export`
 --> /home/andrew/.cargo/registry/src/github.com-1ecc6299db9ec823/domain_derive-0.2.137/src/value_object.rs:3:10
  |
3 | use syn::export::Span;
  |          ^^^^^^ could not find `export` in `syn`

error[E0432]: unresolved import `syn::export`
 --> /home/andrew/.cargo/registry/src/github.com-1ecc6299db9ec823/domain_derive-0.2.137/src/domain_events.rs:2:10
  |
2 | use syn::export::TokenStream2;
  |          ^^^^^^ could not find `export` in `syn`

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0432`.
error: could not compile `domain_derive`
seanpianka commented 3 years ago

This API is not public and should not be used: https://github.com/Lymia/enumset/issues/17#issuecomment-756099533