Closed lunabunn closed 1 year ago
Oh, that's unfortunate.
I originally added that symlink to avoid duplicating the file. I thought it was an improvement over the previous approach, which was to publish a separate helper crate that was a dependency of both.
What do other libraries do instead?
Oh, that's unfortunate.
I originally added that symlink to avoid duplicating the file. I thought it was an improvement over the previous approach, which was to publish a separate helper crate that was a dependency of both.
What do other libraries do instead?
Could we just have escape.rs
live in maud_macros
as a pub mod
(or be reexported), and then use that from maud
?
IIRC, proc macro crates can only export macros, not normal functions.
This is broken on NixOS too when building in the nix store.
Looks like the symlink approach has too many downsides. I'll just duplicate it then 😿
Current main is broken on Windows due to maud_macros/src/escape.rs being a symlink, which is broken on Windows.
The obvious fix would be to copy-and-paste the contents over, but perhaps there's a better solution?