You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I copied the example and tried to run and test it, got this error:
Compiling example v0.1.0 (/home/kpids/Files/Code/ts-rs-tes)
error[E0277]: the trait bound `Uuid: TS` is not satisfied
--> src/lib.rs:29:21
|
29 | #[derive(Serialize, TS)]
| ^^ the trait `TS` is not implemented for `Uuid`
|
= help: the following other types implement trait `TS`:
&'static str
()
(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
(T10,)
(T2, T3, T4, T5, T6, T7, T8, T9, T10)
(T3, T4, T5, T6, T7, T8, T9, T10)
(T4, T5, T6, T7, T8, T9, T10)
(T5, T6, T7, T8, T9, T10)
and 51 others
= note: this error originates in the derive macro `TS` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Uuid: TS` is not satisfied
--> src/lib.rs:39:12
|
39 | token: Uuid,
| ^^^^ the trait `TS` is not implemented for `Uuid`
|
= help: the following other types implement trait `TS`:
&'static str
()
(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
(T10,)
(T2, T3, T4, T5, T6, T7, T8, T9, T10)
(T3, T4, T5, T6, T7, T8, T9, T10)
(T4, T5, T6, T7, T8, T9, T10)
(T5, T6, T7, T8, T9, T10)
and 51 others
note: required by a bound in `Dependency::from_ty`
--> /home/kpids/.cargo/registry/src/github.com-1ecc6299db9ec823/ts-rs-6.2.0/src/lib.rs:311:23
|
311 | pub fn from_ty<T: TS>() -> Option<Self> {
| ^^ required by this bound in `Dependency::from_ty`
For more information about this error, try `rustc --explain E0277`.
error: could not compile `example` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `example` due to 2 previous errors
Tried updating Rust with rustup update, tried different versions of Uuid and ts-rs crates, tried cargo clean, tried running it on stable and nightly. Still have no idea what causes it.
The text was updated successfully, but these errors were encountered:
Hey, thanks for opening the issue. The problem is that ts-rs 6.2 only supports uuid0.8, and not yet 1.*.
Right now, you can either use a git dependency on ts-rs, or wait a bit for the next release.
I copied the example and tried to
run
andtest
it, got this error:Tried updating Rust with
rustup update
, tried different versions ofUuid
andts-rs
crates, triedcargo clean
, tried running it on stable and nightly. Still have no idea what causes it.The text was updated successfully, but these errors were encountered: