typescript-definitions icon indicating copy to clipboard operation
typescript-definitions copied to clipboard

Fix build issue where Debug not implemented on `syn::Type`.

Open onelson opened this issue 5 years ago • 6 comments

Build fails since syn::Type only adds an impl for Debug when "extra-traits" feature is enabled. This exposes a feature on typescript-definitions-derive to control whether or not syn's feature is active, and adds a cfg_attr to the derive for Attrs.

This was mentioned incidentally in #4 but does not solve the breakage starting in nightly-2019-11-25 which seems to be related to the pest usage.

onelson avatar Dec 02 '19 00:12 onelson

Any idea when this will be merged and released?

ufoscout avatar Dec 08 '19 17:12 ufoscout

@ufoscout maintainer may not be in a rush to merge anything. There's an open PR from April which doesn't seem to have gotten any attention.

I'm not planning on publishing my fork to crates.io, but I will surely leave it up on github for as long as the problem is unaddressed (should you want to depend on it directly).

onelson avatar Dec 09 '19 01:12 onelson

@onelson thanks, I am using your branch now

ufoscout avatar Dec 10 '19 17:12 ufoscout

would be really nice if this was merged, using @ufoscout branch. Really hoping this doesn't die. Using rust on a web api backend and having to manually write the definitions.

ytitov avatar Mar 19 '20 13:03 ytitov

@arabidopsis please merge and release this

Fishrock123 avatar Oct 05 '21 22:10 Fishrock123

Bump. Is this crate abandoned?

benma avatar Jul 05 '23 10:07 benma