mersinvald / aquamarine

Inline diagrams for rustdoc with mermaid.js
MIT License
508 stars 28 forks source link

Windows build is broken #40

Closed saschanaz closed 1 year ago

saschanaz commented 1 year ago
   Compiling aquamarine v0.3.1
error: proc macro panicked
  --> C:\Users\Kagami\.cargo\registry\src\index.crates.io-6f17d22bba15001f\aquamarine-0.3.1\src\attrs.rs:13:30
   |
13 | static MERMAID_JS_DIR: Dir = include_dir!("..\\doc\\js\\");
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: message: "..\\doc\\js\\" is not a directory

https://github.com/mersinvald/aquamarine/blob/4282819c3c4b6c73a821676f6fc47eea831bdab1/src/attrs.rs#L12-L16

I guess the Windows code should also use $CARGO_MANIFEST_DIR?