If, for some (very bespoke and cursed) reason, a user creates a mod called ts_rs and has it in scope, it becomes impossible to
derive TS, all the ts_rs::<something> paths will look inside that mod instead of our library.
This PR aims to make such (cursed) code compile
Changes
All paths to ts_rs generated by ts_rs_macros now have two leading colons, e.g.: ::ts_rs::TS
Goal
If, for some (very bespoke and cursed) reason, a user creates a
mod
calledts_rs
and has it in scope, it becomes impossible to deriveTS
, all thets_rs::<something>
paths will look inside thatmod
instead of our library. This PR aims to make such (cursed) code compileChanges
All paths to
ts_rs
generated byts_rs_macros
now have two leading colons, e.g.:::ts_rs::TS
Checklist