0

I'm porting my game-engine to rust. I want the engine to contain the main function, which means I can't use a library and then use a trait to implement functions that will be called in main so that the user doesen't have to care about the entry stuff. My problem is that when I wan't to use that "library" as a dependency I can't acces any functions or structs via the use keyword because it's, obviously, not a library.

I tried to use the "library" as a dependency in a binary as well as in real library. This, unsuprsingly, didn't work and gave me this warning: warning: engine-tester v0.1.0 (C:\Users\kraus\Desktop\Lauri\Programmieren\Rust\Projekte\game engine workspace\engine-tester) ignoring invalid dependency octopus which is missing a lib target

cafce25
  • 15,907
  • 4
  • 25
  • 31
  • 1
    Does this answer your question? [Linking against binary crate](https://stackoverflow.com/questions/63103964/linking-against-binary-crate) – cafce25 Apr 01 '23 at 10:45

0 Answers0