jamsocket / aper

A Rust data structure library built on state machines.
https://aper.dev
MIT License
299 stars 12 forks source link

Cannot derive StateMachine for public struct #22

Closed joonazan closed 3 years ago

joonazan commented 3 years ago
error[E0446]: private type `CharacterTransform` in public interface
 --> state/src/character.rs:4:10
  |
4 | #[derive(StateMachine, Clone, Debug, Serialize, Deserialize, PartialEq)]
  |          ^^^^^^^^^^^^
  |          |
  |          can't leak private type
  |          `CharacterTransform` declared as private
  |
  = note: this error originates in the derive macro `StateMachine` (in Nightly builds, run with -Z macro-backtrace for more info)
joonazan commented 3 years ago

Solved by #24

paulgb commented 3 years ago

Excellent, thanks for confirming! I will merge now.